gwfinn
01/19/2026, 9:41 AMturbulentTemperatureCoupledBaffleFvPatchScalarField
cpp
tmp<scalarField> myKappaDelta = Kappa()*patch().deltaCoeffs();
// Calculate common wall temperature.
// Reuse *this to store common value.
scalarField Twall
(
(myKappaDelta()*intFld() + nbrKappaDelta*nbrIntFld)
/ (myKappaDelta() + nbrKappaDelta)
);
// Assign to me
fvPatchScalarField::operator=(Twall);
// Distribute back and assign to neighbour
mapDistribute::distribute
(
Pstream::defaultComms(),
distMap.schedule(),
nbrField.size(),
distMap.constructMap(), // reverse : what to send
distMap.subMap(),
Twall
);
const_cast<turbulentTemperatureCoupledBaffleFvPatchScalarField&>
(
nbrField
).fvPatchScalarField::operator=(Twall);
fixedValueFvPatchScalarField::updateCoeffs();
solidWallMixedTemperatureCoupledFvPatchScalarField
cpp
tmp<scalarField> myKappaDelta = Kappa()*patch().deltaCoeffs();
this->refValue() = nbrIntFld;
this->refGrad() = 0.0;
this->valueFraction() = nbrKappaDelta / (nbrKappaDelta + myKappaDelta());
Info<< "updating coeffs mixed" << endl;
mixedFvPatchScalarField::updateCoeffs();