viewFactorsGen: Handle baffles
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1680
This commit is contained in:
@ -69,6 +69,7 @@ Description
|
|||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
triSurface triangulate
|
triSurface triangulate
|
||||||
(
|
(
|
||||||
@ -208,6 +209,9 @@ scalar calculateViewFactorFij
|
|||||||
{
|
{
|
||||||
vector r = i - j;
|
vector r = i - j;
|
||||||
scalar rMag = mag(r);
|
scalar rMag = mag(r);
|
||||||
|
|
||||||
|
if (rMag > SMALL)
|
||||||
|
{
|
||||||
scalar dAiMag = mag(dAi);
|
scalar dAiMag = mag(dAi);
|
||||||
scalar dAjMag = mag(dAj);
|
scalar dAjMag = mag(dAj);
|
||||||
|
|
||||||
@ -222,6 +226,11 @@ scalar calculateViewFactorFij
|
|||||||
/(sqr(rMag)*constant::mathematical::pi)
|
/(sqr(rMag)*constant::mathematical::pi)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void insertMatrixElements
|
void insertMatrixElements
|
||||||
|
|||||||
Reference in New Issue
Block a user