Netgen - OpenCascade Geometry

More
3 years 2 months ago #3974 by joachim
Hi Julius,

thank you for the feature request, it was very easy to add. We can now revolve all kind of shapes OCC supports. It's available in the latest nightly.

That is the kind of feedback which is now most helpful.

Best, Joachim
More
3 years 1 month ago #3981 by NV
Replied by NV on topic Netgen - OpenCascade Geometry
It would be great if we could also generate 2D geometries with OCCGeometry.
Code:
from netgen.occ import * import ngsolve geometry = WorkPlane().Line(1).Rotate(90).Line(1).Rotate(90).Line(1).Close().Face() mesh = ngsolve.Mesh(OCCGeometry(geometry).GenerateMesh()) print(mesh.dim)
leads to a 3D mesh where problems occur if the specialcf.normal is calculated.


Best regards
Nils
More
3 years 1 month ago #3982 by joachim
Hi Nils,

yes, this is already available:
Code:
OCCGeometry(geometry, dim=2)

The occ-geometry is always 3D. With dim=2 the faces are the volumes, and edges are boundaries.

Here is also a very recent example:
docu.ngsolve.org/nightly/i-tutorials/wta/adaptivity.html

Best, Joachim
Time to create page: 0.115 seconds