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