v0.14.0
Loading...
Searching...
No Matches
brick_of_gel.jou
Go to the documentation of this file.
1reset
2set duplicate block elements on
3
4brick x 10 y 1 z 1
5webcut volume 1 with plane yplane imprint merge
6
7# Sete block with volume with gel material
8block 1 volume 1
9block 1 name 'GEL_1'
10block 2 volume 2
11block 2 name 'GEL_2'
12
13# Set Dirichelt boundary condition for solvent concentration
14block 6 surface 11 13
15block 6 name 'CHEMICAL_LOAD_1'
16block 6 attribute count 1
17block 6 attribute index 1 1
18
19# Set solvent flux, i.e. Neumann boundary condition
20block 5 surface 8 15 5 14 10 3
21block 5 name 'FLUX_CHEMICAL_LOAD'
22block 5 attribute count 1
23block 5 attribute index 1 0
24
25# Kinematic boundary condition for mechanical field
26create displacement on surface 9 16 dof 1 fix 0
27create displacement on vertex 7 dof 1 dof 2 dof 3 fix 0
28create displacement on vertex 4 dof 2 fix 0
29create displacement on vertex 8 dof 3 fix 0
30
31# Static boundary condition, i.e. pressure
32create pressure on surface 6 magnitude 1
33
34# Make a mesh
35volume all scheme Tetmesh
36volume all size auto factor 8
37mesh volume all
38
39# Set block 3 and set 10 node tetrahedrons in that block
40block 3 tet all
41block 3 element type TETRA10
42
43
44
45