Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
2f449d5f
Commit
2f449d5f
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
forgot to commit these
parent
3dd3bd2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Geo/GModel.h
+3
-3
3 additions, 3 deletions
Geo/GModel.h
benchmarks/levelset/carreTri.geo
+4
-12
4 additions, 12 deletions
benchmarks/levelset/carreTri.geo
benchmarks/levelset/cube.geo
+29
-0
29 additions, 0 deletions
benchmarks/levelset/cube.geo
doc/gmsh.html
+1
-1
1 addition, 1 deletion
doc/gmsh.html
with
37 additions
and
16 deletions
Geo/GModel.h
+
3
−
3
View file @
2f449d5f
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
benchmarks/levelset/carreTri.geo
+
4
−
12
View file @
2f449d5f
...
...
@@ -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
{
1
1
};
Levelset
CutMesh
{
1
0
};
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};
This diff is collapsed.
Click to expand it.
benchmarks/levelset/cube.geo
0 → 100644
+
29
−
0
View file @
2f449d5f
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
};
This diff is collapsed.
Click to expand it.
doc/gmsh.html
+
1
−
1
View file @
2f449d5f
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment