Skip to content

Commit b840333

Browse files
committed
Fixes after review 2
1 parent 97412e6 commit b840333

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

geos-mesh/src/geos/mesh/doctor/actions/generateFractures.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,7 @@ def __generateFractureMesh( oldMesh: vtkUnstructuredGrid, fractureInfo: Fracture
479479
discardedFaceNodes.add( ns )
480480

481481
if discardedFaceNodes:
482-
# tmp = list()
483-
# for dfns in discardedFaceNodes:
484-
# tmp.append(", ".join(map(str, dfns)))
485482
msg: str = "(" + '), ('.join( map( lambda dfns: ", ".join( map( str, dfns ) ), discardedFaceNodes ) ) + ")"
486-
# setupLogger.info(f"The {len(tmp)} faces made of nodes ({'), ('.join(tmp)}) were/was discarded"
487-
# + "from the fracture mesh because none of their/its nodes were duplicated.")
488-
# print(f"The {len(tmp)} faces made of nodes ({'), ('.join(tmp)}) were/was discarded"
489-
# + "from the fracture mesh because none of their/its nodes were duplicated.")
490483
setupLogger.info( f"The faces made of nodes [{msg}] were/was discarded"
491484
" from the fracture mesh because none of their/its nodes were duplicated." )
492485

geos-mesh/src/geos/mesh/doctor/actions/nonConformal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ def __init__( self, boundaryMesh: BoundaryMesh, faceTolerance: float ):
247247
self.__faceTolerance = faceTolerance
248248

249249
def __extrude( self, polygonPolyData: vtkPolyData, normal: numpy.ndarray ) -> vtkPolyData:
250-
"""Extrude the polygon data to create a volume that will be used for intersection.
250+
"""Extrude the polygon data to create a surface that will be used for intersection.
251251
252252
Args:
253253
polygonPolyData (vtkPolyData): The data to extrude
254254
normal (numpy.ndarray): The (uniform) direction of the extrusion.
255255
256256
Returns:
257-
vtkPolyData: The extruded volume.
257+
vtkPolyData: The extruded surface.
258258
"""
259259
extruder = vtkLinearExtrusionFilter()
260260
extruder.SetExtrusionTypeToVectorExtrusion()

geos-mesh/src/geos/mesh/doctor/actions/reorientMesh.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
def __computeVolume( meshPoints: vtkPoints, faceStream: FaceStream ) -> float:
1515
"""Computes the volume of a polyhedron element (defined by its faceStream).
1616
17-
To note that the faces of the polyhedron are triangulated and the volumes of the tetrahedra
18-
from the barycenter to the triangular bases are summed.
19-
The normal of each face plays critical role,
20-
since the volume of each tetrahedron can be positive or negative.
17+
.. Note::
18+
The faces of the polyhedron are triangulated and the volumes of the tetrahedra
19+
from the barycenter to the triangular bases are summed.
20+
The normal of each face plays critical role,
21+
since the volume of each tetrahedron can be positive or negative.
2122
2223
Args:
2324
meshPoints (vtkPoints): The mesh points, needed to compute the volume.

geos-mesh/src/geos/mesh/doctor/actions/supportedElements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __isPolyhedronSupported( self, faceStream ) -> str:
108108
return ""
109109

110110
def __call__( self, ic: int ) -> int:
111-
"""Checks if a vtk polyhedron cell can be converted into a supported GEOSX element.
111+
"""Checks if a vtk polyhedron cell can be converted into a supported GEOS element.
112112
113113
Args:
114114
ic (int): The index element.

geos-mesh/tests/test_generateFractures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ def addQuad( mesh: vtkUnstructuredGrid, face: FaceNodesCoords ):
298298

299299
@pytest.mark.skip( "Test to be fixed" )
300300
def test_copyFieldsWhenSplittingMesh():
301-
"""This test is designed to check the __copyFields method from generate_fractures,
302-
that will be called when using __splitMeshOnFractures method from generate_fractures.
301+
"""This test is designed to check the __copyFields method from generateFractures,
302+
that will be called when using __splitMeshOnFractures method from generateFractures.
303303
"""
304304
# Generating the rectilinear grid and its quads on all borders
305305
x: numpy.array = numpy.array( [ 0, 1, 2 ] )

0 commit comments

Comments
 (0)