- Thank you received: 0
How to turn off screen printing when executing "GenerateMesh"?
5 years 2 months ago #1891
by MA
How to turn off screen printing when executing "GenerateMesh"? was created by MA
Hello,
I'm using "netgen" to mesh a 3D surface. Could you please let me know how to turn off the print to screen when running:
mesh = geo.GenerateMesh(maxh=maxh/scale)
Thanks.
MA
Example:
mesh = geo.GenerateMesh(maxh=maxh/scale)
set global mesh
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
find points done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
CalcLocalH: 2 Points 0 Elements 0 Surface Elements
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
Surface 1 / 1
load internal triangle rules
Surface meshing done
Optimize Surface
126 elements, 65 points
SplitSeparateFaces
Check subdomain 1 / 1
126 open elements
Meshing subdomain 1 of 1
126 open elements
Use internal rules
126 open elements
Delaunay meshing
number of points: 65
blockfill local h
number of points: 66
Points: 66
Elements: 284
0 open elements
Num open: 0
free: 0, fixed: 284
SwapImprove
0 swaps performed
0 open elements
Num open: 0
free: 0, fixed: 284
SwapImprove
0 swaps performed
0 degenerated elements removed
Remove intersecting
Remove outer
tables filled
outer removed
126 open elements
66 points, 126 elements
0 open elements
0 open faces
start tetmeshing
Use internal rules
0 open elements
Success !
66 points, 126 elements
Remove Illegal Elements
0 illegal tets
Volume Optimization
CombineImprove
0 elements combined
ImproveMesh
Total badness = 240.426
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
CombineImprove
0 elements combined
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
CombineImprove
0 elements combined
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
I'm using "netgen" to mesh a 3D surface. Could you please let me know how to turn off the print to screen when running:
mesh = geo.GenerateMesh(maxh=maxh/scale)
Thanks.
MA
Example:
mesh = geo.GenerateMesh(maxh=maxh/scale)
set global mesh
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
find points done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
CalcLocalH: 2 Points 0 Elements 0 Surface Elements
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
Start Findpoints
main-solids: 1
Found points 0
Analyze spec points
done
Find edges
Add line segment to smooth surface
0 edges found
Check intersecting edges
Surface 1 / 1
load internal triangle rules
Surface meshing done
Optimize Surface
126 elements, 65 points
SplitSeparateFaces
Check subdomain 1 / 1
126 open elements
Meshing subdomain 1 of 1
126 open elements
Use internal rules
126 open elements
Delaunay meshing
number of points: 65
blockfill local h
number of points: 66
Points: 66
Elements: 284
0 open elements
Num open: 0
free: 0, fixed: 284
SwapImprove
0 swaps performed
0 open elements
Num open: 0
free: 0, fixed: 284
SwapImprove
0 swaps performed
0 degenerated elements removed
Remove intersecting
Remove outer
tables filled
outer removed
126 open elements
66 points, 126 elements
0 open elements
0 open faces
start tetmeshing
Use internal rules
0 open elements
Success !
66 points, 126 elements
Remove Illegal Elements
0 illegal tets
Volume Optimization
CombineImprove
0 elements combined
ImproveMesh
Total badness = 240.426
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
CombineImprove
0 elements combined
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
CombineImprove
0 elements combined
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SplitImprove
badmax = 5.48658
0 splits performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
SwapImprove
0 swaps performed
SwapImprove2
0 swaps performed
ImproveMesh
Total badness = 235.863
.
Total badness = 235.863
5 years 2 months ago #1893
by MA
Replied by MA on topic How to turn off screen printing when executing "GenerateMesh"?
Sorry for the duplicate posting. This topic is related to:
ngsolve.org/forum/ngspy-forum/855-stop-t...console-message#1843
ngsolve.org/forum/ngspy-forum/855-stop-t...console-message#1843
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 2 months ago #1895
by christopher
Replied by christopher on topic How to turn off screen printing when executing "GenerateMesh"?
Hi,
it should be enough to set
Best
Christopher
it should be enough to set
Code:
from ngsolve import ngsglobals
ngsglobals.msg_level = 0
Best
Christopher
5 years 2 months ago #1896
by MA
Replied by MA on topic How to turn off screen printing when executing "GenerateMesh"?
Thanks Christopher.
Is it possible to set the logger level when I'm only using "netgen" and not "ngsolve"?
Thank you.
MA
Is it possible to set the logger level when I'm only using "netgen" and not "ngsolve"?
Thank you.
MA
5 years 1 month ago #1903
by MA
Replied by MA on topic How to turn off screen printing when executing "GenerateMesh"?
Is there a way to set the "printmessage_importance" level for the whole "netgen" module on Python?
Thanks,
MA
Thanks,
MA
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 1 month ago #1905
by christopher
Replied by christopher on topic How to turn off screen printing when executing "GenerateMesh"?
There is the function SetMessageImportance in netgen.meshing.
Best Christopher
Best Christopher
The following user(s) said Thank You: MA
Time to create page: 0.114 seconds