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>();
187 algorithmName_(algorithmName),
189 momentumPredictor_(true),
virtual label applyToField(const word &fieldName, const bool useRegEx=true) const
Return index of field in residualControl_ if present.
virtual void storePrevIterFields() const
Store previous iteration fields.
Mesh data needed to do the Finite Volume discretisation.
virtual ~solutionControl()
Destructor.
word name(const complex &)
Return a string representation of a complex.
virtual void read()
Read controls from fvSolution dictionary.
solutionControl(const solutionControl &)
Disallow default bitwise copy construct.
A class for handling words, derived from string.
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)
Database for solution data, solver performance and other reduced data.
A list of keyword definitions, which are a keyword followed by any number of values (e...
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
fvSolution solutionDict(runTime)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
bool match(const std::string &) const
True when strings match literally.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
bool read(const char *, int32_t &)
defineTypeNameAndDebug(combustionModel, 0)
dictionary subOrEmptyDict(const word &, const bool mustRead=false) const
Find and return a sub-dictionary as a copy, or.