Mod: filletScale parameter

This commit is contained in:
L-Nafaryus 2021-10-18 17:10:30 +05:00
parent c57ac1154a
commit 77647b3370
No known key found for this signature in database
GPG Key ID: EF672A5303B2FA96
8 changed files with 16 additions and 6 deletions

View File

@ -48,6 +48,7 @@ class StructureGeometry(object):
self.r0 = r0 self.r0 = r0
self.filletsEnabled = filletsEnabled self.filletsEnabled = filletsEnabled
#self.fillets = fillets #self.fillets = fillets
self.filletScale = 0.8
# General attributes # General attributes
self.shape = None self.shape = None

View File

@ -34,7 +34,7 @@ class BodyCentered(StructureGeometry):
rTol = 3 rTol = 3
minRound = fix(10 ** rTol * analytical) * 10 ** -rTol minRound = fix(10 ** rTol * analytical) * 10 ** -rTol
return minRound return minRound * self.filletScale
def build(self): def build(self):
### ###

View File

@ -33,7 +33,7 @@ class FaceCentered(StructureGeometry):
rTol = 3 rTol = 3
minRound = fix(10 ** rTol * analytical) * 10 ** -rTol minRound = fix(10 ** rTol * analytical) * 10 ** -rTol
return minRound return minRound * self.filletScale
def build(self): def build(self):
### ###

View File

@ -33,7 +33,7 @@ class Simple(StructureGeometry):
rTol = 3 rTol = 3
minRound = fix(10 ** rTol * analytical) * 10 ** -rTol minRound = fix(10 ** rTol * analytical) * 10 ** -rTol
return minRound return minRound * self.filletScale
def build(self): def build(self):
### ###

View File

@ -1005,7 +1005,7 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3 (ipykernel)", "display_name": "Python 3",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },

View File

@ -38,7 +38,7 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3 (ipykernel)", "display_name": "Python 3",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys; path = "/home/nafaryus/projects/anisotropy"; sys.path.extend([path, path + "/env/lib/python3.10/site-packages"]) import sys; path = "/home/nafaryus/projects/anisotropy"; sys.path.extend([path, path + "/env/lib/python3.10/site-packages"])
from anisotropy.samples import Simple, FaceCentered from anisotropy.samples import Simple, FaceCentered, BodyCentered
s = Simple([1, 0, 0], 0.28, filletsEnabled = True) s = Simple([1, 0, 0], 0.28, filletsEnabled = True)

View File

@ -20,3 +20,12 @@ algo = mesh.Tetrahedron(algo = ALGO)
### ###
# fc 111 0.12 N3D N2D(0.1, 0.0001, Mod) # fc 111 0.12 N3D N2D(0.1, 0.0001, Mod)
# 3min 321k # 3min 321k
###
# fc 100
# theta max min fineness gr.rate perEdge perRadius choralErr
# 0.01 0.1 0.001 custom 0.3 3 5 0.05
# 0.12 0.1 0.001 moderate 0.3 1 2 0.05
#
# fc 111
# 0.12 0.1 0.001 moderate 0.3 1 2 0.05