-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge sm/mastertmp and tested for examples in README
- Loading branch information
Showing
32 changed files
with
153,055 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
nelemx = 16; | ||
nelemy = 16; | ||
nelemz = 19; | ||
|
||
xmin = 0; | ||
xmax = 6400; | ||
ymin = 0; | ||
ymax = 6400; | ||
zmin = 0; | ||
zmax = 3000; | ||
gridsize = (xmax-xmin) / nelemx; | ||
|
||
Point(1) = {xmin, ymin, zmin, gridsize}; | ||
Point(2) = {xmax, ymin, zmin, gridsize}; | ||
Point(3) = {xmax, ymin, zmax, gridsize}; | ||
Point(4) = {xmin, ymin, zmax, gridsize}; | ||
|
||
Line(1) = {1, 2}; | ||
Line(2) = {2, 3}; | ||
Line(3) = {3, 4}; | ||
Line(4) = {4, 1}; | ||
|
||
|
||
npx = nelemx + 1; | ||
npy = nelemy + 1; | ||
npz = nelemz + 1; | ||
|
||
//Horizontal sides | ||
Transfinite Line {1, 3} = npx; //Ceil((xmax-xmin)/gridsize) Using Progression 1; | ||
//Vertical sides | ||
Transfinite Line {4, -2} = npz Using Progression 1.0; | ||
|
||
|
||
Line Loop(11) = {4, 1, 2, 3}; | ||
Plane Surface(12) = {11}; | ||
|
||
Transfinite Surface {12}; | ||
Recombine Surface {12}; | ||
|
||
surfaceVector = Extrude {0,(ymax-ymin),0} { | ||
Surface{12}; | ||
Layers{nelemy}; | ||
Recombine; | ||
}; | ||
//Coherence; | ||
|
||
/* surfaceVector contains in the following order: | ||
[0] - front surface (opposed to source surface) | ||
[1] - extruded volume | ||
[2] - bottom surface (belonging to 1st line in "Line Loop (6)") | ||
[3] - right surface (belonging to 2nd line in "Line Loop (6)") | ||
[4] - top surface (belonging to 3rd line in "Line Loop (6)") | ||
[5] - left surface (belonging to 4th line in "Line Loop (6)") | ||
*/ | ||
Physical Surface("bottom") = {12}; | ||
Physical Volume("internal") = {1}; | ||
Physical Surface("back") = {25}; | ||
Physical Surface("front") = {33}; | ||
Physical Surface("left") = {21}; | ||
Physical Surface("right") = {29}; | ||
Physical Surface("top") = {34}; // from Plane Surface (6) ... | ||
//+ | ||
Show "*"; | ||
//+ | ||
Show "*"; |
Oops, something went wrong.