- Thank you received: 0
Reading in .vol files and unit radius spheres for MAC
- BenWilson94
- Topic Author
- Offline
- Junior Member
Less
More
6 years 6 hours ago #1315
by BenWilson94
Reading in .vol files and unit radius spheres for MAC was created by BenWilson94
Hi,
Is it possible to read in mesh previously generated with netgen and use them with the Python script solver ngs-py?
In the .vol file I know what the ids of the different materials will be and the ids of the surfaces are, but these are tagged just with 1,2,3 etc rather than text labels so I’m also not sure how to prescribe the materials and the BCs as the example shown uses meshes generated within the Python script solver which have textual labels instead.
Also, I’d be grateful if you could update the build of netgen/ngsolve for a MAC as I think this still has the bug of only generating meshes for a sphere of unit radius c.f.
ngsolve.org/forum/ngspy-forum/666-bug-meshing-ball-in-3d#1248
Thanks
Ben
Is it possible to read in mesh previously generated with netgen and use them with the Python script solver ngs-py?
In the .vol file I know what the ids of the different materials will be and the ids of the surfaces are, but these are tagged just with 1,2,3 etc rather than text labels so I’m also not sure how to prescribe the materials and the BCs as the example shown uses meshes generated within the Python script solver which have textual labels instead.
Also, I’d be grateful if you could update the build of netgen/ngsolve for a MAC as I think this still has the bug of only generating meshes for a sphere of unit radius c.f.
ngsolve.org/forum/ngspy-forum/666-bug-meshing-ball-in-3d#1248
Thanks
Ben
5 years 11 months ago #1324
by cwinters
Replied by cwinters on topic Reading in .vol files and unit radius spheres for MAC
Hi,
there is a new installer including the fix for spheres.
When you set bcnames and materials you should see a list of them at the end of the .vol file. After loading with
you can check the boundary names and materials with
Best,
Christoph
there is a new installer including the fix for spheres.
When you set bcnames and materials you should see a list of them at the end of the .vol file. After loading with
Code:
mesh = Mesh(...)
Code:
mesh.GetMaterials()
mesh.GetBoundaries()
Best,
Christoph
Time to create page: 0.100 seconds