Go to the documentation of this file.
32 #ifndef solutionControl_H
33 #define solutionControl_H
103 virtual void read(
const bool absTolOnly);
111 const word& fieldName,
112 const bool useRegEx =
true
128 const word& fieldName,
136 const word& fieldName,
206 virtual bool loop() = 0;
bool transonic() const
Flag to indicate to solve using transonic algorithm.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
virtual bool loop()=0
Main control loop.
Base class for solution control classes.
label corrNonOrtho_
Current non-orthogonal corrector loop index.
bool consistent() const
Flag to indicate to relax pressure using the.
const dictionary & dict() const
Return the solution dictionary.
List< fieldData > residualControl_
List of residual data per field.
label nNonOrthCorr_
Maximum number of non-orthogonal correctors.
A wordRe is a word, but can also have a regular expression for matching words.
label corr_
Current corrector loop index.
virtual void read()
Read controls from fvSolution dictionary.
virtual void storePrevIterFields() const
Store previous iteration fields.
virtual label applyToField(const word &fieldName, const bool useRegEx=true) const
Return index of field in residualControl_ if present.
label corr() const
Current corrector loop index.
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 momentumPredictor_
Flag to indicate to solve for momentum.
solutionControl(const solutionControl &)
Disallow default bitwise copy construct.
const word algorithmName_
The dictionary name, e.g. SIMPLE, PIMPLE.
bool correctNonOrthogonal()
Non-orthogonal corrector loop.
bool finalNonOrthogonalIter() const
Helper function to identify final non-orthogonal iteration.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label nNonOrthCorr() const
Maximum number of non-orthogonal correctors.
Mesh data needed to do the Finite Volume discretisation.
void maxTypeResidual(const word &fieldName, ITstream &data, scalar &firstRes, scalar &lastRes) const
bool transonic_
Flag to indicate to solve using transonic algorithm.
virtual ~solutionControl()
Destructor.
TypeName("solutionControl")
Run-time type information.
bool momentumPredictor() const
Flag to indicate to solve for momentum.
label corrNonOrtho() const
Current non-orthogonal corrector index.
scalar maxResidual(const word &fieldName, ITstream &data, scalar &lastRes) const
fvMesh & mesh_
Reference to the mesh database.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool consistent_
Flag to indicate to relax pressure using the.
virtual bool criteriaSatisfied()=0
Return true if all convergence checks are satisfied.
void operator=(const solutionControl &)
Disallow default bitwise assignment.
void storePrevIter() const
Store previous iteration field for vol<Type>Fields.
Database for solution data, solver performance and other reduced data.