mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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())
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user