Meshing with field[1] in combination with Mesh.MinimumElementsPerTwoPi not possible
Hello
In the intersection zone of those two cylinders I want a more fine mesh. This is realized by the Field operator type Cylinder
. The other parts of the mesh should be defined by using Mesh.MinimumElementsPerTwoPi.
But there are two difficulties:
- When a Background Field is not defined
Field[1] = Cylinder
has no effect butMesh.MinimumElementsPerTwoPi
has. - When the Background Field is active and I set
Mesh.MinimumElementsPerTwoPi
to a very high value it is neglected although in6.3.1 Specifying mesh element sizes
is writtenThe three aforementioned methods can be used simultaneously, in which case the smallest element size is selected at any given point.
. I wanted to useMathEval
and set F to a very high number to make sureMesh.MinimumElementsPerTwoPi
is taken into account.
SetFactory("OpenCASCADE");
Cylinder(1) = {-1, 0, 0, 2, 0, 0, 0.5, 2*Pi};
Cylinder(2) = {0, 0.2, 0, 0, 1, 0, 0.24, 2*Pi};
BooleanUnion{ Volume{1}; Delete; }{ Volume{2}; Delete; }
Mesh.Algorithm = 9;
Mesh.RecombinationAlgorithm = 0;
Mesh.Smoothing = 4;
Mesh.CharacteristicLengthFromPoints = 1;
Mesh.CharacteristicLengthExtendFromBoundary = 1;
Mesh.CharacteristicLengthFromCurvature = 1;
Mesh.MinimumCirclePoints = 20;
Mesh.MinimumElementsPerTwoPi = 128;
Mesh.RecombineAll = 1;
Mesh.ElementOrder = 1;
Lc = 0.1;
Field[1] = Cylinder;
Field[1].Radius = 0.34;
Field[1].VIn = 0.1;
Field[1].VIn = Lc / 8;
Field[1].VOut = Lc / 2 ;
Field[1].XCenter = 0;
Field[1].YCenter = 0 + 0.3;
Field[1].ZCenter = 0;
Field[1].XAxis = 0;
Field[1].YAxis = 0.3;
Field[1].ZAxis = 0;
Field[2] = MathEval;
Field[2].F = "10";
// Field[2] = Max;
// Field[2].FieldsList = {1};
Background Field = 2;
Edited by Julian Henneberg