v0.14.0
mesh_for_prims.jou
Go to the documentation of this file.
1 reset
2 
3 #GEOMETRY
4 create brick x 15 y 15 z 5
5 create brick x 15 y 15 z 0.1
6 #create brick x 6.4 y 6.4 z 5.1
7 create brick x 5.6 y 5.6 z 5.1
8 move surface 8 location surface 1 include_merged
9 align volume 3 surface 14 with surface 2
10 imprint volume all
11 merge volume all
12 delete volume 3
13 move surface 25 location 0 0 0 include_merged
14 
15 
16 #BOUNDARY CONDITIONS
17 sideset 101 surface 21
18 #sideset 202 surface 25
19 create displacement on surface 22 20 dof all fix 0
20 
21 #BLOCKS OF MATERIALS
22 set duplicate block elements on
23 block 1 volume 1
24 block 1 name "MAT_ELASTIC_1"
25 block 1 attribute count 2
26 #block 2 volume 2
27 #block 2 name "MAT_ELASTIC_2"
28 #block 2 attribute count 2
29 
30 #POLYMER PARAMETERS
31 #block 2 attribute index 1 0.25
32 #block 2 attribute index 2 0.49
33 
34 #HYDROGEL PARAMETERS
35 block 1 attribute index 1 3.6e-3
36 block 1 attribute index 2 0.4
37 
38 delete volume 2
39 
40 #{mesh_factor=1}
41 surface 21 size auto factor {mesh_factor}
42 surface 21 scheme TriMesh
43 mesh surface 21
44 #surface 21 scheme copy source surface 25 source curve 25 target curve 40 nosmoothing
45 #mesh surface 21
46 volume all size auto factor 7
47 volume all scheme tetmesh
48 
49 #volume 1 sizing function type skeleton
50 mesh volume all
51 
52 save as "/Users/karollewandowski/moFEM/users_modules/cell_engineering/mesh_cell_force_map.cub" overwrite
53 list tet