Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rchristie committed Oct 21, 2024
1 parent bf324e0 commit 1c2681c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/scaffoldmaker/utils/tubenetworkmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,10 +1263,7 @@ def setBoxElementId(self, e1, e2, e3, elementIdentifier):
:param e3: Element index across core box minor / d3 direction.
:param elementIdentifier: Element identifier.
"""
self._elementsCountCoreBoxMajor
self._elementsCountCoreBoxMinor
if not self._boxElementIds[e2]:
elementsCountRim = self.getElementsCountRim()
self._boxElementIds[e2] = [
[None] * self._elementsCountCoreBoxMinor for _ in range(self._elementsCountCoreBoxMajor)]
self._boxElementIds[e2][e3][e1] = elementIdentifier
Expand Down Expand Up @@ -1319,6 +1316,10 @@ def _addRimElementsToMeshGroup(self, e1Start, e1Limit, e3Start, e3Limit, meshGro
meshGroup.addElement(element)

def addCoreElementsToMeshGroup(self, meshGroup):
"""
Ensure all core elements in core box or rim arrays are in mesh group.
:param meshGroup: Zinc MeshGroup to add elements to.
"""
if not self._isCore:
return
self._addBoxElementsToMeshGroup(0, self._elementsCountCoreBoxMajor,
Expand Down Expand Up @@ -1388,6 +1389,7 @@ def generateMesh(self, generateData: TubeNetworkMeshGenerateData, n2Only=None):
"""
:param n2Only: If set, create nodes only for that single n2 index along. Must be >= 0!
"""
# keeping this code to enable display of raw segment trim surfaces for future diagnostics
# if (not n2Only) and generateData.isShowTrimSurfaces():
# dimension = generateData.getMeshDimension()
# nodeIdentifier, elementIdentifier = generateData.getNodeElementIdentifiers()
Expand Down

0 comments on commit 1c2681c

Please sign in to comment.