Mod: max element size

This commit is contained in:
L-Nafaryus 2021-05-17 14:08:55 +05:00
parent 962837ae67
commit 1d08deebe0
3 changed files with 14 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
__pycache__ __pycache__
build/ build/
logs/
*.fls *.fls
*.aux *.aux
*.bbl *.bbl

View File

@ -59,7 +59,7 @@ class ViscousLayers(Parameters):
## ##
structures = [ structures = [
#"simple", #"simple",
#"bodyCentered", "bodyCentered",
"faceCentered" "faceCentered"
] ]
@ -70,11 +70,11 @@ class simple:
[0, 0, 1], [0, 0, 1],
[1, 1, 1] [1, 1, 1]
] ]
fillet = False fillet = True
fineness = 1 fineness = 3
parameters = Parameters( parameters = Parameters(
minSize = 0.01, minSize = 0.01,
maxSize = 0.5, maxSize = 0.1,
growthRate = 0.5, growthRate = 0.5,
nbSegPerEdge = 0.5, nbSegPerEdge = 0.5,
nbSegPerRadius = 0.5, nbSegPerRadius = 0.5,
@ -104,11 +104,11 @@ class bodyCentered:
[0, 0, 1], [0, 0, 1],
[1, 1, 1] [1, 1, 1]
] ]
fillet = False fillet = True
fineness = 1 fineness = 3
parameters = Parameters( parameters = Parameters(
minSize = 0.005, minSize = 0.005,
maxSize = 0.1, maxSize = 0.05,
growthRate = 0.5, growthRate = 0.5,
nbSegPerEdge = 0.5, nbSegPerEdge = 0.5,
nbSegPerRadius = 0.5, nbSegPerRadius = 0.5,
@ -138,8 +138,8 @@ class faceCentered:
[0, 0, 1], [0, 0, 1],
[1, 1, 1] [1, 1, 1]
] ]
fillet = False fillet = True
fineness = 1 fineness = 3
parameters = Parameters( parameters = Parameters(
minSize = 0.005, minSize = 0.005,
maxSize = 0.05, maxSize = 0.05,

View File

@ -29,7 +29,8 @@ def simpleCubic(theta = 0.01, fillet = False, direction = [1, 0, 0]):
C1, C2 = 0.8, 0.5 #0.8, 0.05 C1, C2 = 0.8, 0.5 #0.8, 0.05
theta1, theta2 = 0.01, 0.28 theta1, theta2 = 0.01, 0.28
Cf = C1 + (C2 - C1) / (theta2 - theta1) * (theta - theta1) Cf = C1 + (C2 - C1) / (theta2 - theta1) * (theta - theta1)
filletradius = 0.2 - Cf * (radius - r0) delta = 0.2
filletradius = delta - Cf * (radius - r0)
scale = 100 scale = 100
oo = geompy.MakeVertex(0, 0, 0) oo = geompy.MakeVertex(0, 0, 0)
@ -168,7 +169,8 @@ def simpleHexagonalPrism(theta = 0.01, fillet = False, direction = [1, 1, 1]):
C1, C2 = 0.8, 0.5 # 0.8, 0.05 C1, C2 = 0.8, 0.5 # 0.8, 0.05
theta1, theta2 = 0.01, 0.28 theta1, theta2 = 0.01, 0.28
Cf = C1 + (C2 - C1) / (theta2 - theta1) * (theta - theta1) Cf = C1 + (C2 - C1) / (theta2 - theta1) * (theta - theta1)
filletradius = 0.2 - Cf * (radius - r0) delta = 0.2
filletradius = delta - Cf * (radius - r0)
scale = 100 scale = 100
oo = geompy.MakeVertex(0, 0, 0) oo = geompy.MakeVertex(0, 0, 0)