Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Using minH parameter in GenerateMesh method in Python

More
5 years 4 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 4 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 4 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.154 seconds