NGSolve / ngsolve

Netgen/NGSolve is a high performance multiphysics finite element software. It is widely used to analyze models from solid mechanics, fluid dynamics and electromagnetics. Due to its flexible Python interface new physical equations and solution algorithms can be implemented easily.

Home Page:https://ngsolve.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot load .vol file created from .stl

Alex-Vasile opened this issue · comments

Note: because of GitHub restriction, you will have to rename led.txt to led.stl and reproduce.txt to reproduce.py.

I have the following .stl file which converted to .vol properly in the past using the attached script.

When I try to run the script it fails with the following error:

    volmesh.Load('led.vol')
IndexError: basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 7)

However if I run the Netgen GUI, I am able to import the created .vol file and view it without any error.

Ubuntu 21.10
Python 3.9.7
NGSolve-6.2.2105

Hi,
I cannot reproduce this issue with the newest version. I think it is fixed in the latest master. Please reopen if not.