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
98cc307a
Commit
98cc307a
authored
Aug 14, 2013
by
andy
Browse files
ENH: Function objects - notify when writing results
parent
00800bbc
Changes
14
Hide whitespace changes
Inline
Side-by-side
src/postProcessing/functionObjects/IO/removeRegisteredObject/removeRegisteredObject.C
View file @
98cc307a
...
...
@@ -78,6 +78,10 @@ void Foam::removeRegisteredObject::execute()
if
(
obj
.
ownedByRegistry
())
{
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" removing object "
<<
obj
.
name
()
<<
nl
<<
endl
;
const_cast
<
regIOobject
&>
(
obj
).
release
();
delete
&
obj
;
}
...
...
src/postProcessing/functionObjects/IO/writeDictionary/writeDictionary.C
View file @
98cc307a
...
...
@@ -63,7 +63,7 @@ bool Foam::writeDictionary::tryFolder
{
if
(
firstDict
)
{
Info
<<
type
()
<<
" output:"
<<
nl
<<
endl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
<<
endl
;
IOobject
::
writeDivider
(
Info
);
Info
<<
endl
;
...
...
src/postProcessing/functionObjects/IO/writeRegisteredObject/writeRegisteredObject.C
View file @
98cc307a
...
...
@@ -98,6 +98,11 @@ void Foam::writeRegisteredObject::write()
);
// Switch off automatic writing to prevent double write
obj
.
writeOpt
()
=
IOobject
::
NO_WRITE
;
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing object "
<<
obj
.
name
()
<<
nl
<<
endl
;
obj
.
write
();
}
else
...
...
src/postProcessing/functionObjects/fvTools/calcFvcDiv/calcFvcDivTemplates.C
View file @
98cc307a
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -52,8 +52,8 @@ void Foam::calcFvcDiv::calcDiv
field
=
fvc
::
div
(
vf
);
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
field
.
name
()
<<
" field"
<<
nl
<<
endl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
<<
" writing
field
"
<<
field
.
name
()
<<
nl
<<
endl
;
field
.
write
();
...
...
src/postProcessing/functionObjects/fvTools/calcFvcGrad/calcFvcGradTemplates.C
View file @
98cc307a
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -120,8 +120,8 @@ void Foam::calcFvcGrad::calcGrad
field
=
fvc
::
grad
(
sf
);
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
field
.
name
()
<<
" field"
<<
nl
<<
endl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
<<
" writing
field
"
<<
field
.
name
()
<<
nl
<<
endl
;
field
.
write
();
...
...
src/postProcessing/functionObjects/utilities/CourantNo/CourantNo.C
View file @
98cc307a
...
...
@@ -198,10 +198,11 @@ void Foam::CourantNo::write()
CourantNo
.
correctBoundaryConditions
();
CourantNo
.
write
();
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing field "
<<
CourantNo
.
name
()
<<
nl
<<
endl
;
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
CourantNo
.
name
()
<<
" field"
<<
nl
<<
endl
;
CourantNo
.
write
();
}
}
...
...
src/postProcessing/functionObjects/utilities/DESModelRegions/DESModelRegions.C
View file @
98cc307a
...
...
@@ -136,7 +136,7 @@ void Foam::DESModelRegions::write()
if
(
log_
)
{
Info
<<
type
()
<<
" output:"
<<
nl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
;
}
tmp
<
volScalarField
>
tresult
;
...
...
@@ -186,6 +186,7 @@ void Foam::DESModelRegions::write()
{
Info
<<
" LES = "
<<
prc
<<
" % (volume)"
<<
nl
<<
" RAS = "
<<
100
.
0
-
prc
<<
" % (volume)"
<<
nl
<<
" writing field "
<<
result
.
name
()
<<
nl
<<
endl
;
}
...
...
src/postProcessing/functionObjects/utilities/Lambda2/Lambda2.C
View file @
98cc307a
...
...
@@ -157,10 +157,11 @@ void Foam::Lambda2::write()
Lambda2
=
-
eigenValues
(
SSplusWW
)().
component
(
vector
::
Y
);
Lambda2
.
write
();
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing field "
<<
Lambda2
.
name
()
<<
nl
<<
endl
;
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
Lambda2
.
name
()
<<
" field"
<<
nl
<<
endl
;
Lambda2
.
write
();
}
}
...
...
src/postProcessing/functionObjects/utilities/Peclet/Peclet.C
View file @
98cc307a
...
...
@@ -209,10 +209,11 @@ void Foam::Peclet::write()
*
fvc
::
interpolate
(
nuEff
)
);
Peclet
.
write
();
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing field "
<<
Peclet
.
name
()
<<
nl
<<
endl
;
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
Peclet
.
name
()
<<
" field"
<<
nl
<<
endl
;
Peclet
.
write
();
}
}
...
...
src/postProcessing/functionObjects/utilities/Q/Q.C
View file @
98cc307a
...
...
@@ -150,10 +150,11 @@ void Foam::Q::write()
Q
=
0
.
5
*
(
sqr
(
tr
(
gradU
))
-
tr
(((
gradU
)
&
(
gradU
))));
Q
.
write
();
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing field "
<<
Q
.
name
()
<<
nl
<<
endl
;
Info
<<
type
()
<<
" output:"
<<
nl
<<
" writing "
<<
Q
.
name
()
<<
" field"
<<
nl
<<
endl
;
Q
.
write
();
}
}
...
...
src/postProcessing/functionObjects/utilities/pressureTools/pressureTools.C
View file @
98cc307a
...
...
@@ -322,6 +322,10 @@ void Foam::pressureTools::write()
pResult
==
convertToCoeff
(
rhoScale
(
p
)
*
p
+
pDyn
(
p
)
+
pRef
());
Info
<<
type
()
<<
" "
<<
name_
<<
" output:"
<<
nl
<<
" writing field "
<<
pResult
.
name
()
<<
nl
<<
endl
;
pResult
.
write
();
}
}
...
...
src/postProcessing/functionObjects/utilities/wallShearStress/wallShearStress.C
View file @
98cc307a
...
...
@@ -234,7 +234,7 @@ void Foam::wallShearStress::write()
if
(
log_
)
{
Info
<<
type
()
<<
" output:"
<<
nl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
;
}
...
...
@@ -265,7 +265,8 @@ void Foam::wallShearStress::write()
if
(
log_
)
{
Info
<<
endl
;
Info
<<
" writing field "
<<
wallShearStress
.
name
()
<<
nl
<<
endl
;
}
wallShearStress
.
write
();
...
...
src/postProcessing/functionObjects/utilities/yPlusLES/yPlusLES.C
View file @
98cc307a
...
...
@@ -282,7 +282,7 @@ void Foam::yPlusLES::write()
if
(
log_
)
{
Info
<<
type
()
<<
" output:"
<<
nl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
;
}
if
(
phi
.
dimensions
()
==
dimMass
/
dimTime
)
...
...
@@ -296,7 +296,8 @@ void Foam::yPlusLES::write()
if
(
log_
)
{
Info
<<
endl
;
Info
<<
" writing field "
<<
yPlusLES
.
name
()
<<
nl
<<
endl
;
}
yPlusLES
.
write
();
...
...
src/postProcessing/functionObjects/utilities/yPlusRAS/yPlusRAS.C
View file @
98cc307a
...
...
@@ -267,7 +267,7 @@ void Foam::yPlusRAS::write()
if
(
log_
)
{
Info
<<
type
()
<<
" output:"
<<
nl
;
Info
<<
type
()
<<
"
"
<<
name_
<<
"
output:"
<<
nl
;
}
if
(
phi
.
dimensions
()
==
dimMass
/
dimTime
)
...
...
@@ -281,7 +281,8 @@ void Foam::yPlusRAS::write()
if
(
log_
)
{
Info
<<
endl
;
Info
<<
" writing field "
<<
yPlusRAS
.
name
()
<<
nl
<<
endl
;
}
yPlusRAS
.
write
();
...
...
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