82 const fvMesh&
mesh = Cof.mesh();
84 tmp<volScalarField> tCo
91 mesh.time().timeName(),
107 label own = owner[facei];
108 label nei = neighbour[facei];
110 Co[own] =
max(Co[own], Cof[facei]);
111 Co[nei] =
max(Co[nei], Cof[facei]);
116 Co.boundaryField()[
patchi] = Cof.boundaryField()[
patchi];
124 void Foam::calc(
const argList&
args,
const Time& runTime,
const fvMesh& mesh)
126 bool writeResults = !args.optionFound(
"noWrite");
136 if (phiHeader.headerOk())
138 autoPtr<surfaceScalarField> CoPtr;
144 if (
phi.dimensions() == dimensionSet(1, 0, -1, 0, 0))
171 mesh.surfaceInterpolation::deltaCoeffs()
178 else if (
phi.dimensions() == dimensionSet(0, 3, -1, 0, 0))
193 mesh.surfaceInterpolation::deltaCoeffs()
203 <<
"Incorrect dimensions of phi: " <<
phi.dimensions()
207 Info<<
"Co max : " <<
max(CoPtr()).value() <<
endl;
212 Co(CoPtr())().write();