- Thank you received: 0
Exporting mesh using a sript
7 years 1 month ago #193
by Nils
Exporting mesh using a sript was created by Nils
Hello together,
I would like to export a mesh, generated in netgen, using a script command. Basically I would like to circumvent clicking on "File"->"Export Mesh" .
Is there any command I can add to my Python script?
Tank you and best regards,
Nils
I would like to export a mesh, generated in netgen, using a script command. Basically I would like to circumvent clicking on "File"->"Export Mesh" .
Is there any command I can add to my Python script?
Tank you and best regards,
Nils
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
7 years 1 month ago #194
by christopher
Replied by christopher on topic Exporting mesh using a sript
The netgen mesh has a method "Export" which takes a filename and a format.
Best
Christopher
Best
Christopher
The following user(s) said Thank You: Nils
7 years 1 month ago #195
by Nils
Replied by Nils on topic Exporting mesh using a sript
Thank you for your fast reply,
but unfortunately it does not solve my problem. The mesh I am using is a ngsolve mesh and therein I cannot find a method "Export" or something related. Is it possible to simply convert the ngsolve mesh to a netgen type mesh or to add the export method to ngsolve?
but unfortunately it does not solve my problem. The mesh I am using is a ngsolve mesh and therein I cannot find a method "Export" or something related. Is it possible to simply convert the ngsolve mesh to a netgen type mesh or to add the export method to ngsolve?
7 years 1 month ago #196
by schruste
Replied by schruste on topic Exporting mesh using a sript
Hi Nils,
The NGsolve mesh has a member ngmesh which gives you access to the netgen mesh.
Try mesh.ngmesh.Export...
Best,
Christoph
The NGsolve mesh has a member ngmesh which gives you access to the netgen mesh.
Try mesh.ngmesh.Export...
Best,
Christoph
The following user(s) said Thank You: Nils
Time to create page: 0.126 seconds