mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: EP:1070. Adding check for coupled patches in faceReflecting
This commit is contained in:
@ -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()
|
|||||||
// Fill patchr
|
// Fill patchr
|
||||||
forAll(patchr, patchi)
|
forAll(patchr, patchi)
|
||||||
{
|
{
|
||||||
for (label bandI = 0; bandI < nBands; bandI++)
|
const polyPatch& pp = patches[patchi];
|
||||||
{
|
|
||||||
patchr[patchi][bandI] =
|
|
||||||
boundaryRadiation.specReflectivity
|
|
||||||
(
|
|
||||||
patchi,
|
|
||||||
bandI,
|
|
||||||
new vectorField(patches[patchi].size(), sunDir)
|
|
||||||
);
|
|
||||||
|
|
||||||
patcha[patchi][bandI] =
|
if (!pp.coupled() && !isA<cyclicAMIPolyPatch>(pp))
|
||||||
boundaryRadiation.absorptivity
|
{
|
||||||
(
|
for (label bandI = 0; bandI < nBands; bandI++)
|
||||||
patchi,
|
{
|
||||||
bandI,
|
patchr[patchi][bandI] =
|
||||||
new vectorField(patches[patchi].size(), sunDir)
|
boundaryRadiation.specReflectivity
|
||||||
);
|
(
|
||||||
|
patchi,
|
||||||
|
bandI,
|
||||||
|
new vectorField(patches[patchi].size(), sunDir)
|
||||||
|
);
|
||||||
|
|
||||||
|
patcha[patchi][bandI] =
|
||||||
|
boundaryRadiation.absorptivity
|
||||||
|
(
|
||||||
|
patchi,
|
||||||
|
bandI,
|
||||||
|
new vectorField(patches[patchi].size(), sunDir)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user