Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geo/umat parameters python #11476

Merged
merged 15 commits into from
Oct 12, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ PYBIND11_MODULE(KratosGeoMechanicsApplication,m)
KRATOS_REGISTER_IN_PYTHON_VARIABLE(m, PIPE_MODEL_FACTOR)
KRATOS_REGISTER_IN_PYTHON_VARIABLE(m, PIPE_HEIGHT)
KRATOS_REGISTER_IN_PYTHON_VARIABLE(m, PIPE_ACTIVE)

KRATOS_REGISTER_IN_PYTHON_VARIABLE( m, UMAT_PARAMETERS)
}

} // namespace Python.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ class KratosGeoMechanicsParameterFieldTests(KratosUnittest.TestCase):
This class contains tests which check if custom parameter fields are correctly added to the model
"""

def test_variable_exists_in_python(self):
"""
Test to check if the variable exists in python

"""
variable_name = "UMAT_PARAMETERS"
self.assertTrue(hasattr(KratosGeo, variable_name))

def test_parameter_field_with_function(self):
"""
Test to check if values from a function defined parameter field are correctly added to each individual element
Expand Down