Can you do Mesh refinement by splitting only vertically rather than splitting all elements?
I have managed to get the mesh below by hand through manipulation of Gmsh script.I have failed to create similar mesh using Gmsh features without creating unwanted 1D elements and surfaces in the final output, hence why I had to adjust by hand.
The structure of this mesh is exactly what I am looking for with regular elements along the bottom lines up to y=0.5 (where the inflow ends) and also regular next to the LHS wall above the y =0.5, but with gradual refinements, and then all else is coarser as moving towards the RHS corner.
However the resolution near the inflow is not enough due to large elements' aspect ration and, I need to now:
-
keep the aspect ratio of the elements down the bottom along the x-axis, close to max 6:1 (width:height) atm it's 47:1! This will be best done for me with refine by splitting asI have manipulated the mesh script to get this mesh and not the geometry, however it refines the whole domain and makes the number of elements huge.
-
Make elements within the red area gradually more coarser and reducing the number of elements. The total No of elements for the whole mesh should ideally stay below 800. the current mesh in the photo has around 768 elements.
Help I need:
- Can I only vertically split the elements?
- Is there a way to get the same mesh without using auxiliary lines and avoiding creation of unwanted surfaces and 1D elements?
- Is there a way for me to coarsen the red area (top RHS) while keeping the rest intact and performing on the same mesh script?
- Any other advise and methods to get this simple 2D mesh would be appreciated (which has turned to nightmare for an amateur mesh-er like me!)
Thanks, Ali