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 setResidual(const fvMesh &mesh, const dictionary &dict, const word &fieldName, const label componenti, bool &canSet, scalar &residual) const
Set the residual (scalar) value.
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#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...
T & first()
Access first element of the list, position [0].
A traits class, which is primarily used for primitives and vector-space.
Generic GeometricField class.
A class for handling words, derived from Foam::string.
Mesh data needed to do the Finite Volume discretisation.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)