Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c07ab245
Commit
c07ab245
authored
Jul 22, 2019
by
sergio
Committed by
Andrew Heather
Jul 22, 2019
Browse files
BUG: EP:1070. Adding check for coupled patches in faceReflecting
parent
bb35d784
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/radiation/radiationModels/solarLoad/faceReflecting/faceReflecting.C
View file @
c07ab245
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018
-2019
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -413,23 +413,28 @@ void Foam::faceReflecting::calculate()
// Fill patchr
forAll
(
patchr
,
patchi
)
{
for
(
label
bandI
=
0
;
bandI
<
nBands
;
bandI
++
)
const
polyPatch
&
pp
=
patches
[
patchi
];
if
(
!
pp
.
coupled
()
&&
!
isA
<
cyclicAMIPolyPatch
>
(
pp
))
{
patchr
[
patchi
][
bandI
]
=
boundaryRadiation
.
specReflectivity
(
patchi
,
bandI
,
new
vectorField
(
patches
[
patchi
].
size
(),
sunDir
)
);
for
(
label
bandI
=
0
;
bandI
<
nBands
;
bandI
++
)
{
patchr
[
patchi
][
bandI
]
=
boundaryRadiation
.
specReflectivity
(
patchi
,
bandI
,
new
vectorField
(
patches
[
patchi
].
size
(),
sunDir
)
);
patcha
[
patchi
][
bandI
]
=
boundaryRadiation
.
absorptivity
(
patchi
,
bandI
,
new
vectorField
(
patches
[
patchi
].
size
(),
sunDir
)
);
patcha
[
patchi
][
bandI
]
=
boundaryRadiation
.
absorptivity
(
patchi
,
bandI
,
new
vectorField
(
patches
[
patchi
].
size
(),
sunDir
)
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment