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

pp

parent ee96647b
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ int main(int argc, char **argv) ...@@ -102,7 +102,7 @@ int main(int argc, char **argv)
// complete list. You can also create fields directly in the graphical user // complete list. You can also create fields directly in the graphical user
// interface by selecting `Define->Size fields' in the `Mesh' module. // interface by selecting `Define->Size fields' in the `Mesh' module.
// Let's use the minimum of all the fields as the background mesh field: // Let's use the minimum of all the fields as the background mesh size field:
gmsh::model::mesh::field::add("Min", 7); gmsh::model::mesh::field::add("Min", 7);
gmsh::model::mesh::field::setNumbers(7, "FieldsList", {2, 3, 5, 6}); gmsh::model::mesh::field::setNumbers(7, "FieldsList", {2, 3, 5, 6});
...@@ -124,7 +124,7 @@ int main(int argc, char **argv) ...@@ -124,7 +124,7 @@ int main(int argc, char **argv)
// geometrical points; // geometrical points;
// 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on // 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
// curvature (the value specifying the number of elements per 2 * pi rad); // curvature (the value specifying the number of elements per 2 * pi rad);
// 4) the background mesh field; // 4) the background mesh size field;
// 5) any per-entity mesh size constraint; // 5) any per-entity mesh size constraint;
// //
// The value can then be further modified by the mesh size callback, if any, // The value can then be further modified by the mesh size callback, if any,
...@@ -134,7 +134,7 @@ int main(int argc, char **argv) ...@@ -134,7 +134,7 @@ int main(int argc, char **argv)
// depending on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set // depending on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set
// by default). // by default).
// //
// When the element size is fully specified by a background mesh (as it is in // When the element size is fully specified by a mesh size field (as it is in
// this example), it is thus often desirable to set // this example), it is thus often desirable to set
gmsh::option::setNumber("Mesh.MeshSizeExtendFromBoundary", 0); gmsh::option::setNumber("Mesh.MeshSizeExtendFromBoundary", 0);
......
...@@ -102,7 +102,7 @@ call gmsh%model%mesh%field%setNumber(6, "Thickness", 0.3d0) ...@@ -102,7 +102,7 @@ call gmsh%model%mesh%field%setNumber(6, "Thickness", 0.3d0)
! complete list. You can also create fields directly in the graphical user ! complete list. You can also create fields directly in the graphical user
! interface by selecting `Define->Size fields' in the `Mesh' module. ! interface by selecting `Define->Size fields' in the `Mesh' module.
! Let's use the minimum of all the fields as the background mesh field: ! Let's use the minimum of all the fields as the background mesh size field:
ret = gmsh%model%mesh%field%add("Min", 7) ret = gmsh%model%mesh%field%add("Min", 7)
call gmsh%model%mesh%field%setNumbers(7, "FieldsList", [2d0, 3d0, 5d0, 6d0]) call gmsh%model%mesh%field%setNumbers(7, "FieldsList", [2d0, 3d0, 5d0, 6d0])
...@@ -128,7 +128,7 @@ call gmsh%model%mesh%setSizeCallback(c_funloc(meshSizeCallback)) ...@@ -128,7 +128,7 @@ call gmsh%model%mesh%setSizeCallback(c_funloc(meshSizeCallback))
! boundary mesh sizes are interpolated inside surfaces and/or volumes depending ! boundary mesh sizes are interpolated inside surfaces and/or volumes depending
! on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default). ! on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
! !
! When the element size is fully specified by a background mesh (as it is in ! When the element size is fully specified by a mesh size field (as it is in
! this example), it is thus often desirable to set ! this example), it is thus often desirable to set
call gmsh%option%setNumber("Mesh.MeshSizeExtendFromBoundary", 0d0) call gmsh%option%setNumber("Mesh.MeshSizeExtendFromBoundary", 0d0)
......
...@@ -95,7 +95,7 @@ gmsh.model.mesh.field.setNumber(6, "Thickness", 0.3) ...@@ -95,7 +95,7 @@ gmsh.model.mesh.field.setNumber(6, "Thickness", 0.3)
# complete list. You can also create fields directly in the graphical user # complete list. You can also create fields directly in the graphical user
# interface by selecting `Define->Size fields' in the `Mesh' module. # interface by selecting `Define->Size fields' in the `Mesh' module.
# Let's use the minimum of all the fields as the background mesh field: # Let's use the minimum of all the fields as the mesh size field:
gmsh.model.mesh.field.add("Min", 7) gmsh.model.mesh.field.add("Min", 7)
gmsh.model.mesh.field.setNumbers(7, "FieldsList", [2, 3, 5, 6]) gmsh.model.mesh.field.setNumbers(7, "FieldsList", [2, 3, 5, 6])
...@@ -115,7 +115,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback) ...@@ -115,7 +115,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
# points; # points;
# 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on # 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
# curvature (the value specifying the number of elements per 2 * pi rad); # curvature (the value specifying the number of elements per 2 * pi rad);
# 4) the background mesh field; # 4) the background mesh size field;
# 5) any per-entity mesh size constraint; # 5) any per-entity mesh size constraint;
# #
# The value can then be further modified by the mesh size callback, if any, # The value can then be further modified by the mesh size callback, if any,
...@@ -124,7 +124,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback) ...@@ -124,7 +124,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
# boundary mesh sizes are interpolated inside surfaces and/or volumes depending # boundary mesh sizes are interpolated inside surfaces and/or volumes depending
# on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default). # on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
# #
# When the element size is fully specified by a background mesh (as it is in # When the element size is fully specified by a mesh size field (as it is in
# this example), it is thus often desirable to set # this example), it is thus often desirable to set
gmsh.option.setNumber("Mesh.MeshSizeExtendFromBoundary", 0) gmsh.option.setNumber("Mesh.MeshSizeExtendFromBoundary", 0)
......
...@@ -100,8 +100,8 @@ Background Field = 7; ...@@ -100,8 +100,8 @@ Background Field = 7;
// boundary mesh sizes are interpolated inside surfaces and/or volumes depending // boundary mesh sizes are interpolated inside surfaces and/or volumes depending
// on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default). // on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
// //
// When the element size is fully specified by a background mesh size field (as // When the element size is fully specified by a mesh size field (as it is in
// it is in this example), it is thus often desirable to set // this example), it is thus often desirable to set
Mesh.MeshSizeExtendFromBoundary = 0; Mesh.MeshSizeExtendFromBoundary = 0;
Mesh.MeshSizeFromPoints = 0; Mesh.MeshSizeFromPoints = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment