mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
20 lines
286 B
Python
20 lines
286 B
Python
from netgen.meshing import *
|
|
from netgen.csg import *
|
|
|
|
geo = CSGeometry("shaft.geo")
|
|
|
|
param = MeshingParameters()
|
|
param.maxh = 10
|
|
print (param)
|
|
|
|
m1 = GenerateMesh (geo, param)
|
|
m1.SecondOrder()
|
|
|
|
import exportNeutral
|
|
exportNeutral.Export (m1, "shaft.mesh")
|
|
|
|
|
|
|
|
Save (m1, "mesh.vol", geo)
|
|
|