2019-07-26 02:25:58 +05:00
|
|
|
from .libngpy._meshing import *
|
2024-05-13 16:43:53 +05:00
|
|
|
from pyngcore import MPI_Comm
|
2019-07-29 10:11:57 +05:00
|
|
|
|
|
|
|
class _MeshsizeObject:
|
2019-08-02 19:22:53 +05:00
|
|
|
@property
|
|
|
|
def very_coarse(self):
|
|
|
|
return MeshingParameters(curvaturesafety=1,
|
|
|
|
segmentsperedge=0.3,
|
|
|
|
grading=0.7,
|
2019-08-27 13:10:17 +05:00
|
|
|
chartdistfac=0.8,
|
|
|
|
linelengthfac=0.2,
|
|
|
|
closeedgefac=0.5,
|
|
|
|
minedgelen=0.002,
|
|
|
|
surfmeshcurvfac=1.,
|
|
|
|
optsteps3d=5)
|
2019-08-02 19:22:53 +05:00
|
|
|
@property
|
|
|
|
def coarse(self):
|
|
|
|
return MeshingParameters(curvaturesafety=1.5,
|
|
|
|
segmentsperedge=0.5,
|
|
|
|
grading=0.5,
|
2019-08-27 13:10:17 +05:00
|
|
|
chartdistfac=1,
|
|
|
|
linelengthfac=0.35,
|
|
|
|
closeedgefac=1,
|
|
|
|
minedgelen=0.02,
|
|
|
|
surfmeshcurvfac=1.5,
|
|
|
|
optsteps3d=5)
|
2019-08-02 19:22:53 +05:00
|
|
|
@property
|
|
|
|
def moderate(self):
|
|
|
|
return MeshingParameters(curvaturesafety=2,
|
|
|
|
segmentsperedge=1,
|
|
|
|
grading=0.3,
|
2019-08-27 13:10:17 +05:00
|
|
|
chartdistfac=1.5,
|
|
|
|
linelengthfac=0.5,
|
|
|
|
closeedgefac=2,
|
|
|
|
minedgelen=0.2,
|
|
|
|
surfmeshcurvfac=2.,
|
|
|
|
optsteps3d=5)
|
2019-08-02 19:22:53 +05:00
|
|
|
@property
|
|
|
|
def fine(self):
|
|
|
|
return MeshingParameters(curvaturesafety=3,
|
|
|
|
segmentsperedge=2,
|
|
|
|
grading=0.2,
|
2019-08-27 13:10:17 +05:00
|
|
|
chartdistfac=2,
|
|
|
|
linelengthfac=1.5,
|
|
|
|
closeedgefac=3.5,
|
|
|
|
minedgelen=1.,
|
|
|
|
surfmeshcurvfac=3.,
|
|
|
|
optsteps3d=5)
|
2019-07-29 10:11:57 +05:00
|
|
|
|
2019-08-02 19:22:53 +05:00
|
|
|
@property
|
|
|
|
def very_fine(self):
|
|
|
|
return MeshingParameters(curvaturesafety=5,
|
|
|
|
segmentsperedge=3,
|
|
|
|
grading=0.1,
|
2019-08-27 13:10:17 +05:00
|
|
|
chartdistfac=5,
|
|
|
|
linelengthfac=3,
|
|
|
|
closeedgefac=5,
|
|
|
|
minedgelen=2.,
|
|
|
|
surfmeshcurvfac=5.,
|
|
|
|
optsteps3d=5)
|
2019-07-29 10:11:57 +05:00
|
|
|
|
2019-08-02 19:22:53 +05:00
|
|
|
meshsize = _MeshsizeObject()
|
2020-08-17 18:55:15 +05:00
|
|
|
|
|
|
|
|
|
|
|
clearsol = ClearSolutionClass()
|