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

Fixed an issue that the read openfoam mesh function #22

Merged
merged 4 commits into from
Jun 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix.
friedenhe committed Jun 18, 2020
commit e36c082aceb2076dfd52fc86180173eb0b19989d
15 changes: 7 additions & 8 deletions python/UnstructuredMesh.py
Original file line number Diff line number Diff line change
@@ -1025,8 +1025,13 @@ def _computeOFConn(self):
return faceSizes, faceConn, pts

def _readOFGrid(self, caseDir):
"""Read in the mesh points and connectivity from the polyMesh
directory
"""
Read in the mesh points and connectivity from the polyMesh
directory.
NOTE: To ensure a consistant starting point in DAFoam. One needs to copy
points_orig to points in pyDAFoam before initializing USMesh. This function
will no longer perform this copying!
Parameters
----------
@@ -1042,12 +1047,6 @@ def _readOFGrid(self, caseDir):
# Copy the reference points file to points to ensure
# consistant starting point
self.OFData = ofm.getFileNames(caseDir,comm=self.comm)
# NOTE: comment out the copying of points_orig to points here because it should
# be done in the pyDAFoam layer
#try:
# shutil.copyfile(self.OFData['refPointsFile'], self.OFData['pointsFile'])
#except:
# raise Error('USMesh: Unable to copy %s to %s.'%(self.OFData['refPointsFile'], self.OFData['pointsFile']))

# Read in the volume points
self.OFData['x0'] = ofm.readVolumeMeshPoints()