57 if (applyLowWeightCorrection())
62 nbrPatch.
nf() & nbrPatch.coupledFvPatch::delta(),
69 interpolate(nbrPatch.
nf() & nbrPatch.coupledFvPatch::delta());
76 scalar di = deltas[facei];
77 scalar dni = nbrDeltas[facei];
79 w[facei] = dni/(di + dni);
99 if (applyLowWeightCorrection())
104 nbrPatch.coupledFvPatch::delta(),
110 tnbrPatchD =
interpolate(nbrPatch.coupledFvPatch::delta());
123 const vector& ddi = patchD[facei];
124 const vector& dni = nbrPatchD[facei];
126 pdv[facei] = ddi - dni;
133 const vector& ddi = patchD[facei];
134 const vector& dni = nbrPatchD[facei];
136 pdv[facei] = ddi -
transform(forwardT()[0], dni);
154 return patchInternalField(internalData);
164 return neighbFvPatch().patchInternalField(iF);
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< labelField > interfaceInternalField(const labelUList &internalData) const
Return the values of the given internal data adjacent to.
commsTypes
Types of communications.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
Cyclic patch for Arbitrary Mesh Interface (AMI)
void size(const label)
Override size to be inconsistent with allocated storage.
Macros for easy insertion into run-time selection tables.
virtual tmp< labelField > internalFieldTransfer(const Pstream::commsTypes commsType, const labelUList &internalData) const
Return neighbour field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void makeWeights(scalarField &) const
Make patch weighting factors.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual bool coupled() const
Return true if this patch is coupled. This is equivalent.
defineTypeNameAndDebug(combustionModel, 0)
virtual tmp< vectorField > delta() const
Return delta (P to N) vectors across coupled patch.
tmp< vectorField > nf() const
Return face normals.
virtual void makeWeights(scalarField &) const
Make patch weighting factors.
static bool & parRun()
Is this a parallel run?
virtual tmp< vectorField > delta() const =0
Return delta (P to N) vectors across coupled patch.
Field< vector > vectorField
Specialisation of Field<T> for vector.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
dimensionSet transform(const dimensionSet &)