... | ... | @@ -23,16 +23,16 @@ In the computational micromechanics, we need to evaluate the stress tensor $`\ma |
|
|
In general, the strain averaging theorem and the Hill-Mandel condition are sastified a priori using a microscopic boundary condition. The solution of this mBVP is carried out using nonLinearMechSolver, in wihch the relation between $`\mathbf{P}_M(t)`$
|
|
|
and $`\mathbf{F}_M(t)`$ can be obtained by different ways.
|
|
|
|
|
|
## 1. General python code structure
|
|
|
### include python library after compiling the code
|
|
|
# 1. General python code structure
|
|
|
## include python library after compiling the code
|
|
|
The PYTHONPATH to the compiled directory must be specified in .bashrc for both gmsh and the solve, then the following line must be added in the beginning of the python file:
|
|
|
```python
|
|
|
from gmshpy import *
|
|
|
from dG3Dpy import*
|
|
|
```
|
|
|
### define Material law and Domain
|
|
|
## define Material law and Domain
|
|
|
The basic principle of the FE implementation is to divide the whole domain of interest by domains. Each domain possesses its own behavior govering by a material law. Mechanical, thermal, or multi-physical coupled domain-material law can be used.
|
|
|
#### *Material law*
|
|
|
### *Material law*
|
|
|
```python
|
|
|
lawnum1 = 11 # unique number of law
|
|
|
E = 210E3
|
... | ... | @@ -46,16 +46,16 @@ h = E/100. |
|
|
harden = LinearExponentialJ2IsotropicHardening(lawnum1, sy0, h, 0., 10.)
|
|
|
law1 = J2LinearDG3DMaterialLaw(lawnum1,rho,E,nu,harden)
|
|
|
```
|
|
|
#### *Domain*
|
|
|
### *Domain*
|
|
|
```python
|
|
|
nfield = 217 # number of the field (physical number of entity)
|
|
|
dim =3
|
|
|
myfield1 = dG3DDomain(10,nfield,0,lawnum1,0,3)
|
|
|
```
|
|
|
### define solver
|
|
|
### define solver options
|
|
|
### define Boundary condition
|
|
|
### define post processing
|
|
|
## define solver
|
|
|
## define solver options
|
|
|
## define Boundary condition
|
|
|
## define post processing
|
|
|
|
|
|
## 1. Using a microscopic boundary condition
|
|
|
|
... | ... | |