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

uniform mesh by default

parent aeb9dc99
Branches
Tags
No related merge requests found
...@@ -41,11 +41,20 @@ Volume(1) = {1}; ...@@ -41,11 +41,20 @@ Volume(1) = {1};
Physical Surface(1) = {s : s + #ss[]-1}; Physical Surface(1) = {s : s + #ss[]-1};
Physical Volume(1) = 1; Physical Volume(1) = 1;
// Apply a funny mesh size field, just because we can :-) uniform = 1;
Field[1] = MathEval; If(uniform)
Field[1].F = "2*Sin((x+y)/5) + 3"; // uniform mesh size...
Background Field = 1; Mesh.CharacteristicLengthMin = 2.5;
Mesh.CharacteristicLengthMax = 2.5;
EndIf
If(!uniform)
// ... or apply a funny mesh size field, just because we can :-)
Field[1] = MathEval;
Field[1].F = "2*Sin((x+y)/5) + 3";
Background Field = 1;
EndIf
Mesh.RemeshAlgorithm = 1; // (0) no split (1) automatic (2) automatic only with metis Mesh.RemeshAlgorithm = 1; // (0) no split (1) automatic (2) automatic only with metis
Mesh.RemeshParametrization = 7; // (0) harmonic (1) conformal spectral (7) conformal finite element Mesh.RemeshParametrization = 7; // (0) harmonic (1) conformal spectral (7) conformal finite element
Geometry.HideCompounds = 0; // don't hide the compound entities Geometry.HideCompounds = 0; // don't hide the compound entities
Mesh.Algorithm = 6; // Frontal
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment