Skip to content
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

Merged
merged 9 commits into from
Aug 13, 2018
Merged

Add solid sphere scaffold #17

merged 9 commits into from
Aug 13, 2018

Conversation

mlin865
Copy link
Contributor

@mlin865 mlin865 commented Aug 7, 2018

No description provided.

Copy link
Member

@rchristie rchristie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test:

  1. Cross derivatives on/off.
  2. 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,
Copy link
Member

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:
Copy link
Member

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

@@ -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
Copy link
Member

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
Copy link
Member

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):
Copy link
Member

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.

@@ -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()
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@rchristie rchristie merged commit 7a786f0 into ABI-Software:master Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants