Skip to content
GitLab
Menu
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
9c09fd4f
Commit
9c09fd4f
authored
Dec 29, 2014
by
Henry
Browse files
viewFactor: moved some of the "noise" to print only on debug
parent
7cdb6dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/radiationModels/radiationModel/viewFactor/viewFactor.C
View file @
9c09fd4f
...
...
@@ -69,16 +69,19 @@ void Foam::radiation::viewFactor::initialise()
if
(
debug
)
{
Pout
<<
"Selected patches:"
<<
selectedPatches_
<<
endl
;
Pout
<<
"Number of coarse faces:"
<<
nLocalCoarseFaces_
<<
endl
;
Pout
<<
"radiation::viewFactor::initialise() Selected patches:"
<<
selectedPatches_
<<
endl
;
Pout
<<
"radiation::viewFactor::initialise() Number of coarse faces:"
<<
nLocalCoarseFaces_
<<
endl
;
}
totalNCoarseFaces_
=
nLocalCoarseFaces_
;
reduce
(
totalNCoarseFaces_
,
sumOp
<
label
>
());
if
(
Pstream
::
master
())
if
(
debug
&&
Pstream
::
master
())
{
Info
<<
"Total number of clusters : "
<<
totalNCoarseFaces_
<<
endl
;
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"Total number of clusters : "
<<
totalNCoarseFaces_
<<
endl
;
}
labelListIOList
subMap
...
...
@@ -173,7 +176,11 @@ void Foam::radiation::viewFactor::initialise()
new
scalarSquareMatrix
(
totalNCoarseFaces_
,
totalNCoarseFaces_
,
0
.
0
)
);
Info
<<
"Insert elements in the matrix..."
<<
endl
;
if
(
debug
)
{
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"Insert elements in the matrix..."
<<
endl
;
}
for
(
label
procI
=
0
;
procI
<
Pstream
::
nProcs
();
procI
++
)
{
...
...
@@ -191,7 +198,11 @@ void Foam::radiation::viewFactor::initialise()
bool
smoothing
=
readBool
(
coeffs_
.
lookup
(
"smoothing"
));
if
(
smoothing
)
{
Info
<<
"Smoothing the matrix..."
<<
endl
;
if
(
debug
)
{
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"Smoothing the matrix..."
<<
endl
;
}
for
(
label
i
=
0
;
i
<
totalNCoarseFaces_
;
i
++
)
{
...
...
@@ -543,6 +554,7 @@ void Foam::radiation::viewFactor::calculate()
}
Info
<<
"
\n
Solving view factor equations..."
<<
endl
;
// Negative coming into the fluid
LUsolve
(
C
,
q
);
}
...
...
@@ -566,7 +578,13 @@ void Foam::radiation::viewFactor::calculate()
}
}
}
Info
<<
"
\n
Decomposing C matrix..."
<<
endl
;
if
(
debug
)
{
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"
\n
Decomposing C matrix..."
<<
endl
;
}
LUDecompose
(
CLU_
(),
pivotIndices_
);
}
...
...
@@ -589,7 +607,12 @@ void Foam::radiation::viewFactor::calculate()
}
}
Info
<<
"
\n
LU Back substitute C matrix.."
<<
endl
;
if
(
debug
)
{
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"
\n
LU Back substitute C matrix.."
<<
endl
;
}
LUBacksubstitute
(
CLU_
(),
pivotIndices_
,
q
);
iterCounter_
++
;
}
...
...
@@ -643,7 +666,9 @@ void Foam::radiation::viewFactor::calculate()
const
scalarField
&
Qrp
=
Qr_
.
boundaryField
()[
patchID
];
const
scalarField
&
magSf
=
mesh_
.
magSf
().
boundaryField
()[
patchID
];
scalar
heatFlux
=
gSum
(
Qrp
*
magSf
);
Info
<<
"Total heat transfer rate at patch: "
InfoIn
(
"radiation::viewFactor::initialise()"
)
<<
"Total heat transfer rate at patch: "
<<
patchID
<<
" "
<<
heatFlux
<<
endl
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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