-
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
Rescale derivatives for annulus mesh #100
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.
Some small fixes for you to do.
I'll shortly make a pull request to your branch to fix some bits of annulus mesh.
'Ostium position around': 0.67, # should be on the dorsal part (> 0.5) | ||
'Ostium position down': 0.83, | ||
'Number of radial elements on annulus': 2, |
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.
Would you mind fixing these names...
Key is that all of these options are about the Ureter, which is built with an ostium + annulus. Also, my 'standard' is to always start numbers of elements with 'Number of elements' + qualifiers, and in the code elementsCount~.
Can you please rename these to:
Ureter position around
Ureter position down
Number of elements ureter radial
& in the code update variables they are assigned to appropriately.
@@ -343,7 +352,7 @@ def generateBaseMesh(cls, region, options): | |||
ostiumOptions = options['Ureter'] | |||
ostiumDefaultOptions = ostiumOptions.getScaffoldSettings() | |||
elementsCountAroundOstium = ostiumDefaultOptions['Number of elements around ostium'] | |||
elementsCountAnnulusRadially = options['Number of elements radially on annulus'] | |||
elementsCountAnnulusRadial = options['Number of radial elements on annulus'] |
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.
Rename to elementsCountUreterRadial, as earlier.
ostiumPositionAround = options['Ostium position around'] | ||
ostiumPositionDown = options['Ostium position down'] |
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.
Renam ureterPosition~, and other variables such as ostium1Position --> ureter1Position.
trackSurfaceOstium2, ostium2Position, ostiumElementPositionDown, | ||
ostiumElementPositionAround, xBladder, d1Bladder, d2Bladder, | ||
nextNodeIdentifier, nextElementIdentifier, elementsCountAnnulusRadially, | ||
def generateOstiumsAndAnnulusMeshOnBladder(region, nodes, mesh, ostiumDefaultOptions,elementsCountAround, |
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.
Rename to generateUreters.
Annulus fix
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.
Looks good, thanks.
No description provided.