mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
define recurrenceBase as objectRegistry
This commit is contained in:
@ -37,6 +37,18 @@ recBase::recBase
|
||||
const fvMesh& mesh
|
||||
)
|
||||
:
|
||||
regIOobject
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"recurrenceBase",
|
||||
mesh.time().timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
true
|
||||
)
|
||||
),
|
||||
mesh_(mesh),
|
||||
recProperties_
|
||||
(
|
||||
@ -83,6 +95,7 @@ recBase::recBase
|
||||
),
|
||||
couplingSubStep_(recProperties_.lookupOrDefault<label>("couplingSubStep",0))
|
||||
{
|
||||
|
||||
recModel_ -> readFieldSeries();
|
||||
if (!recStatAnalysis_->suppressMatrixAndPath())
|
||||
{
|
||||
@ -103,6 +116,18 @@ recBase::recBase
|
||||
const fvMesh& mesh,const word recDictName_
|
||||
)
|
||||
:
|
||||
regIOobject
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"recurrenceBase",
|
||||
mesh.time().timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
true
|
||||
)
|
||||
),
|
||||
mesh_(mesh),
|
||||
recProperties_
|
||||
(
|
||||
@ -159,6 +184,8 @@ recBase::recBase
|
||||
recModel_ -> writeRecPath();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * //
|
||||
recBase::~recBase()
|
||||
{}
|
||||
|
||||
@ -46,6 +46,8 @@ class recStatAnalysis;
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class recBase
|
||||
:
|
||||
public regIOobject
|
||||
{
|
||||
|
||||
protected:
|
||||
@ -65,6 +67,7 @@ protected:
|
||||
// in case of substepping: couple passive quantity at this substep
|
||||
label couplingSubStep_;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
@ -99,6 +102,12 @@ public:
|
||||
|
||||
label couplingSubStep() const;
|
||||
|
||||
// Dummy function for regIOobject
|
||||
bool writeData(Ostream&) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user