Commit 7812817a authored by sergio's avatar sergio

BUG: EP:1070. Adding check for coupled patches in faceReflecting

parent fc3d515b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd. \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -413,23 +413,28 @@ void Foam::faceReflecting::calculate() ...@@ -413,23 +413,28 @@ void Foam::faceReflecting::calculate()
// Fill patchr // Fill patchr
forAll(patchr, patchi) forAll(patchr, patchi)
{ {
for (label bandI = 0; bandI < nBands; bandI++) const polyPatch& pp = patches[patchi];
if (!pp.coupled() && !isA<cyclicAMIPolyPatch>(pp))
{ {
patchr[patchi][bandI] = for (label bandI = 0; bandI < nBands; bandI++)
boundaryRadiation.specReflectivity {
( patchr[patchi][bandI] =
patchi, boundaryRadiation.specReflectivity
bandI, (
new vectorField(patches[patchi].size(), sunDir) patchi,
); bandI,
new vectorField(patches[patchi].size(), sunDir)
);
patcha[patchi][bandI] = patcha[patchi][bandI] =
boundaryRadiation.absorptivity boundaryRadiation.absorptivity
( (
patchi, patchi,
bandI, bandI,
new vectorField(patches[patchi].size(), sunDir) new vectorField(patches[patchi].size(), sunDir)
); );
}
} }
} }
......
Markdown is supported
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