Skip to content

Commit b591334

Browse files
committed
Simplifies constitutive model definition
Changes the definition of the constitutive model from explicit instantiation to an addition of mechanical and electrical components. This provides a more concise and readable way to define the combined constitutive model.
1 parent 36bdb82 commit b591334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ geomodel = GmshDiscreteModel("./test/models/test_static_EM.msh")
5353
# Constitutive model
5454
physmodel_mec = NeoHookean3D=10.0, μ=1.0)
5555
physmodel_elec = IdealDielectric=1.0)
56-
physmodel = ElectroMechModel(mechano=physmodel_mec, electro=physmodel_elec)
56+
physmodel= physmodel_mec+physmodel_elec
5757

5858
# Setup integration
5959
order = 1

0 commit comments

Comments
 (0)