How to Add a New constitutive law

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
*1. '''Which files need to be added'''
+
*1. '''Which files needed to be added'''
in ''custom costitutive law'' of the corresponding application .cpp & .h files are added
+
**in ''custom costitutive law'' of the corresponding application .cpp & .h files are added
functions which could be used are those available in constitutive_law.h of kratos
+
**functions which could be used are those available in constitutive_law.h of kratos
*2.''' Which files need to be change'''d
+
*2.''' Which files needed to be changed'''
''jamfile'' of application
+
**''jamfile'' of application
''add_constitutive_laws_to_python.cpp'' of the custom python of the application
+
**''add_constitutive_laws_to_python.cpp'' of the custom python of the application
 +
***''.h'' of your constitutive law to be added
 +
***class of the constitutive law being introduced
 +
*3. '''Additional infotmation'''
 +
**''costitutive law'' is an object in Kratos, so it's possible to store historical variables.
 +
**''static database'' The data can be stored as static database - it's not updated in every time-step:
 +
*** "node-> setValue(disp)"
 +
*** "node-> getValue(disp)"
 +
**to update data in time, use:
 +
***"node.Getsolstepvalue(disp)"
 +
***"node.Setsolstepvalue(disp)"
 +
**Material non-linearity:
 +
*** having stress as a function of strain, it's necessary to change the Algorithmic Tangent Modulus to implement material non-linearities
 +
 
 +
 
 +
 
 +
[[Category:How To]]

Latest revision as of 19:59, 1 November 2008

  • 1. Which files needed to be added
    • in custom costitutive law of the corresponding application .cpp & .h files are added
    • functions which could be used are those available in constitutive_law.h of kratos
  • 2. Which files needed to be changed
    • jamfile of application
    • add_constitutive_laws_to_python.cpp of the custom python of the application
      • .h of your constitutive law to be added
      • class of the constitutive law being introduced
  • 3. Additional infotmation
    • costitutive law is an object in Kratos, so it's possible to store historical variables.
    • static database The data can be stored as static database - it's not updated in every time-step:
      • "node-> setValue(disp)"
      • "node-> getValue(disp)"
    • to update data in time, use:
      • "node.Getsolstepvalue(disp)"
      • "node.Setsolstepvalue(disp)"
    • Material non-linearity:
      • having stress as a function of strain, it's necessary to change the Algorithmic Tangent Modulus to implement material non-linearities
Personal tools
Categories