45 if (foundObject<fieldType>(fieldName))
49 typename pTraits<Type>::labelType validComponents
54 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
56 if (
component(validComponents, cmpt) != -1)
59 const word fieldBase(fieldName + cmptName);
80 if (foundObject<volFieldType>(fieldName))
84 if (solverDict.
found(fieldName))
86 typename pTraits<Type>::labelType validComponents
88 mesh_.validComponents<Type>()
91 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
93 if (
component(validComponents, cmpt) != -1)
100 createResidualField(resultName);
112 typedef typename pTraits<Type>::labelType labelType;
114 if (foundObject<volFieldType>(fieldName))
118 if (solverDict.
found(fieldName))
122 solverDict.
lookup(fieldName)
132 const labelType validComponents(mesh_.validComponents<Type>());
136 for (
direction cmpt=0; cmpt<pTraits<Type>::nComponents; ++cmpt)
138 if (
component(validComponents, cmpt) != -1)
140 const scalar ri =
component(initialResidual, cmpt);
141 const scalar rf =
component(finalResidual, cmpt);
150 const word resultName(fieldName + cmptName);
151 setResult(resultName +
"_initial", ri);
152 setResult(resultName +
"_final", rf);
153 setResult(resultName +
"_iters",
n);
Various functions to operate on Lists.
Generic GeometricField class.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
The TAB Method for Numerical Calculation of Spray Droplet Breakup.
T & first()
Return the first element of the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const fvMesh & mesh_
Reference to the fvMesh.
void updateSolverInfo(const word &fieldName)
Calculate the solver information.
void initialiseResidualField(const word &fieldName)
Initialise a residual field.
void writeFileHeader(Ostream &os)
Output file header information.
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
A traits class, which is primarily used for primitives.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)