netgen/py_tutorials/mesh.py
2017-05-31 23:44:50 +02:00

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)