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.

Netgen - OpenCascade Geometry

More
2 years 7 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
2 years 7 months 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
2 years 7 months 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.138 seconds