Skip to content

Commit d67818f

Browse files
committed
better transfer of sets from gmsh to cgx
1 parent 9d522c1 commit d67818f

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

Linear/Crack1/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ From the difference of the strain energy for two different crack lengths the ene
4242
release rate can be calculated.
4343

4444
In order to determine the energy release rate, run the model twice with
45-
different settings of the crack length a in `ct.geo`
45+
different settings of the crack length `a` in `ct.geo`
4646

4747
For each run, record the crack length a and the strain energy from the file s`olve.dat`.
4848

@@ -69,10 +69,9 @@ the element size at the three points in the crack plane.
6969
<img src="mesh.png" width="400" title="Mesh for B=20, a=20.5, t=2. Image generated by Save as png in Gmsh">
7070

7171
The faces for symmetry constraints and load application are defined as so called physical groups in Gmsh.
72-
This has the advantage that properly named element sets are written to the output `gmsh.inp`.
72+
This has the advantage that properly named node sets are written to the output `gmsh.inp`.
7373

74-
The mesh then is read into CGX and the surface element sets are extended to node sets (for the constraints) and to
75-
element face sets (for the load).
74+
The mesh then is read into CGX, the surface elements from Gmsh are deleted and the node set for the load is extended into a face set.
7675

7776
<img src="Refs/sets.png" width="400" title="Sets: Load (yellow), Ysym (red), Zsym (blue)">
7877

Linear/Crack1/ct.fbd

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
sys gmsh ct.geo
22
read gmsh.inp
33

4-
# Symmetry
5-
comp Symy do
6-
comp Symz do
7-
# force
8-
comp Load do
94
# remove all surface elements
10-
seta tozap e all
11-
setr tozap e +C3D10
12-
zap tozap
13-
del se0
5+
zap +CPS6
146

157
send all abq
168
send Symy abq nam

Linear/Crack1/ct.geo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ Physical Surface("Symy")={30};
5555
Physical Surface("Symz")={14};
5656
Physical Surface("Load")={66,70};
5757
Physical Volume("Part")={1};
58+
Mesh.SaveGroupsOfNodes = 1;
5859
Save "gmsh.inp";
5960
Save "gmsh.png";

0 commit comments

Comments
 (0)