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
0ec8e3e7
Commit
0ec8e3e7
authored
Jun 15, 2018
by
sergio
Browse files
STY: Formatting log output for stabilityBlendingFactor
parent
01f76d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C
View file @
0ec8e3e7
...
...
@@ -63,7 +63,7 @@ void Foam::functionObjects::stabilityBlendingFactor::writeFileHeader
bool
Foam
::
functionObjects
::
stabilityBlendingFactor
::
calc
()
{
init
(
tru
e
);
init
(
fals
e
);
return
true
;
}
...
...
@@ -140,6 +140,14 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
if
(
nonOrthogonality_
)
{
if
(
maxNonOrthogonality_
>=
minNonOrthogonality_
)
{
FatalErrorInFunction
<<
" minNonOrthogonality should be larger than "
<<
"maxNonOrthogonality."
<<
exit
(
FatalError
);
}
indicator_
=
max
(
...
...
@@ -156,7 +164,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
)
);
if
(
log
)
if
(
first
)
{
Log
<<
" Max non-orthogonality : "
<<
max
(
*
nonOrthPtr
).
value
()
<<
endl
;
...
...
@@ -168,6 +176,13 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
if
(
skewness_
)
{
if
(
maxSkewness_
>=
minSkewness_
)
{
FatalErrorInFunction
<<
" minSkewness should be larger than maxSkewness."
<<
exit
(
FatalError
);
}
indicator_
=
max
(
...
...
@@ -184,7 +199,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
)
);
if
(
log
)
if
(
first
)
{
Log
<<
" Max skewness : "
<<
max
(
*
skewnessPtr
).
value
()
<<
endl
;
...
...
@@ -196,6 +211,13 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
if
(
faceWeight_
)
{
if
(
maxFaceWeight_
>=
minFaceWeight_
)
{
FatalErrorInFunction
<<
" minFaceWeight should be larger than maxFaceWeight."
<<
exit
(
FatalError
);
}
indicator_
=
max
(
...
...
@@ -212,7 +234,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
)
);
if
(
log
)
if
(
first
)
{
Log
<<
" Min face weight: "
<<
min
(
*
faceWeightsPtr
).
value
()
<<
endl
;
...
...
@@ -222,6 +244,13 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
if
(
gradCc_
)
{
if
(
maxGradCc_
>=
minGradCc_
)
{
FatalErrorInFunction
<<
" minGradCc should be larger than maxGradCc."
<<
exit
(
FatalError
);
}
tmp
<
volScalarField
>
magGradCCPtr
(
new
volScalarField
...
...
@@ -262,7 +291,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
magGradCCPtr
.
ref
()
+=
mag
(
fvc
::
grad
(
cci
)).
ref
();
}
if
(
log
)
if
(
first
)
{
Log
<<
" Max magGradCc : "
<<
max
(
magGradCCPtr
.
ref
()).
value
()
<<
endl
;
...
...
@@ -328,14 +357,14 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
min
(
max
(
scalar
(
0
),
(
Co
-
Co1_
)
/
(
Co2_
-
Co1_
)),
scalar
(
1
))
);
if
(
log
)
if
(
first
)
{
Log
<<
" Max Co : "
<<
max
(
Co
).
value
()
<<
endl
;
}
}
if
(
log
)
if
(
first
)
{
Log
<<
nl
;
}
...
...
@@ -555,7 +584,7 @@ Foam::functionObjects::stabilityBlendingFactor::stabilityBlendingFactor
init
(
true
);
writeFileHeader
(
file
());
writeFileHeader
(
file
());
}
...
...
@@ -679,7 +708,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::write()
reduce
(
nCellsScheme2
,
sumOp
<
label
>
());
reduce
(
nCellsBlended
,
sumOp
<
label
>
());
Log
<<
nl
<<
type
()
<<
" :
"
<<
nl
Log
<<
nl
<<
type
()
<<
"
execute
:"
<<
nl
<<
" scheme 1 cells : "
<<
nCellsScheme1
<<
nl
<<
" scheme 2 cells : "
<<
nCellsScheme2
<<
nl
<<
" blended cells : "
<<
nCellsBlended
<<
nl
...
...
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