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

added some debug code
parent a50b79e6
No related branches found
No related tags found
No related merge requests found
// $Id: meshGRegion.cpp,v 1.25 2007-01-18 10:18:30 geuzaine Exp $
// $Id: meshGRegion.cpp,v 1.26 2007-01-25 20:41:40 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)
......
$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.11 How can I display only the mesh associated with selected
* 5.10 How can I display only the mesh associated with selected
geometrical entities?
See question 4.3.
* 5.12 How can I "explore" a mesh (for example, to see inside a
* 5.11 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.13 What is the signification of Rho, Eta and Gamma in
* 5.12 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.12.
See question 5.11.
When viewing 3D scalar fields, you can also modify the colormap
('Tools->Options->View->Map') to make the iso-surfaces "transparent":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment