Spheroid Meshing Issue

Hello,

I have produced a mesh for a spheroid with the attached .geo file, both using the GUI and from the command line using -batchmode. However, upon saving this as a .vol file (also attached) the geometry information is not contained at the bottom of the .vol file,

csgsurfaces 2
undef 0

undef 0

this, in turn, leads to a problem after loading the mesh with the following commands

ngmesh = ngmeshing.Mesh(dim=3)
ngmesh.Load("Spheroid.vol")
mesh = Mesh("Spheroid.vol")

and then attempting to use the command

mesh.Curve(5)

Is there something I’m doing wrong here?

Attachment: Spheroid.geo

Attachment: Spheroid.vol

Hi Ben,

No, you are not doing something wrong. The Ellipsoid class in Netgen doesn’t implement the functions Get/SetPrimitiveData(), which are needed to save the geometry in a mesh file.
I will let you know when this is fixed.

Best,
Matthias

Hi Matthias,

Thank you very much, that’s excellent.

Kind regards,

Ben

The fix is online:

Best,
Matthias

Hi Matthias,

Thank you for doing that, I am struggling to use the nightly release, has it been included in this? Do you know when the next stable release with this included will be?

Thanks again for your help,

Ben

Hi Ben,

Yes, It’s included in the nightly, which I advise to use in your case (we are running the same test suite for nightly builds and stable releases).
I don’t know when the next version is going to be released.

Best,
Matthias

Hi Matthias,

Ok, thank you for you help.

Kind regards,

Ben

Hi Matthias,

I’m still getting an issue while using a version later than

NGSolve-6.2.1910.dmg 2019-12-19 03:44 53M

When running the later versions I get the following error when trying to importing NGSolve.

Traceback (most recent call last):
  File "main.py", line 90, in <module>
    from Settings import DefaultSettings
  File "Settings/Settings.py", line 4, in <module>
    from ngsolve import *
ModuleNotFoundError: No module named ‘ngsolve'

I am running Python 3.7.1 on Mac OS 10.13.6.

Kind regards,

Ben

Oh, forgot to mention that we switched to Python3.8 for MacOS installers. It’s possible to have multiple python versions installed, you just need to check and possibly adapt your environment variables.

which python3 /Library/Frameworks/Python.framework/Versions/3.8/bin/python3