blockMesh reader fix, start refactoring of PV3Readers

- apply scaleFactor (eg, mm->m) in PV3 reader - this looks better when
  overlaying with other objects

- stop segfault when paraview exits without deleting readers first
This commit is contained in:
Mark Olesen
2009-10-18 17:50:41 +02:00
parent c57262c2a0
commit 1ef88a2aef
16 changed files with 687 additions and 32 deletions

View File

@ -78,6 +78,12 @@ const Foam::polyMesh& Foam::blockMesh::topology() const
}
Foam::scalar Foam::blockMesh::scaleFactor() const
{
return scaleFactor_;
}
const Foam::pointField& Foam::blockMesh::points() const
{
if (points_.empty())

View File

@ -144,6 +144,7 @@ public:
// Access
//- Reference to point field defining the block mesh
// these points have not been scaled by scaleFactor
const pointField& blockPointField() const;
const polyMesh& topology() const;
@ -153,6 +154,11 @@ public:
return edges_;
}
//- The scaling factor used to convert to meters
scalar scaleFactor() const;
//- The points for the entire mesh
// these points have been scaled by scaleFactor
const pointField& points() const;
const cellShapeList& cells() const;