Skip to content

Commit 95eda06

Browse files
committed
add elasticity reaction force computing example
1 parent db66be3 commit 95eda06

File tree

3 files changed

+40805
-0
lines changed

3 files changed

+40805
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Choose the mesh size:
2+
c = 0.1;
3+
4+
// Number of extrude layers:
5+
n = 3;
6+
7+
Point(1) = {0, 0, 0, c};
8+
Point(2) = {1, 0, 0, c};
9+
Point(3) = {0, -1, 0, c};
10+
Point(4) = {0, 1, 0, c};
11+
Point(5) = {-1, 0, 0, c};
12+
13+
Circle(1) = {5, 1, 4};
14+
Circle(2) = {4, 1, 2};
15+
Circle(3) = {2, 1, 3};
16+
Circle(4) = {3, 1, 5};
17+
18+
Line Loop(5) = {1, 2, 3, 4};
19+
Plane Surface(6) = {5};
20+
Recombine Surface{6};
21+
22+
Extrude{0,0,0.1}{Surface{6}; Layers{n}; Recombine;}
23+
24+
Physical Volume(1) = {1};
25+
Physical Surface(2) = {15,19,23,27};
26+
Physical Surface(3) = {28};
27+
Physical Line(4) = {8,9,10,11};

0 commit comments

Comments
 (0)