diff --git a/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C b/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C index a2ab4a2021ab1ba23d11973a09abaefb16d65d38..0ec23a018d0e0b2a66c4b3c30e3cf51ac6278d2e 100644 --- a/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C +++ b/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -40,6 +40,48 @@ Foam::dynamicFvMesh::dynamicFvMesh(const IOobject& io) {} +Foam::dynamicFvMesh::dynamicFvMesh +( + const IOobject& io, + const Xfer<pointField>& points, + const Xfer<faceList>& faces, + const Xfer<labelList>& allOwner, + const Xfer<labelList>& allNeighbour, + const bool syncPar +) +: + fvMesh + ( + io, + points, + faces, + allOwner, + allNeighbour, + syncPar + ) +{} + + +Foam::dynamicFvMesh::dynamicFvMesh +( + const IOobject& io, + const Xfer<pointField>& points, + const Xfer<faceList>& faces, + const Xfer<cellList>& cells, + const bool syncPar +) +: + fvMesh + ( + io, + points, + faces, + cells, + syncPar + ) +{} + + // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // Foam::dynamicFvMesh::~dynamicFvMesh() diff --git a/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H b/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H index 2f6ed37db6ec966fb627b7094780e3c11716f253..0bb144daf55425508158aa17c81099d0642e7c9a 100644 --- a/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H +++ b/src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,6 +85,29 @@ public: //- Construct from objectRegistry, and read/write options explicit dynamicFvMesh(const IOobject& io); + //- Construct from components without boundary. + // Boundary is added using addFvPatches() member function + dynamicFvMesh + ( + const IOobject& io, + const Xfer<pointField>& points, + const Xfer<faceList>& faces, + const Xfer<labelList>& allOwner, + const Xfer<labelList>& allNeighbour, + const bool syncPar = true + ); + + //- Construct without boundary from cells rather than owner/neighbour. + // Boundary is added using addPatches() member function + dynamicFvMesh + ( + const IOobject& io, + const Xfer<pointField>& points, + const Xfer<faceList>& faces, + const Xfer<cellList>& cells, + const bool syncPar = true + ); + // Selectors