-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathmeshing.py
More file actions
65 lines (60 loc) · 2.55 KB
/
Copy pathmeshing.py
File metadata and controls
65 lines (60 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from .libngpy._meshing import *
from pyngcore import MPI_Comm
class _MeshsizeObject:
@property
def very_coarse(self):
return MeshingParameters(curvaturesafety=1,
segmentsperedge=0.3,
grading=0.7,
chartdistfac=0.8,
linelengthfac=0.2,
closeedgefac=0.5,
minedgelen=0.002,
surfmeshcurvfac=1.,
optsteps3d=5)
@property
def coarse(self):
return MeshingParameters(curvaturesafety=1.5,
segmentsperedge=0.5,
grading=0.5,
chartdistfac=1,
linelengthfac=0.35,
closeedgefac=1,
minedgelen=0.02,
surfmeshcurvfac=1.5,
optsteps3d=5)
@property
def moderate(self):
return MeshingParameters(curvaturesafety=2,
segmentsperedge=1,
grading=0.3,
chartdistfac=1.5,
linelengthfac=0.5,
closeedgefac=2,
minedgelen=0.2,
surfmeshcurvfac=2.,
optsteps3d=5)
@property
def fine(self):
return MeshingParameters(curvaturesafety=3,
segmentsperedge=2,
grading=0.2,
chartdistfac=2,
linelengthfac=1.5,
closeedgefac=3.5,
minedgelen=1.,
surfmeshcurvfac=3.,
optsteps3d=5)
@property
def very_fine(self):
return MeshingParameters(curvaturesafety=5,
segmentsperedge=3,
grading=0.1,
chartdistfac=5,
linelengthfac=3,
closeedgefac=5,
minedgelen=2.,
surfmeshcurvfac=5.,
optsteps3d=5)
meshsize = _MeshsizeObject()
clearsol = ClearSolutionClass()