-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#180 first version running, along with tests (but bad_alloc problem a…
…ppearing sometimes, still needs debugging...)
- Loading branch information
Showing
16 changed files
with
403 additions
and
31 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,58 @@ | ||
// Generate simple X across 2D box | ||
|
||
lc = 0.3; | ||
lc2 = 0.3; | ||
|
||
Point(1) = {0, 0, 0, lc}; | ||
Point(2) = {1, 0, 0, lc}; | ||
Point(3) = {1, 1, 0, lc}; | ||
Point(4) = {0, 1, 0, lc}; | ||
|
||
Point(5) = {0.5, 0.5, 0, lc2}; | ||
|
||
Point(6) = {0.3, 0, 0, lc2}; | ||
Point(7) = {0.7, 1, 0, lc2}; | ||
Point(8) = {0.75, 0, 0, lc2}; | ||
Point(9) = {0.25, 1, 0, lc2}; | ||
|
||
Line(1) = {4, 1}; | ||
Line(2) = {1, 6}; | ||
Line(3) = {6, 8}; | ||
Line(4) = {8, 2}; | ||
Line(9) = {2, 3}; | ||
Line(10) = {3, 7}; | ||
Line(11) = {7, 9}; | ||
Line(12) = {9, 4}; | ||
|
||
Line(5) = {6, 5}; | ||
Line(6) = {5, 7}; | ||
Line(7) = {9, 5}; | ||
Line(8) = {5, 8}; | ||
|
||
|
||
Curve Loop(1) = {1, 2, 5, -7, 12}; | ||
Plane Surface(1) = {1}; | ||
Curve Loop(2) = {3, -8, -5}; | ||
Plane Surface(2) = {2}; | ||
Curve Loop(3) = {4, 9, 10, -6, 8}; | ||
Plane Surface(3) = {3}; | ||
Curve Loop(4) = {6, 11, 7}; | ||
Plane Surface(4) = {4}; | ||
|
||
|
||
Physical Surface("blockA") = {1}; | ||
Physical Surface("blockB") = {2}; | ||
Physical Surface("blockC") = {3}; | ||
Physical Surface("blockD") = {4}; | ||
|
||
|
||
Physical Curve("ss2") = {5,6}; | ||
Physical Curve("ss3") = {7,8}; | ||
Physical Curve("bottom") = {2,3,4}; | ||
Physical Curve("top") = {10,11}; | ||
Physical Curve("right") = {9}; | ||
Physical Curve("left") = {1}; | ||
|
||
|
||
|
||
|
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,43 @@ | ||
// Generate truncated X pattern across 2D box | ||
lc = 0.3; | ||
lc2 = 0.2; | ||
|
||
Point(1) = {0, 0, 0, lc}; | ||
Point(2) = {1, 0, 0, lc}; | ||
Point(3) = {1, 1, 0, lc}; | ||
Point(4) = {0, 1, 0, lc}; | ||
|
||
Point(5) = {0.5, 0.5, 0, lc2}; | ||
|
||
Point(6) = {0.3, 0.2, 0, lc2}; | ||
Point(7) = {0.7, 0.8, 0, lc2}; | ||
Point(8) = {0.7, 0.1, 0, lc2}; | ||
Point(9) = {0.3, 0.9, 0, lc2}; | ||
|
||
Line(1) = {4, 1}; | ||
Line(2) = {1, 2}; | ||
Line(9) = {2, 3}; | ||
Line(10) = {3, 4}; | ||
|
||
Line(5) = {6, 5}; | ||
Line(6) = {5, 7}; | ||
Line(7) = {9, 5}; | ||
Line(8) = {5, 8}; | ||
|
||
|
||
Curve Loop(1) = {1, 2, 9, 10}; | ||
Plane Surface(1) = {1}; | ||
SetFactory("OpenCASCADE"); | ||
Curve{5, 6, 7, 8} In Surface{1}; | ||
Physical Surface("block") = {1}; | ||
|
||
Physical Curve("ss2") = {5,6}; | ||
Physical Curve("ss3") = {7,8}; | ||
Physical Curve("bottom") = {2}; | ||
Physical Curve("top") = {10}; | ||
Physical Curve("right") = {9}; | ||
Physical Curve("left") = {1}; | ||
|
||
|
||
|
||
|
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,46 @@ | ||
// Generate truncated X pattern across 2D box | ||
lc = 0.3; | ||
lc2 = 0.3; | ||
|
||
Point(1) = {0, 0, 0, lc}; | ||
Point(2) = {1, 0, 0, lc}; | ||
Point(3) = {1, 1, 0, lc}; | ||
Point(4) = {0, 1, 0, lc}; | ||
|
||
Point(5) = {0.5, 0.5, 0, lc2}; | ||
|
||
Point(6) = {0.3, 0, 0, lc2}; | ||
Point(7) = {0.6, 0.75, 0, lc2}; | ||
Point(8) = {0.75, 0, 0, lc2}; | ||
Point(9) = {0.25, 1, 0, lc2}; | ||
|
||
Line(1) = {4, 1}; | ||
Line(2) = {1, 6}; | ||
Line(3) = {6, 8}; | ||
Line(4) = {8, 2}; | ||
Line(9) = {2, 3}; | ||
Line(10) = {3, 9}; | ||
Line(11) = {9, 4}; | ||
|
||
Line(5) = {6, 5}; | ||
Line(6) = {5, 7}; | ||
Line(7) = {9, 5}; | ||
Line(8) = {5, 8}; | ||
|
||
|
||
Curve Loop(1) = {1, 2, 3, 4, 9, 10, 11}; | ||
Plane Surface(1) = {1}; | ||
SetFactory("OpenCASCADE"); | ||
Curve{5, 6, 7, 8} In Surface{1}; | ||
Physical Surface("block") = {1}; | ||
|
||
Physical Curve("ss2") = {5,6}; | ||
Physical Curve("ss3") = {7,8}; | ||
Physical Curve("bottom") = {2,3,4}; | ||
Physical Curve("top") = {10,11}; | ||
Physical Curve("right") = {9}; | ||
Physical Curve("left") = {1}; | ||
|
||
|
||
|
||
|
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,9 @@ | ||
[Mesh] | ||
file = ../../meshes/fractureXtruncated.msh | ||
[] | ||
|
||
[MeshModifiers] | ||
[New_0] | ||
type = BreakMeshByBlock | ||
[] | ||
[] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,14 @@ | ||
# Test for InterfaceFromSideset MeshModifier on 2D block | ||
# with simple X fractures (touching all sides) | ||
|
||
[Mesh] | ||
file = ../../meshes/fractureX.msh | ||
[] | ||
|
||
[MeshModifiers] | ||
[New_0] | ||
type = InterfaceFromSideset | ||
sidesets = 'ss2 ss3' | ||
boundaries = 'left right top bottom' | ||
[] | ||
[] |
Oops, something went wrong.