42 const word& fieldName,
49 getInitialTypeResiduals<scalar>(
mesh, fieldName, solvei, data, r0, r);
50 getInitialTypeResiduals<vector>(
mesh, fieldName, solvei, data, r0, r);
51 getInitialTypeResiduals<sphericalTensor>
60 getInitialTypeResiduals<symmTensor>(
mesh, fieldName, solvei, data, r0, r);
61 getInitialTypeResiduals<tensor>(
mesh, fieldName, solvei, data, r0, r);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool writeAndEnd()
Write the objects now (not at end of iteration) and end the run.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool writeTime() const
Return true if this is a write time.
static void getInitialResiduals(const fvMesh &mesh, const word &fieldName, const label solvei, ITstream &data, scalar &r0, scalar &r)
Get the initial residuals for the first and the i-th solves in this.
virtual ~convergenceControl()
Destructor.
A class for handling words, derived from string.
const solutionControl & control_
Reference to the solution control.
const Time & time() const
Return the time.
virtual bool criteriaSatisfied() const =0
Return true if all convergence checks are satisfied.
defineTypeNameAndDebug(combustionModel, 0)
bool converged()
Flag to indicate whether convergance has been reached.
virtual void setEndTime(const dimensionedScalar &)
Reset end time.
set endTime to stop immediately w/o writing
label timeIndex() const
Return current time index.
Mesh data needed to do the Finite Volume discretisation.
bool endIfConverged(Time &time)
End the run if convergance has been reached.
const word & algorithmName() const
Return the name of the algorithm.
virtual label startTimeIndex() const
Return start time index.
virtual bool stopAt(const stopAtControls) const
Adjust the current stopAtControl. Note that this value.