v0.16.0
Loading...
Searching...
No Matches
cube.jou
Go to the documentation of this file.
1reset
2set duplicate block elements on
3
4#{mesh_size=0.50}
5#{young_modulus=1.0}
6#{poisson_ratio=0.3}
7#{top_displacement=0.05}
8#{bottom_displacement=-0.05}
9
10# -----------------
11# Geometry
12# -----------------
13brick x 1 y 1 z 1
14
15# -----------------
16# Blocksets
17# -----------------
18block 1 volume 1
19block 1 name "MAT_BLOCK"
20block 1 attribute count 2
21block 1 attribute index 1 {young_modulus} name "Young modulus"
22block 1 attribute index 2 {poisson_ratio} name "Poisson ratio"
23
24block 101 surface with x_coord == -0.5
25block 101 name "LEFT_SURF"
26
27block 102 surface with x_coord == 0.5
28block 102 name "RIGHT_SURF"
29
30block 103 surface with y_coord == -0.5
31block 103 name "FRONT_SURF"
32
33block 104 surface with y_coord == 0.5
34block 104 name "BACK_SURF"
35
36block 105 surface with z_coord == -0.5
37block 105 name "BOTTOM_SURF"
38
39block 106 surface with z_coord == 0.5
40block 106 name "TOP_SURF"
41
42block 107 surface 1 2 3 4 5 6
43block 107 name "ALL_BOUNDARY"
44
45# -----------------
46# Meshing
47# -----------------
48volume 1 scheme tetmesh
49volume 1 size {mesh_size}
50mesh volume 1
51
52save as "cube.cub" overwrite