CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Function determined refinement region (https://www.cfd-online.com/Forums/openfoam-meshing/156947-function-determined-refinement-region.html)

heksel8i July 16, 2015 02:49

Function determined refinement region
 
Hey!

I would like to manage to make cell split refinement for a region, which, e.g. outer surface is determined as a function. This surface could be for example a parabolic cylinder x^2 + y +z =0 or something else.

Naturally I could always create this kind of surface in .stl or similar format and then use refineMesh+topoSet functionality but I don't find this feasible when playing around and changing similar mesh slightly from case to case.

I would assume that by abusing topoSet feature and some scripting this could be possible.

Any ideas or experience?

Cheers

heksel8i July 23, 2015 02:17

In the end I decided to create parametrized scripts for stl files via openscad and then just refine by using them. Anyway if I have more time in some point I check if this could be possible via existing functions in OF.


All times are GMT -4. The time now is 19:19.