doc:user:elements:volumes:user_defined_materials
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:elements:volumes:user_defined_materials [2024/06/06 15:53] – radermecker | doc:user:elements:volumes:user_defined_materials [2024/10/22 14:15] (current) – radermecker | ||
---|---|---|---|
Line 7: | Line 7: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * **Input:** The total deformation gradient '' | + | * **Input:** The total deformation gradient '' |
* **Output:** The Cauchy stress, in the current configuration, | * **Output:** The Cauchy stress, in the current configuration, | ||
Line 13: | Line 13: | ||
| | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | So far, global perturbation (of the internal forces) must be used. Cfr. | + | Selective integration with pressure report '' |
+ | </ | ||
+ | <WRAP center round info 60%> | ||
+ | The material tangent moduli is automatically approximated using finite central difference. | ||
</ | </ | ||
Line 20: | Line 23: | ||
<code python> | <code python> | ||
from wrap import * | from wrap import * | ||
+ | import numpy as np | ||
metafor = None | metafor = None | ||
- | |||
- | class PythonHyperMaterial: | ||
- | def __init__(self, | ||
- | self._no = _no | ||
class UserMat(PythonHyperMaterial): | class UserMat(PythonHyperMaterial): | ||
Line 53: | Line 53: | ||
elementsProps = ElementProperties(Volume2DElement) | elementsProps = ElementProperties(Volume2DElement) | ||
elementsProps.put(MATERIAL, | elementsProps.put(MATERIAL, | ||
- | elementsProps.put(STIFFMETHOD, | ||
# ... some code ... # | # ... some code ... # |
doc/user/elements/volumes/user_defined_materials.1717682004.txt.gz · Last modified: by radermecker