Skip to content

Commit

Permalink
Merge pull request #12912 from KratosMultiphysics/core/expose-info-of…
Browse files Browse the repository at this point in the history
…-claw-to-python

[Core] Allow for calling the Info() method of ConstitutiveLaw from Python
  • Loading branch information
qiukailu authored Dec 8, 2024
2 parents 99e7bba + e5670f0 commit c2931f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kratos/python/add_constitutive_law_to_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ void AddConstitutiveLawToPython(pybind11::module& m)
.def("PushForwardConstitutiveMatrix",&ConstitutiveLaw::PushForwardConstitutiveMatrix)
.def("Check",&ConstitutiveLaw::Check)
.def("GetLawFeatures",&ConstitutiveLaw::GetLawFeatures)
.def("Info", &ConstitutiveLaw::Info)
.def_readonly_static("USE_ELEMENT_PROVIDED_STRAIN", &ConstitutiveLaw::USE_ELEMENT_PROVIDED_STRAIN)
.def_readonly_static("COMPUTE_STRESS", &ConstitutiveLaw::COMPUTE_STRESS)
.def_readonly_static("COMPUTE_CONSTITUTIVE_TENSOR", &ConstitutiveLaw::COMPUTE_CONSTITUTIVE_TENSOR)
Expand Down

0 comments on commit c2931f1

Please sign in to comment.