v0.14.0
sorption_cube.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 
4 brick x 0.0025 y 0.00041 z 0.00041
5 
6 # Set block with volume with gel material
7 block 1 volume all
8 block 1 name 'GEL'
9 
10 # Set Dirichelt boundary condition for solvent concentration
11 block 2 surface 2 3 4
12 block 2 name 'CHEMICAL_LOAD_1'
13 block 2 attribute count 1
14 block 2 attribute index 1 6.624729054813950e-18
15 
16 # Set solvent flux, i.e.
17 block 4 surface 1 5 6
18 block 4 name 'FLUX_CHEMICAL_LOAD_2'
19 block 4 attribute count 1
20 block 4 attribute index 1 0
21 
22 # Kinematic boundary condition for mechanical field
23 create displacement on surface 6 dof 1 fix 0
24 
25 # Kinematic boundary condition for mechanical field
26 create displacement on surface 5 dof 2 fix 0
27 
28 # Kinematic boundary condition for mechanical field
29 create displacement on surface 1 dof 3 fix 0
30 
31 # Make a mesh
32 volume all scheme Tetmesh
33 volume all size auto factor 7
34 mesh volume all
35 
36 # Set block 3 and set 10 node tetrahedrons in that block
37 block 3 tet all
38 block 3 element type TETRA10