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
c8b45c06
Commit
c8b45c06
authored
18 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
added some debug code
parent
a50b79e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/meshGRegion.cpp
+15
-8
15 additions, 8 deletions
Mesh/meshGRegion.cpp
doc/FAQ
+20
-22
20 additions, 22 deletions
doc/FAQ
with
35 additions
and
30 deletions
Mesh/meshGRegion.cpp
+
15
−
8
View file @
c8b45c06
// $Id: meshGRegion.cpp,v 1.2
5
2007-01-
18 10:18:3
0 geuzaine Exp $
// $Id: meshGRegion.cpp,v 1.2
6
2007-01-
25 20:41:4
0 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -457,8 +457,7 @@ void meshNormalsPointOutOfTheRegion(GRegion *gr)
}
++
it_b
;
}
Msg
(
INFO
,
"Region %d Face %d, %d intersect"
,
gr
->
tag
(),
gf
->
tag
(),
nb_intersect
);
Msg
(
INFO
,
"Region %d Face %d, %d intersect"
,
gr
->
tag
(),
gf
->
tag
(),
nb_intersect
);
if
(
nb_intersect
>=
0
)
break
;
// negative value means intersection is not "robust"
}
...
...
@@ -475,6 +474,14 @@ void meshNormalsPointOutOfTheRegion(GRegion *gr)
++
it
;
}
}
// FILE *fp = fopen("debug.pos", "w");
// fprintf(fp, "View \"debug\" {\n");
// for(std::list<GFace*>::iterator it = faces.begin(); it != faces.end(); it++)
// for(unsigned int i = 0; i < (*it)->triangles.size(); i++)
// (*it)->triangles[i]->writePOS(fp, 1., (*it)->tag());
// fprintf(fp, "};\n");
// fclose(fp);
}
void
meshGRegion
::
operator
()
(
GRegion
*
gr
)
...
...
This diff is collapsed.
Click to expand it.
doc/FAQ
+
20
−
22
View file @
c8b45c06
$Id: FAQ,v 1.
79
2007-01-25
15:51:04
geuzaine Exp $
$Id: FAQ,v 1.
80
2007-01-25
20:41:40
geuzaine Exp $
This is the Gmsh FAQ
...
...
@@ -164,42 +164,40 @@ Section 5: Mesh module
* 5.1 What should I do when the 2D unstructured algorithm fails?
Send us a bug report (including your geometry).
Verify that the 1D mesh does not self-intersect. If it does, use a
smaller characteristic length. If it doesn't, send us a bug report
(including your geometry).
* 5.2 What should I do when the 3D unstructured algorithm fails?
Try to change some characteristic lengths in your input file to
generate meshes that better suit the geometrical details of your
structure.
Try the other 3D algorithms (Tool->Options->Mesh->General->3D
algorithm). If none works, try to adapt the characteristic lengths in
your input file so that the surface mesh better matches the
geometrical details of the model. If nothing works, send us a bug
report (including your geometry).
* 5.3 I changed the characteristic lengths, but the 3D algorithm still
does not work. What should I do?
Try one of the other algorithms (Tool->Options->Mesh->General->3D
algorithm). If everything fails, buy a professional mesh generator ;-)
* 5.4 The quality of the elements generated by the 3D algorithm is
* 5.3 The quality of the elements generated by the 3D algorithm is
very bad.
Use 'Optimize quality' in the mesh menu.
* 5.
5
Non-recombined 3D extruded meshes sometimes fail.
* 5.
4
Non-recombined 3D extruded meshes sometimes fail.
The swapping algorithm is not very clever at the moment. Try to change
the surface mesh a bit, or recombine your mesh to generate prisms or
hexahedra instead of tetrahedra.
* 5.
6
Can I explicitly assign region numbers to extruded layers?
* 5.
5
Can I explicitly assign region numbers to extruded layers?
No, this feature has been removed in Gmsh 2.0. You must use the
standard entity number instead.
* 5.
7
Did you remove the elliptic mesh generator in Gmsh 2.0?
* 5.
6
Did you remove the elliptic mesh generator in Gmsh 2.0?
Yes. You can achieve the same result by using the transfinite
algorithm with smoothing (e.g., with "Mesh.Smoothing = 10").
* 5.
8
Does Gmsh support curved elements?
* 5.
7
Does Gmsh support curved elements?
Yes, Gmsh can generate both 1st order and 2nd order elements. To
generate second order elements, click on 'Second order' in the mesh
...
...
@@ -207,14 +205,14 @@ menu after the mesh is completed. To always generate 2nd order
elements, select 'Generate second order elements' in the mesh option
panel. From the command line, you can also use '-order 2'.
* 5.
9
Can I import an existing surface mesh in Gmsh and use it to
* 5.
8
Can I import an existing surface mesh in Gmsh and use it to
build a 3D mesh?
Yes, you can import a surface mesh in any one of the supported mesh
file formats, define a volume, and mesh it. For an example see
'demos/sphere-discrete.geo'.
* 5.
10
How do I define boundary conditions or material properties in
* 5.
9
How do I define boundary conditions or material properties in
Gmsh?
By design, Gmsh does not try to incorporate every possible definition
...
...
@@ -227,12 +225,12 @@ Lines, Physical Surfaces and Physical Volumes). See the reference
manual as well as the tutorials (in particular 'tutorial/t1.geo') for
a detailed description and some examples.
* 5.1
1
How can I display only the mesh associated with selected
* 5.1
0
How can I display only the mesh associated with selected
geometrical entities?
See question 4.3.
* 5.1
2
How can I "explore" a mesh (for example, to see inside a
* 5.1
1
How can I "explore" a mesh (for example, to see inside a
complex structure)?
You can use 'Tools->Clipping Planes' to clip the region of
...
...
@@ -246,7 +244,7 @@ fields. There is also one additional clipping plane available for
"cutting" only the mesh (by keeping entire elements), in
'Tools->Options->Mesh->Cut Plane'.
* 5.1
3
What is the signification of Rho, Eta and Gamma in
* 5.1
2
What is the signification of Rho, Eta and Gamma in
Tools->Statistics?
They measure the quality of the tetrahedra in a mesh:
...
...
@@ -436,7 +434,7 @@ line option.
* 7.14 How can I see "inside" a complicated post-processing view?
See question 5.1
2
.
See question 5.1
1
.
When viewing 3D scalar fields, you can also modify the colormap
('Tools->Options->View->Map') to make the iso-surfaces "transparent":
...
...
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