- Thank you received: 0
2D equivalent of GenerateVolumeMesh
4 years 2 months ago #3111
by cpfeiler
2D equivalent of GenerateVolumeMesh was created 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
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
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 2 months ago #3116
by christopher
Replied by christopher on topic 2D equivalent of GenerateVolumeMesh
Hm I think not directly, but I think easily hackable.
Try to comment
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
Try to comment
Code:
geometry.PartitionBoundary (mp, mp.maxh, *mesh);
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.117 seconds