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.

2D equivalent of GenerateVolumeMesh

More
3 years 7 months ago #3111 by cpfeiler
Hello everybody,

In 3D, to generate a volume Mesh from a given boundary mesh one can use ngmesh.GenerateVolumeMesh() as used in the last example on ngsolve.org/docu/latest/i-tutorials/unit...h/manualmeshing.html

Is there an equivalent in 2D?
I.e., in 2D, is there a way to generate an area(domain) mesh, from given boundary nodes and boundary edges?

Any help is welcome,
Best, Carl
More
3 years 6 months ago #3116 by christopher
Hm I think not directly, but I think easily hackable.
Try to comment
Code:
geometry.PartitionBoundary (mp, mp.maxh, *mesh);
in netgen/libsrc/geom2d/genmesh2d.cpp:415.

And additionally export the GenerateMesh function that takes a mesh argument to python in python_geom2d.cpp

You would additionally need to export the domin and domout parameters for the Element1D and set them correctly (like leftdomain and rightdomain in the geo).

Hope this helps, let me know if something is not working.

Best
Christopher
Time to create page: 0.166 seconds