Added access to write frequency. Tommaso Lucchini
This commit is contained in:
parent
652f65891a
commit
064ba92e50
2 changed files with 9 additions and 0 deletions
|
@ -603,6 +603,12 @@ void Foam::Time::setDeltaT(const scalar deltaT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::Time::setWriteInterval(const scalar& deltaTheta)
|
||||||
|
{
|
||||||
|
writeInterval_ = deltaTheta;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::TimeState Foam::Time::subCycle(const label nSubCycles)
|
Foam::TimeState Foam::Time::subCycle(const label nSubCycles)
|
||||||
{
|
{
|
||||||
subCycling_ = true;
|
subCycling_ = true;
|
||||||
|
|
|
@ -437,6 +437,9 @@ public:
|
||||||
//- Reset time step
|
//- Reset time step
|
||||||
virtual void setDeltaT(const scalar);
|
virtual void setDeltaT(const scalar);
|
||||||
|
|
||||||
|
//- Set write interval
|
||||||
|
void setWriteInterval(const scalar& deltaTheta);
|
||||||
|
|
||||||
//- Set time to sub-cycle for the given number of steps
|
//- Set time to sub-cycle for the given number of steps
|
||||||
virtual TimeState subCycle(const label nSubCycles);
|
virtual TimeState subCycle(const label nSubCycles);
|
||||||
|
|
||||||
|
|
Reference in a new issue