- Thank you received: 0
call with python, sometimes there is no meshing
3 years 11 months ago #3440
by mariopa
call with python, sometimes there is no meshing was created 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
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
3 years 10 months ago #3451
by mariopa
Replied by mariopa on topic call with python, sometimes there is no meshing
No solution for my problem?
I can not solve this problem myself, hopefully anyone here who knows what to do?
thx much,
regards,mario
I can not solve this problem myself, hopefully anyone here who knows what to do?
thx much,
regards,mario
3 years 10 months ago #3452
by mariopa
Replied by mariopa on topic call with python, sometimes there is no meshing
a i think i got it!
the problem was the filename "ß" "ö" "ä" "ü".... ngsolve does not like this!
the problem was the filename "ß" "ö" "ä" "ü".... ngsolve does not like this!
3 years 9 months ago #3518
by mariopa
Replied by mariopa on topic call with python, sometimes there is no meshing
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
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
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
3 years 9 months ago #3519
by christopher
Replied by christopher on topic call with python, sometimes there is no meshing
Hi Mario,
can you give an example of a failing step file?
Best
Christopher
can you give an example of a failing step file?
Best
Christopher
3 years 9 months ago - 3 years 9 months ago #3520
by mariopa
Replied by mariopa on topic call with python, sometimes there is no meshing
Hello,
of course, see Attachments.
regards, mario
of course, see Attachments.
regards, mario
Attachments:
Last edit: 3 years 9 months ago by mariopa.
Time to create page: 0.105 seconds