- Thank you received: 0
Extrusion geometry
- stiw@zhaw.ch
- Topic Author
- Offline
- New Member
Less
More
6 years 6 days ago #1295
by stiw@zhaw.ch
Extrusion geometry was created 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.
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.
Attachments:
5 years 11 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
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
Attachments:
The following user(s) said Thank You: stiw@zhaw.ch
Time to create page: 0.094 seconds