reading several recProperties

This commit is contained in:
asanaz
2020-08-13 15:44:29 +02:00
parent 1fb208082b
commit 7dcb63f790
2 changed files with 65 additions and 0 deletions

View File

@ -92,6 +92,66 @@ recBase::recBase
recModel_ -> writeRecMatrix();
recModel_ -> writeRecPath();
}
recBase::recBase
(
const fvMesh& mesh,const word recDictName_
)
:
mesh_(mesh),
recProperties_
(
IOobject
(
recDictName_,
mesh_.time().constant(),
mesh_,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
),
recModel_
(
recModel::New
(
recProperties_,
*this
)
),
recNorm_
(
recNorm::New
(
recProperties_,
*this
)
),
recPath_
(
recPath::New
(
recProperties_,
*this
)
),
recStatAnalysis_
(
recStatAnalysis::New
(
recProperties_,
*this
)
),
couplingSubStep_(recProperties_.lookupOrDefault<label>("couplingSubStep",0))
{
recModel_ -> readFieldSeries();
recNorm_ -> computeRecMatrix();
recPath_ -> getRecPath();
recModel_ -> init();
recModel_ -> writeRecMatrix();
recModel_ -> writeRecPath();
}
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
recBase::~recBase()

View File

@ -74,6 +74,11 @@ public:
(
const fvMesh& mesh
);
//- Construct from mesh and a list of recProperties
recBase
(
const fvMesh& mesh, const word recDictName_
);
//- Destructor
virtual ~recBase();