mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
16 lines
566 B
C
16 lines
566 B
C
fvsPatchScalarFieldField& phiPatches = phi.boundaryField();
|
|
const fvPatchScalarFieldField& rhoPatches = rho.boundaryField();
|
|
const fvPatchVectorFieldField& Upatches = U.boundaryField();
|
|
const fvsPatchVectorFieldField& SfPatches = mesh.Sf().boundaryField();
|
|
|
|
forAll(phiPatches, patchI)
|
|
{
|
|
if (phi.boundaryField().types()[patchI] == "calculated")
|
|
{
|
|
calculatedFvsPatchScalarField& phiPatch =
|
|
refCast<calculatedFvsPatchScalarField>(phiPatches[patchI]);
|
|
|
|
phiPatch == ((rhoPatches[patchI]*Upatches[patchI]) & SfPatches[patchI]);
|
|
}
|
|
}
|