Is there a way to define a custom sizing function other that import from an exodus file, using the python interface?
Right now, my workflow is the following:
create geometry
create background mesh
create exodus sizing function, save into exodus file
delete mesh
import exodus sizing function
remesh
It would be really nice to be able to avoid re-importing the sizing function (it takes quite a long time on complex meshes).
There currently isn’t a custom sizing function, but maybe the sizing function could be used to do what you want. What specifically would you like to do?
An example of what I am trying to do would be meshing a brick with small spherical inclusions, in such a way that a fine mesh size is given in the inclusions and the mesh gradually coarsens away from them up to a coarse size.
I have tried bias + factor sizing function but it is not flexible enough.
If I only specify the fine mesh size and the coarse size, the mesh quality os extremely poor (as in the transition from fine to coarse mesh takes place way too quickly)