72 if (!isType<processorFaPatch>(this->
patch()))
75 <<
"\n patch type '" << p.type()
76 <<
"' not constraint type '" <<
typeName <<
"'"
77 <<
"\n for patch " <<
p.
name()
96 if (!isType<processorFaPatch>(
p))
99 <<
"\n patch type '" <<
p.type()
100 <<
"' not constraint type '" <<
typeName <<
"'"
101 <<
"\n for patch " <<
p.
name()
158 procPatch_.send(commsType, this->patchInternalField()());
171 procPatch_.receive<Type>(commsType, *
this);
175 transform(*
this, procPatch_.forwardT(), *
this);
184 return this->patch().deltaCoeffs()*(*
this - this->patchInternalField());
204 this->patch().patchInternalField(psiInternal)()
224 procPatch_.receive<solveScalar>(commsType, this->size())()
228 transformCoupleField(pnf, cmpt);
232 const labelUList& edgeFaces = this->patch().edgeFaces();
238 result[edgeFaces[elemI]] += coeffs[elemI]*pnf[elemI];
245 result[edgeFaces[elemI]] -= coeffs[elemI]*pnf[elemI];
266 this->patch().patchInternalField(psiInternal)()
285 procPatch_.receive<Type>(commsType, this->size())()
290 const labelUList& edgeFaces = this->patch().edgeFaces();
296 result[edgeFaces[elemI]] += coeffs[elemI]*pnf[elemI];
303 result[edgeFaces[elemI]] -= coeffs[elemI]*pnf[elemI];
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const char *const typeName
Typename for Field.
Generic templated field type.
void evaluate()
Evaluate boundary conditions.
const word & name() const noexcept
Return the object name.
commsTypes
Types of communications.
static bool & parRun() noexcept
Test if this a parallel run.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-area patch fields.
const faPatch & patch() const
Return patch.
const DimensionedField< Type, areaMesh > & internalField() const
Return dimensioned internal field reference.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
The class contains the addressing required by the lduMatrix: upper, lower and losort.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
virtual void initInterfaceMatrixUpdate(solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
Initialise neighbour matrix update.
virtual void updateInterfaceMatrix(solveScalarField &result, const bool add, const lduAddressing &lduAddr, const label patchId, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
Update result field based on interface functionality.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
virtual void initEvaluate(const Pstream::commsTypes commsType)
Initialise the evaluation of the patch field.
tmp< Field< Type > > patchNeighbourField() const
Return neighbour field given internal field.
Abstract base class for processor coupled interfaces.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
To & refCast(From &r)
Reference type cast template function.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.