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

forgot to commit these

parent 3dd3bd2a
No related branches found
No related tags found
No related merge requests found
......@@ -312,11 +312,11 @@ class GModel
// build a new GModel by cutting the elements crossed by the levelset ls
GModel *buildCutGModel(gLevelset *ls);
// Gmsh native CAD format
int importGEOInternals();
// read is static, since it can create multiple models
// Gmsh native CAD format (readGEO is static, since it can create
// multiple models)
static int readGEO(const std::string &name);
int writeGEO(const std::string &name, bool printLabels=true);
int importGEOInternals();
// Fourier model
int readFourier();
......
......@@ -7,8 +7,6 @@ Point(1) = {-l/2,-l/2,0,cl};
Point(2) = {-l/2,l/2,0,cl};
Point(3) = {l/2,l/2,0,cl};
Point(4) = {l/2,-l/2,0,cl};
//Point(3) = {2*l,l,0,cl};
//Point(4) = {2*l,0,0,cl};
Line(1) = {1,2} ;
Line(2) = {2,3} ;
......@@ -23,25 +21,19 @@ Physical Line(100) = {1};
Physical Line(200) = {2};
Physical Line(300) = {3};
Physical Line(400) = {4};
//Physical Surface(1000) = {6};
Mesh 2;
Merge "level.med";
Levelset Plane (1) = {0,-1,0,0.22};
Levelset Plane (2) = {-1,0,0,0.5};
Levelset Sphere (3) = {{0,0,0},0.75};
Levelset Ellipsoid (4) = { {0,0,0}, {1,0,0}, 0.55, 0.55, 0.75 };
//Merge "level.med";
//Levelset PostView (11) = 0;
Levelset Intersection (10) = {1,3};
Levelset PostView (11) = 0;
Levelset CutMesh {11};
Levelset CutMesh {10};
Physical Surface(1000) = {6};
Physical Surface(2000) = {7};
//Transfinite Line{1,3}=nb+1;
//Transfinite Line{2,4}=2*nb+1+1;
//Transfinite Surface{6}={1,2,3,4};
lc = 0.1;
Point(1) = {0.0,0.0,0.0,lc};
Point(2) = {1,0.0,0.0,lc};
Point(3) = {1,1,0.0,lc};
Point(4) = {0,1,0.0,lc};
Line(1) = {4,3};
Line(2) = {3,2};
Line(3) = {2,1};
Line(4) = {1,4};
Line Loop(5) = {2,3,4,1};
Plane Surface(6) = {5};
Extrude {0,0.0,1} {
Surface{6};
}
Mesh 3;
Levelset Plane (1) = {0,-1,0,0.5};
Levelset Plane (2) = {-1,0,0,0.5};
Levelset Sphere (3) = {{0.75,0.5,0.5},0.5};
Levelset Ellipsoid (4) = { {0,0,0}, {1,0,0}, 0.45, 0.25, 0.75 };
Levelset MathEval (5) = "(x-0.5)^2+(y-0.5)^2+(z-0.5)^2-0.5^2";
Levelset MathEval (6) = "-((x-0.5)^2+(y-0.5)^2+(z-0.5)^2-0.4^2)";
Levelset Sphere (7) = {{0.75,0.5,0.5},0.4};
Levelset Intersection (10) = {1,2,3};
Levelset Intersection (11) = {5,6};
Levelset Cut (12) = {3,7};
Levelset CutMesh {10};
......@@ -94,7 +94,7 @@ reference in your work (books, articles, reports, etc.):
J.-F. Remacle. <em>Gmsh: a three-dimensional finite element mesh
generator with built-in pre- and post-processing
facilities</em>. International Journal for Numerical Methods in
Engineering, Volume 79, Issue 11, pages 1309-1331, 2009.
Engineering, Volume 79, Issue 11, pages 1309-1331, 2009</a>''.
<h2><a name="Authors"></a>Authors and credits</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment