42 void Foam::cyclicACMIFvPatch::updateAreas()
const 44 if (cyclicACMIPatch().updated())
48 Pout<<
"cyclicACMIFvPatch::updateAreas() : updating fv areas for " 49 <<
name() <<
" and " << nonOverlapFvPatch().name()
54 const_cast<vectorField&
>(Sf()) = patch().faceAreas();
55 const_cast<scalarField&
>(magSf()) = patch().magFaceAreas();
58 const fvPatch& nonOverlapPatch = nonOverlapFvPatch();
60 nonOverlapPatch.patch().faceAreas();
62 nonOverlapPatch.patch().magFaceAreas();
65 const cyclicACMIFvPatch& nbrACMI = neighbFvPatch();
67 nbrACMI.patch().faceAreas();
69 nbrACMI.patch().magFaceAreas();
72 const fvPatch& nbrNonOverlapPatch = nbrACMI.nonOverlapFvPatch();
74 nbrNonOverlapPatch.patch().faceAreas();
75 const_cast<scalarField&
>(nbrNonOverlapPatch.magSf()) =
76 nbrNonOverlapPatch.patch().magFaceAreas();
79 cyclicACMIPatch().setUpdated(
false);
97 scalar di = deltan[facei];
98 scalar dni = nbrDeltan[facei];
109 w[facei] = dni/(di + dni);
#define forAll(list, i)
Loop across all elements in list.
virtual void makeWeights(scalarField &) const
Make patch weighting factors.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void makeWeights(scalarField &) const
Make patch weighting factors.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
prefixOSstream Pout(cout, "Pout")
Field< vector > vectorField
Specialisation of Field<T> for vector.
static scalar tolerance()
Overlap tolerance.