Skip to content
Snippets Groups Projects
Commit c2251a72 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix

parent df175cdd
No related branches found
No related tags found
No related merge requests found
......@@ -67,18 +67,18 @@ Physical Point(1) = {1,2} ;
// both with the region number 1. The mechanism is identical for line or surface
// elements:
MY_FIRST_LINE = 99;
Physical Line(MY_FIRST_LINE) = {1,2} ;
MY_LINE = 2;
Physical Line(MY_LINE) = {1,2} ;
Physical Line("My second line (auto physical id)") = {3} ;
Physical Line("My third line (physical id 199)", 199) = {4} ;
Physical Line("My third line (physical id 5)", 5) = {4} ;
Physical Surface("My surface") = {6} ;
// All the line elements created during the meshing of lines 1 and 2 will be
// saved in the output mesh file with the physical id 99. The elements from line
// saved in the output mesh file with the physical id 2. The elements from line
// 3 will be saved in the output mesh file with an automatic physical id,
// associated with the label "My second line (auto physical id)". The elements
// from line 4 will be saved with physical id 199, associated with the label "My
// third line (physical id 199)". And finally, all the triangular elements
// from line 4 will be saved with physical id 5, associated with the label "My
// third line (physical id 5)". And finally, all the triangular elements
// resulting from the discretization of surface 6 will be given an automatic
// physical id associated with the label "My surface").
......
......@@ -28,7 +28,7 @@ Extrude {0,0,h} {
// ({0,1,0}), an axis point ({-0.1,0,0.1}) and a rotation angle (-Pi/2):
Extrude { {0,1,0} , {-0.1,0,0.1} , -Pi/2 } {
Surface{122}; Layers{7}; Recombine;
Surface{28}; Layers{7}; Recombine;
}
// Note that a translation ({-2*h,0,0}) and a rotation ({1,0,0}, {0,0.15,0.25},
......@@ -41,7 +41,7 @@ DefineConstant[ angle = {90, Min 0, Max 120, Step 1,
Name "Parameters/Twisting angle"} ];
out[] = Extrude { {-2*h,0,0}, {1,0,0} , {0,0.15,0.25} , angle * Pi / 180 } {
Surface{144}; Layers{10}; Recombine;
Surface{50}; Layers{10}; Recombine;
};
// In this last extrusion command we retrieved the volume number programatically
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment