v0.14.0
layered_gel_example.jou
Go to the documentation of this file.
1 reset
2 set duplicate block elements on
3 brick x 0.002 y 0.00025 z 0.00125
4 brick x 0.002 y 0.00025 z 0.00125
5 move volume 1 y 0.00025
6 merge surface 3 with surface 11
7 webcut volume all with plane zplane noimprint nomerge
8 delete Volume 3 4
9 # Set block with volume with gel material
10 block 1 volume 1
11 block 1 name 'GEL_1'
12 block 2 volume 2
13 block 2 name 'GEL_2'
14 # Make a mesh
15 volume all scheme Tetmesh
16 volume all size auto factor 7
17 mesh volume all
18 #surface 3 scheme trimesh
19 #surface 3 size auto factor 2
20 #mesh surface 3
21 #
22 #surface 5 9 scheme trimesh
23 #surface 5 9 size auto factor 2
24 #mesh surface 5 9
25 #
26 #volume all scheme Tetmesh
27 #volume all sizing function type skeleton scale 7 time_accuracy_level 2 min_size auto max_size auto max_gradient 1.2 min_depth 2 max_depth 7 min_num_layers_3d 1 min_num_layers_2d 1 min_num_layers_1d 1 max_span_ang_surf 45 max_span_ang_curve 45
28 #volume all sizing function type skeleton
29 #mesh volume all
30 #volume all scheme Tetmesh
31 #volume 1 sizing function type skeleton scale 7 time_accuracy_level 2 min_size auto max_size auto max_gradient 1.2 min_depth 2 max_depth 7 min_num_layers_3d 1 min_num_layers_2d 1 min_num_layers_1d 1 max_span_ang_surf 45 max_span_ang_curve 45
32 #volume 1 sizing function type skeleton
33 #mesh volume 1
34 # Set Dirichelt boundary condition for solvent concentration
35 block 3 surface 17 27 1 7 14 26
36 block 3 name 'CHEMICAL_LOAD_1'
37 block 3 attribute count 1
38 block 3 attribute index 1 1.5e06
39 # Set solvent flux, i.e.
40 block 5 surface 13 23 15 25
41 block 5 name 'FLUX_CHEMICAL_LOAD_2'
42 block 5 attribute count 1
43 block 5 attribute index 1 0
44 # Kinematic boundary condition for mechanical field
45 create displacement on surface 15 dof 1 fix 0
46 # Kinematic boundary condition for mechanical field
47 create displacement on surface 25 dof 1 fix 0
48 # Kinematic boundary condition for mechanical field
49 create displacement on curve 29 dof 2 fix 0
50 # Kinematic boundary condition for mechanical field
51 create displacement on surface 1 dof 3 fix 0
52 # Kinematic boundary condition for mechanical field
53 create displacement on surface 7 dof 3 fix 0
54 # Kinematic boundary condition for mechanical field
55 create displacement on surface 13 dof 3 fix 0
56 # Kinematic boundary condition for mechanical field
57 create displacement on surface 23 dof 3 fix 0
58 # Set block 4 and set 10 node tetrahedrons in that block
59 block 4 tet all
60 block 4 element type TETRA10