... | @@ -40,7 +40,7 @@ A material law is defined as |
... | @@ -40,7 +40,7 @@ A material law is defined as |
|
```python
|
|
```python
|
|
law = MaterialLawName(matNum, Arguments)
|
|
law = MaterialLawName(matNum, Arguments)
|
|
```
|
|
```
|
|
where the number *matNum* must be a unique integer to identify the law, *MaterialLawName* and its arguments *Arguments* can be found in the source of the code. For example, a *J2* plastic model can be defined as follows:
|
|
where the number *matNum* must be a unique integer to identify the law (when multiple laws are considered), *MaterialLawName* and its arguments *Arguments* can be found in the source code. For example, a *J2* plastic model can be defined as follows:
|
|
```python
|
|
```python
|
|
lawnum1 = 11 # unique number of law
|
|
lawnum1 = 11 # unique number of law
|
|
E = 210E3
|
|
E = 210E3
|
... | @@ -55,6 +55,14 @@ harden = LinearExponentialJ2IsotropicHardening(lawnum1, sy0, h, 0., 10.) |
... | @@ -55,6 +55,14 @@ harden = LinearExponentialJ2IsotropicHardening(lawnum1, sy0, h, 0., 10.) |
|
law1 = J2LinearDG3DMaterialLaw(lawnum1,rho,E,nu,harden)
|
|
law1 = J2LinearDG3DMaterialLaw(lawnum1,rho,E,nu,harden)
|
|
```
|
|
```
|
|
### *Domain*
|
|
### *Domain*
|
|
|
|
A domain is defined as
|
|
|
|
```python
|
|
|
|
domain = dG3DDomain(tag,phys,sp,lnum, fdg, dim, nonLocalVar, nonConstitutiveExtraDOFVar, nonCurlData)
|
|
|
|
```
|
|
|
|
where
|
|
|
|
*) *tag*
|
|
|
|
|
|
|
|
|
|
```python
|
|
```python
|
|
nfield = 217 # number of the field (physical number of entity)
|
|
nfield = 217 # number of the field (physical number of entity)
|
|
dim =3
|
|
dim =3
|
... | | ... | |