60 const word& fName = iter().keyword();
61 const label fieldi = applyToField(fName,
false);
65 fd.
name = fName.c_str();
85 <<
"Residual data for " << iter().keyword()
86 <<
" must be specified as a dictionary" 111 <<
"Residual data for " << iter().keyword()
112 <<
" must be specified as a dictionary" 119 residualControl_.transfer(data);
123 forAll(residualControl_, i)
125 const fieldData& fd = residualControl_[i];
126 Info<<
"residualControl[" << i <<
"]:" <<
nl 127 <<
" name : " << fd.
name <<
nl 144 const word& fieldName,
148 forAll(residualControl_, i)
150 if (useRegEx && residualControl_[i].
name.
match(fieldName))
154 else if (residualControl_[i].
name == fieldName)
167 storePrevIter<scalar>();
168 storePrevIter<vector>();
169 storePrevIter<sphericalTensor>();
170 storePrevIter<symmTensor>();
171 storePrevIter<tensor>();
178 const word& fieldName,
186 if (mesh_.foundObject<fieldType>(fieldName))
197 const word& fieldName,
204 maxTypeResidual<scalar>(fieldName, data, firstRes, lastRes);
205 maxTypeResidual<vector>(fieldName, data, firstRes, lastRes);
206 maxTypeResidual<sphericalTensor>(fieldName, data, firstRes, lastRes);
207 maxTypeResidual<symmTensor>(fieldName, data, firstRes, lastRes);
208 maxTypeResidual<tensor>(fieldName, data, firstRes, lastRes);
226 algorithmName_(algorithmName),
228 momentumPredictor_(true),
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual label applyToField(const word &fieldName, const bool useRegEx=true) const
Return index of field in residualControl_ if present.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
T & first()
Return the first element of the list.
bool match(const std::string &) const
True when strings match literally.
void maxTypeResidual(const word &fieldName, ITstream &data, scalar &firstRes, scalar &lastRes) const
bool read(const char *, int32_t &)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from string.
scalar maxResidual(const word &fieldName, ITstream &data, scalar &lastRes) const
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual void read()
Read controls from fvSolution dictionary.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual void storePrevIterFields() const
Store previous iteration fields.
virtual ~solutionControl()
Destructor.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Mesh data needed to do the Finite Volume discretisation.
fvSolution solutionDict(runTime)
T & last()
Return the last element of the list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dictionary subOrEmptyDict(const word &, const bool mustRead=false) const
Find and return a sub-dictionary as a copy, or.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.