Skip to content

v7.18.0

Compare
Choose a tag to compare
@adtzlr adtzlr released this 16 Feb 12:41
· 1160 commits to main since this release

[7.18.0] - 2024-02-16

Added

  • Create a FieldContainer by the &-operator between fields and field containers, i.e. field = displacement & pressure, where displacement = Field(region, dim=2) and pressure = Field(region). This also works for field & pressure as well as pressure & field.
  • Add a method to create a field container from a field, i.e. Field(region, dim=3).as_container() is equal to FieldContainer([Field(region, dim=3)]).
  • Add ViewMaterial(umat) to view force-stretch curves for uniaxial tension/compression, planar shear and equi-biaxial tension.
  • Add ViewMaterialIncompressible(umat) to view force-stretch curves for incompressible uniaxial tension/compression, planar shear and equi-biaxial tension.
  • Add a base class for constitutive materials with methods ConstitutiveMaterial.view(incompressible=False), ConstitutiveMaterial.plot(incompressible=False) and ConstitutiveMaterial.screenshot(incompressible=False).
  • Add a dict-attribute with material parameters to all built-in materials, e.g. NeoHooke.kwargs = {"mu": self.mu, "bulk": self.bulk}.
  • Add umat = CompositeMaterial(material, other_material).
  • Add &-operator to combine constitutive materials umat = material & other_material. Note that only the first material must contain state variables.

Changed

  • Don't disconnect the dual mesh by default for regions RegionQuadraticTriangle and RegionQuadraticTetra in FieldsMixed.

Fixed

  • Fix Mesh.flip(mask=None): Take care of the mask (it wasn't applied to the cells-array of the mesh).

What's Changed

  • Create FieldContainer by all logical-and combinations of Field and FieldContainer by @adtzlr in #618
  • Add Field.as_container() by @adtzlr in #619
  • Add ViewMaterialIncompressible by @adtzlr in #620
  • Add base class ConstitutiveMaterial by @adtzlr in #621
  • Add Volumetric, CompositeMaterial and &-operator for ConstitutiveMaterial by @adtzlr in #623
  • Fix Mesh.flip(mask=None): Take care of the mask by @adtzlr in #625

Full Changelog: v7.17...v7.18.0