-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add solid sphere scaffold #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test:
- Cross derivatives on/off.
- Different values of three refinements numbers of elements, to make sure tetrahedral and pyramid elements at poles have compatible refinement.
'Number of elements around' : 8, | ||
'Number of elements up' : 8, | ||
'Number of elements radial' : 1, | ||
'Diameter' : 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make Diameter a real value: 1.0
options['Number of elements up'] = 4 | ||
if options['Number of elements around'] < 4: | ||
options['Number of elements around'] = 4 | ||
if options['Diameter'] < 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compare/set real values for Diameter: 0.0 and 1.0
scaffoldmaker/scaffoldmaker.py
Outdated
@@ -20,6 +20,8 @@ | |||
from scaffoldmaker.meshtypes.meshtype_3d_sphereshellseptum1 import MeshType_3d_sphereshellseptum1 | |||
from scaffoldmaker.meshtypes.meshtype_3d_tube1 import MeshType_3d_tube1 | |||
from scaffoldmaker.meshtypes.meshtype_3d_tubeseptum1 import MeshType_3d_tubeseptum1 | |||
from scaffoldmaker.meshtypes.meshtype_3d_solidsphere1 import MeshType_3d_solidsphere1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put in alphabetical order.
|
||
fm.endChange() | ||
|
||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to:
@classmethod
def generateMesh(cls, region, options):
Makes it easy to call cls.generateBaseMesh inside.
options['Diameter'] = 1 | ||
|
||
@staticmethod | ||
def generateBaseMesh(region, options): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change signature to:
@classmethod
def generateBaseMesh(cls, region, options):
For consistency with new scaffolds.
scaffoldmaker/utils/eft_utils.py
Outdated
@@ -98,8 +98,8 @@ def remapEftNodeValueLabel(eft, localNodeIndexes, fromValueLabel, expressionTerm | |||
:param expressionTerms: List of (valueLabel, scaleFactorIndexesList ) to remap to. | |||
e.g. [ (Node.VALUE_LABEL_D_DS2, []), (Node.VALUE_LABEL_D_DS3, [5, 6]) ] | |||
''' | |||
functionCount = eft.getNumberOfFunctions() | |||
for f in range(1, functionCount + 1): | |||
functionCount = eft.getNumberOfFunctions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove whitespace changes in this and following line. This file should not be modified.
Suggestion is to start at 0 and add 100 for each radial line around axis. | ||
:param nodeScaleFactorOffset0: offset of node scale factors at axis on xi1=0 | ||
:param nodeScaleFactorOffset1: offset of node scale factors at axis on xi1=1 | ||
:param nodeScaleFactorOffsetUp: offset of node scale factors as inclination increases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offset of first scale factor for inclination at pole, increasing by 2 with each layer away from axis. Suggest starting at 100000 on axis of sphere.
add 100 for each radial line around axis. | ||
:param nodeScaleFactorOffset0: offset of node scale factors at axis on xi1=0 | ||
:param nodeScaleFactorOffset1: offset of node scale factors at axis on xi1=1 | ||
:param nodeScaleFactorOffsetUp: offset of node scale factors as inclination increases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offset of first scale factor for inclination at pole, increasing by 2 with each layer away from axis. Suggest starting at 100000 on axis of sphere.
add 100 for each radial line around axis. | ||
:param nodeScaleFactorOffset0: offset of node scale factors at axis on xi1=0 | ||
:param nodeScaleFactorOffset1: offset of node scale factors at axis on xi1=1 | ||
:param nodeScaleFactorOffsetUp: offset of node scale factors as inclination increases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offset of first scale factor for inclination at pole, increasing by 2 with each layer away from axis. Suggest starting at 100000 on axis of sphere.
add 100 for each radial line around axis. | ||
:param nodeScaleFactorOffset0: offset of node scale factors at axis on xi1=0 | ||
:param nodeScaleFactorOffset1: offset of node scale factors at axis on xi1=1 | ||
:param nodeScaleFactorOffsetUp: offset of node scale factors as inclination increases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
offset of first scale factor for inclination at pole, increasing by 2 with each layer away from axis. Suggest starting at 100000 on axis of sphere.
No description provided.