How to set the number of vertices on a line ? & Particular distance field.
Hello,
I am fine-tuning a 2D mesh for the "fluidic pinball". It is basically a 2D flow around 3 cylinders (front, top and bottom cylinders). My geometry has the x-axis as symmetry axis. For CFD purposes, I would like my mesh to present this symmetry too. So I came across this example and it works for me. The script I use is attached (mirror_pinball_mesh.py) and it generates only the upper-half mesh (then I use the mirror script). The upper-half mesh is illustrated below:
Here the mirror treatment is not done, but this is not the subject. As you can see, my half geometry is composed of the upper half of the front cylinder, and the full top cylinder. The bottom cylinder is the symmetrical of top cylinder with respect to the x axis. My first question concerns the region between the three cylinders. When I generate the whole mesh (without using the mirror script), everything is fine, but when generating only the half mesh, this region is not meshed as I wish:
As you can see, the region just below the top cylinder is not properly refined. And it makes sense as the mesh refinement in this region is done with Distance
and Threshold
fields, calculated from the top and half-front cylinders. In the Full version of my mesh (without mirror), this region is properly refined because the Distance
field takes in to account the bottom cylinder.
-
To circumvent this issue, I created the geometry for the upper half of the bottom cylinder (see in the zoom). I added those curves to the
CurvesList
parameter of theDistance
field. But this is not taken into account. So, how could I create a distance field, whichCurvesList
parameter corresponds to geometrical curves that are outside the meshed region (like I tried) ? -
My second question is to know if there was any way, (instead of a the use of the
Distance/Threshold
fields) to specify the number of vertices on a entity ? For instance, I would like to have exactly 100 vertices dispatched equally on my top cylinder. This way my mesh will be well controlled on the cylinders' surfaces (and the I will combine with theDistance/Threshold
fields)
Thanks for your response, I hope my questions are clear. Best regards, TOP1