Permalink
Browse files

ENH: dynamicFvMesh: added extra constructors

  • Loading branch information...
1 parent 7674b15 commit fe108c0678ceac18ffd3900306e2651e76b8b32e mattijs committed May 25, 2011
Showing with 65 additions and 0 deletions.
  1. +42 −0 src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C
  2. +23 −0 src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H
View
42 src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.C
@@ -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()
View
23 src/dynamicFvMesh/dynamicFvMesh/dynamicFvMesh.H
@@ -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

0 comments on commit fe108c0

Please sign in to comment.