Using minH parameter in GenerateMesh method in Python

More
5 years 11 months ago #1346 by jkdsgjksdjg
Hello,


I want to limit minimal elements size when generate mesh:

mesh = geometry.GenerateMesh(maxh=elemMaxHeight)
...
gridMesh = Mesh(mesh)

Unfortunately I didn't find any parameter which can help me.
In C++ source code there is MeshingParameters object, containing minh parameter,
but in python there is not the similar one, only maxh.

Is there some way to limit geometry mesh?

Many thanks, Alexander
More
5 years 11 months ago #1350 by cwinters
Hi,

which type of geometry do you have?

In general the mesh size is close to the maxh unless a finer mesh size is needed to approximate the geometry. Setting a minh would lead so a bad approximation of the geometry (at least in the cases a tested).
Could you attach an example where the mesh is to fine?

Best,
Christoph
More
5 years 11 months ago #1353 by jkdsgjksdjg
Thanks for replying!

In general, I use OCCGeomerty and STEP models which generated automatically.
Some models have bends (curves) where mesh is very small or infinite small and meshing eats all memory.

I want to optimize that process.

Best,
Alexander
Time to create page: 0.114 seconds