forked from KratosMultiphysics/Kratos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separating the lagrangian and the eulerian in the solver
- Loading branch information
loumalouomega
committed
Apr 19, 2017
1 parent
8ae61cb
commit 105a5ca
Showing
11 changed files
with
1,499 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Importing the Kratos Library | ||
from KratosMultiphysics import * | ||
from KratosMultiphysics.SolidMechanicsApplication import * | ||
#from beam_sections_python_utility import SetProperties | ||
def AssignMaterial(Properties): | ||
prop_id = 1; | ||
prop = Properties[prop_id] | ||
mat = LinearElasticPlaneStrain2DLaw() | ||
prop.SetValue(CONSTITUTIVE_LAW, mat.Clone()) | ||
|
||
prop_id = 2; | ||
prop = Properties[prop_id] | ||
mat = LinearElastic3DLaw(); | ||
prop.SetValue(CONSTITUTIVE_LAW, mat.Clone()); | ||
|
||
prop_id = 3; | ||
prop = Properties[prop_id] | ||
mat = HyperElasticPlasticJ2PlaneStrain2DLaw() | ||
prop.SetValue(CONSTITUTIVE_LAW, mat.Clone()) | ||
|
||
print( prop ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.