Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

call with python, sometimes there is no meshing

More
3 years 3 months ago #3440 by mariopa
hello guys,

most of the time my python script/ngsolve works well, all fine, but with some *.stp parts there is following problem:


i call my python script, NGSolve starts. OK
I see the meshing progress in the statusbar bottom/right from NGSolve. OK
But the loaded *.stp part in NGSolve does not get a mesh, after the progress is ready there is no mesh it is still the normal loaded *.stp part.

What is wrong? (most of the time it works well, but with some parts it does not work).

The strange thing is if i click in NGSolve "Generate Mesh" by hand, all works fine!

Here is my python code, I really do not know what is wrong with it?

from netgen.occ import *
from netgen.meshing import MeshingStep
geo = OCCGeometry("//L1/Test1/mail/user/ng/projects/user/abc/Teil_1.stp")
mesh = geo.GenerateMesh(meshsize.very_coarse, perfstepsstart=MeshingStep.ANALYSE, perfstepsend=MeshingStep.MESHSURFACE)
Draw(Mesh(mesh))
mesh.Export("//L1/Test1/mail/user/ng/projects/user/abc/Teil_1.stl", 'STL Format')

regards, mario
More
3 years 3 months ago #3451 by mariopa
No solution for my problem?

I can not solve this problem myself, hopefully anyone here who knows what to do?

thx much,

regards,mario
More
3 years 3 months ago #3452 by mariopa
a i think i got it!

the problem was the filename "ß" "ö" "ä" "ü".... ngsolve does not like this!
More
3 years 2 months ago #3518 by mariopa
Hey guys,

OMG i still have those problems, it is not only because of "ß" "ö" "ä" "ü"....

Complex *.stp files are meshing very fine "by hand". I start ngsolve, do the mesh settings and all is perfect!

but calling it automaticly with pyhton (see my first post) it does not work.

Anyone has an idea?

Hopefully anyone can help me, I really do not know what I have to do, to solve this problem.

thank much,

regard, mario
More
3 years 2 months ago #3519 by christopher
Hi Mario,
can you give an example of a failing step file?

Best
Christopher
More
3 years 2 months ago - 3 years 2 months ago #3520 by mariopa
Hello,

of course, see Attachments.

regards, mario
Last edit: 3 years 2 months ago by mariopa.
Time to create page: 0.151 seconds