v7.11.0
[7.11.0] - 2023-10-22
Added
- Add cell-type argument to
Mesh.add_midpoints_volumes(cell_type=None)
and its variants for edges and faces. - Add
element.Element.view()
,element.Element.plot()
andelement.Element.screenshot()
. This enables an interactive plot of the element in the reference configuration with its point ids, e.g.Hexahedron().plot().show()
.
Changed
- Change function signature and enhance
dof.biaxial(field, lefts=(None, None), rights=(None, None), moves=(0.2, 0.2), axes=(0, 1), clampes=(False, False), sym=True)
. Now with a full-featured docstring including an example. The old-style inputmove
defaults toNone
, is deprecated and will be removed in the next major release. - Change function signature and enhance
dof.shear(field, bottom=None, top=None, moves=(0.2, 0.0, 0.0), axes=(0, 1), sym=True)
. Now with a full-featured docstring including an example. The old-stylemove
,axis_compression
,axis_shear
andcompression
all default toNone
, are deprecated and will be removed in the next major relase. - Merge keyword-arguments for the dual-regions with hard-coded arguments in
FieldsMixed(region, **kwargs)
. - Replace
np.product()
(will be removed in NumPy 2.0) with the equivalentnp.prod()
.
Fixed
- Fix
FieldsMixed()
for regions with MINI-element formulations: Disable the disconnection of the dual mesh. - Fix
dof.shear(sym=True)
which was previously ignored due to a wrong setup of the symmetry boundaries. - Fix the install command on Python 3.12 by adding an extra-index-url for VTK wheels if they are not yet available on PyPI (the extra index is provided by Kitware).
- Fix a warning because the timings of the Newton-Rhapson solver are printed from a one-dimensional array. Take the first item of the runtime-array to resolve this warning.
Removed
- Remove the undocumented
dof.planar()
because this is a special case of the biaxial load casedof.biaxial(field, clampes=(True, False), moves=(0.2, 0), sym=False, axes=(0, 1))
.
What's Changed
- Enhance loadcase biaxial by @adtzlr in #534
- Remove planar load case by @adtzlr in #535
- Fix
FieldsMixed()
for MINI-elements by @adtzlr in #538 - Fix
dof.shear(sym=True)
by @adtzlr in #540 FieldsMixed(region, **kwargs)
: Mergekwargs
for the dual region by @adtzlr in #541- Add support for Python 3.12 by @adtzlr in #543
- Add element methods view, plot and screenshot by @adtzlr in #551
- Deprecate old-style args of load cases by @adtzlr in #553
Full Changelog: v7.10.0...v7.11.0