netgen/py_tutorials/mesh.py
Joachim Schoeberl 01197e7739 py - tutorials
2014-10-01 13:52:58 +00:00

18 lines
242 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)
import exportNeutral
exportNeutral.Export (m1, "shaft.mesh")