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.

Extrusion geometry

More
5 years 5 months ago #1295 by stiw@zhaw.ch
Dear ngsolve users and developers,

I would like to use the extrusion geometry feature for modelling the windings of a coil. The old .geo file style works quite well. The same geometry in the pythonic way doesn't. So my question is trivial: why not?

I would be happy for constructive ideas and or other ways to build geometrically windings.

Best regards,

Simon.
More
5 years 4 months ago #1318 by joachim
Replied by joachim on topic Extrusion geometry
Hi Simon,

Extrusion and Revolution are working from python as well as in the old geo-files.

There was one change: point indices are now 0-based.
The spline.AddPoint(x,y) returns the index of the new point. You can use that to be independent of Netgen-enumeration convention (see modified example)

There was another small but essential typo in the script (used extr instead of ext).

Best,
Joachim
The following user(s) said Thank You: stiw@zhaw.ch
Time to create page: 0.116 seconds