59 const word& fieldName,
65 getInitialTypeResiduals<scalar>(
mesh, fieldName, solvei, r0, r);
66 getInitialTypeResiduals<vector>(
mesh, fieldName, solvei, r0, r);
67 getInitialTypeResiduals<sphericalTensor>(
mesh, fieldName, solvei, r0, r);
68 getInitialTypeResiduals<symmTensor>(
mesh, fieldName, solvei, r0, r);
69 getInitialTypeResiduals<tensor>(
mesh, fieldName, solvei, r0, r);
convergenceControl(const solutionControl &control)
Construct from a solution control.
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.
static DynamicList< word > getFieldNames(const fvMesh &mesh)
Get the list of names of the fields.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static void getInitialResiduals(const fvMesh &mesh, const word &fieldName, const label solvei, scalar &r0, scalar &r)
Get the initial residuals for the first and the i-th solves in this.
static List< word > fieldNames
bool writeTime() const
Return true if this is a write time.
virtual bool stopAt(const stopAtControl) const
Adjust the current stopAtControl. Note that this value.
virtual ~convergenceControl()
Destructor.
A class for handling words, derived from string.
const solutionControl & control_
Reference to the solution control.
set endTime to stop immediately w/o writing
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 convergence has been reached.
virtual void setEndTime(const dimensionedScalar &)
Reset end time.
label timeIndex() const
Return current time index.
Mesh data needed to do the Finite Volume discretisation.
bool endIfConverged(Time &time)
End the run if convergence has been reached.
const word & algorithmName() const
Return the name of the algorithm.
virtual label startTimeIndex() const
Return start time index.