KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
985 stars 242 forks source link

[StructuralMechanicsApplication] Add missing call to initialize constitutive law to the truss 3D2N element #12476

Closed rfaasse closed 1 day ago

rfaasse commented 1 week ago

📝 Description Added a missing call for the constitutive law (InitializeMaterial) to the initialization of the truss 3D2N element and added a unit test to test this behavior. Adding the call makes this element consistent with the initialize in the BaseSolidElement and the MembraneElement, where the InitializeMaterial call to the constitutive law is already done when initializing the element.

rfaasse commented 1 day ago

@KratosMultiphysics/structural-mechanics would it be possible for you to have a look this PR? We need it in the geomechanics application to use a custom constitutive model with this element that relies on its initialization being done at the right time.

If you need any more info on this proposed change, please let me know!