Commit 8629dca1 authored by Henry's avatar Henry
Browse files

P1 radiation model: only evaluate Qr on non-coupled patches

parent b5dc0921
......@@ -241,10 +241,14 @@ void Foam::radiation::P1::calculate()
);
// Calculate radiative heat flux on boundaries.
forAll(mesh_.boundaryMesh(), patchI)
forAll(mesh_.boundaryMesh(), patchi)
{
Qr_.boundaryField()[patchI] =
-gamma.boundaryField()[patchI]*G_.boundaryField()[patchI].snGrad();
if (!G_.boundaryField()[patchi].coupled())
{
Qr_.boundaryField()[patchi] =
-gamma.boundaryField()[patchi]
*G_.boundaryField()[patchi].snGrad();
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment