Added constructor from shapes
This commit is contained in:
parent
2a0da1db47
commit
a0d143ef21
2 changed files with 62 additions and 0 deletions
|
@ -255,6 +255,53 @@ Foam::fvMesh::fvMesh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::fvMesh::fvMesh
|
||||||
|
(
|
||||||
|
const IOobject& io,
|
||||||
|
const Xfer<pointField>& points,
|
||||||
|
const cellShapeList& shapes,
|
||||||
|
const faceListList& boundaryFaces,
|
||||||
|
const wordList& boundaryPatchNames,
|
||||||
|
const wordList& boundaryPatchTypes,
|
||||||
|
const word& defaultBoundaryPatchName,
|
||||||
|
const word& defaultBoundaryPatchType,
|
||||||
|
const wordList& boundaryPatchPhysicalTypes,
|
||||||
|
const bool syncPar
|
||||||
|
)
|
||||||
|
:
|
||||||
|
polyMesh
|
||||||
|
(
|
||||||
|
io,
|
||||||
|
points,
|
||||||
|
shapes,
|
||||||
|
boundaryFaces,
|
||||||
|
boundaryPatchNames,
|
||||||
|
boundaryPatchTypes,
|
||||||
|
defaultBoundaryPatchName,
|
||||||
|
defaultBoundaryPatchType,
|
||||||
|
boundaryPatchPhysicalTypes,
|
||||||
|
syncPar
|
||||||
|
),
|
||||||
|
surfaceInterpolation(*this),
|
||||||
|
boundary_(*this),
|
||||||
|
lduPtr_(NULL),
|
||||||
|
curTimeIndex_(time().timeIndex()),
|
||||||
|
VPtr_(NULL),
|
||||||
|
V0Ptr_(NULL),
|
||||||
|
V00Ptr_(NULL),
|
||||||
|
SfPtr_(NULL),
|
||||||
|
magSfPtr_(NULL),
|
||||||
|
CPtr_(NULL),
|
||||||
|
CfPtr_(NULL),
|
||||||
|
phiPtr_(NULL)
|
||||||
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Info<< "Constructing fvMesh from components" << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::fvMesh::~fvMesh()
|
Foam::fvMesh::~fvMesh()
|
||||||
|
|
|
@ -201,6 +201,21 @@ public:
|
||||||
const bool syncPar = true
|
const bool syncPar = true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct from cell shapes
|
||||||
|
fvMesh
|
||||||
|
(
|
||||||
|
const IOobject& io,
|
||||||
|
const Xfer<pointField>& points,
|
||||||
|
const cellShapeList& shapes,
|
||||||
|
const faceListList& boundaryFaces,
|
||||||
|
const wordList& boundaryPatchNames,
|
||||||
|
const wordList& boundaryPatchTypes,
|
||||||
|
const word& defaultBoundaryPatchName,
|
||||||
|
const word& defaultBoundaryPatchType,
|
||||||
|
const wordList& boundaryPatchPhysicalTypes,
|
||||||
|
const bool syncPar = true
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
|
|
Reference in a new issue