Go to the documentation of this file.
36 const word& fieldName,
37 const label componenti,
44 if (canSet &&
mesh.foundObject<volFieldType>(fieldName))
47 const Type& allComponents = sp.first().initialResidual();
54 <<
"Requested component [" << componenti
55 <<
"] for field " << fieldName
56 <<
" is out of range 0.."
61 residual =
component(allComponents, componenti);
65 residual =
cmptMax(allComponents);
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from Foam::string.
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
void setResidual(const fvMesh &mesh, const dictionary &dict, const word &fieldName, const label componenti, bool &canSet, scalar &residual) const
Generic GeometricField class.