Netgen - OpenCascade Geometry

More
9 months 5 days 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

Please Log in or Create an account to join the conversation.

More
9 months 1 day 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

Please Log in or Create an account to join the conversation.

More
9 months 1 day 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

Please Log in or Create an account to join the conversation.

Time to create page: 0.132 seconds