netgen/py_tutorials/mesh.py

19 lines
269 B
Python
Raw Normal View History

2014-10-01 19:52:58 +06:00
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")
2014-12-09 17:01:39 +05:00
Save (m1, "mesh.vol", geo)