Skip to content

v12.2.0

Latest

Choose a tag to compare

@adtzlr adtzlr released this 04 Dec 17:18
701687a

[12.2.0] - 2026-12-04

Changed

  • Change the default of multiplier_update of ContactRigidPlane and ContactRigidCylinder from "increment" to "once" (#1313), i.e. the stiffness-based multipliers (with items) are evaluated on the first evaluation, usually with the initial stiffness matrices of the items, and are constant for the whole analysis, like the penalty of SolidBodyContact of felupe-contact. The multipliers are re-evaluated on demand by contact.multipliers = None. This converges as well as "increment", but for rubber-like materials, the initial stiffness is smaller than the tangent stiffness at large compressive strains, i.e. the multipliers are smaller and the penetration is larger (by a factor of about 2 to 3 in the benchmarks of #1315). This changes the results of existing models with items. A larger scale factor multiplier reduces the penetration, and multiplier_update="increment" restores the former behaviour.
  • Evaluate the stiffness-based multipliers of ContactRigidPlane and ContactRigidCylinder with multiplier_update="increment" after a converged increment, when the trial state variables are accepted by results.update_statevars(), instead of on the first evaluation of the next increment (#1313). The multipliers are stored in the state of the contact (contact.multipliers, which is included in checkpoint()), i.e. the next increment, a copy or a restored checkpoint of the contact don't need the cached stiffness matrices of the items. The same stiffness matrices of the items are used, i.e. the results of a rigid plane are identical (for a rigid cylinder, the normal vectors of the multipliers are evaluated for the converged instead of the updated center-point). After a cutback, the restored multipliers of the converged increment are used, i.e. the results are identical to explicit substeps. Before, the multipliers were re-evaluated with the stiffness matrices of the failed attempt.

Fixed

  • Don't pass mu=0, the default parameter of neo_hooke(), to other materials of Hyperelastic(ogden_roxburgh, material=...). The parameters of the chosen material have to be given. Before, materials without a parameter mu, e.g. mooney_rivlin() or yeoh(), raised a TypeError (#1302).
  • Assemble the items of ContactRigidPlane and ContactRigidCylinder with their own fields, item.assemble.matrix(), if they have no stiffness matrix for the evaluation of the stiffness-based multipliers (#1313). Before, the items were assembled with the field of the contact. This raised an AttributeError if the field of the contact was not the field of the item, e.g. a merged field with a RegionVertex of the center-point, and the field of a solid body was replaced by the field of the contact.

What's Changed

  • fix(constitution): preserve dtype in linear_elastic() by @chenyangsu in #1309
  • Fix Hyperelastic(ogden_roxburgh, material=...) passing mu=0 to every material by @sniwas in #1310
  • Assemble the items of a rigid contact with their own fields by @adtzlr in #1314
  • Evaluate the multipliers of a rigid contact after a converged increment by @adtzlr in #1315
  • Change the default multiplier update of the rigid contacts to "once" by @adtzlr in #1316
  • Release 12.2.0 by @adtzlr in #1317

New Contributors

Full Changelog: v12.1.2...v12.2.0