-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d415ccf
commit e5e8cf1
Showing
3 changed files
with
394 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Periodic hexahedral cube mesh | ||
|
||
Point(1) = {0, 0, 0, 1.0}; | ||
Point(2) = {1, 0, 0, 1.0}; | ||
Point(3) = {1, 1, 0, 1.0}; | ||
Point(4) = {0, 1, 0, 1.0}; | ||
|
||
Characteristic Length {:} = 0.25; | ||
|
||
Line(1) = {1, 2}; | ||
Line(2) = {2, 3}; | ||
Line(3) = {3, 4}; | ||
Line(4) = {4, 1}; | ||
|
||
//Periodic Curve {1} = {-3}; | ||
//Periodic Curve {2} = {-4}; | ||
|
||
Curve Loop(1) = {1, 2, 3, 4}; | ||
Plane Surface(1) = {1}; | ||
Transfinite Surface {1}; | ||
|
||
Recombine Surface {1}; | ||
out[] = Extrude {0, 0, 1} { Surface{1}; Layers{4}; Recombine; }; | ||
|
||
Physical Volume(1) = {out[1]}; | ||
Physical Surface(1) = {1}; // back | ||
Physical Surface(2) = {out[5]}; // front | ||
Physical Surface(3) = {out[4]}; // left | ||
Physical Surface(4) = {out[2]}; // right | ||
Physical Surface(5) = {out[0]}; // bottom | ||
Physical Surface(6) = {out[3]}; // top | ||
|
||
Mesh 3; | ||
Mesh.MshFileVersion = 2.2; | ||
|
||
//Periodic Surface {out[0]} = {1} Translate {0, 0, 1}; // No periodicity in the z-direction (back & front) | ||
Periodic Surface {out[4]} = {out[2]} Translate {0, 1, 0}; // left and right | ||
Periodic Surface {out[3]} = {out[5]} Translate {1, 0, 0}; // bottom and top |
Oops, something went wrong.