Commit 6164c2f2 authored by Henry Weller's avatar Henry Weller
Browse files

Standardized the naming of functions which control the writing of fields etc.

to have the prefix 'write' rather than 'output'

So outputTime() -> writeTime()

but 'outputTime()' is still supported for backward-compatibility.

Also removed the redundant secondary-writing functionality from Time
which has been superseded by the 'writeRegisteredObject' functionObject.
parent c983670c
......@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
runTime.write();
if (runTime.outputTime())
if (runTime.writeTime())
{
calcEk(U, K).write
(
......
if (runTime.outputTime())
if (runTime.writeTime())
{
volVectorField gradT(fvc::grad(T));
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
runTime.write();
if (runTime.outputTime())
if (runTime.writeTime())
{
nAveragingSteps = 0;
}
......
......@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
runTime.write();
if (runTime.outputTime())
if (runTime.writeTime())
{
nAveragingSteps = 0;
}
......
......@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
runTime.write();
if (runTime.outputTime())
if (runTime.writeTime())
{
writeCellGraph(V, runTime.graphFormat());
writeCellGraph(delta, runTime.graphFormat());
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
#include "evaluateNearWall.H"
if (runTime.outputTime())
if (runTime.writeTime())
{
#include "makeGraphs.H"
}
......
if (runTime.outputTime())
if (runTime.writeTime())
{
volVectorField Ur
(
......
if (runTime.outputTime())
if (runTime.writeTime())
{
volSymmTensorField sigma
(
......
if (runTime.outputTime())
if (runTime.writeTime())
{
volSymmTensorField sigma
(
......
......@@ -1525,7 +1525,7 @@ void Foam::conformalVoronoiMesh::move()
<< "They will not be inserted." << endl;
// Save displacements to file.
if (foamyHexMeshControls().objOutput() && time().outputTime())
if (foamyHexMeshControls().objOutput() && time().writeTime())
{
Info<< "Writing point displacement vectors to file." << endl;
OFstream str
......@@ -1706,7 +1706,7 @@ void Foam::conformalVoronoiMesh::move()
printVertexInfo(Info);
}
if (time().outputTime())
if (time().writeTime())
{
writeMesh(time().timeName());
}
......
......@@ -476,7 +476,7 @@ int main(int argc, char *argv[])
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
// Bypass runTime write (since only writes at outputTime)
// Bypass runTime write (since only writes at writeTime)
if
(
!runTime.objectRegistry::writeObject
......
......@@ -59,14 +59,14 @@ functions
// When to write:
// timeStep (with optional writeInterval)
// outputTime (with optional writeInterval)
// writeTime (with optional writeInterval)
// adjustableTime
// runTime
// clockTime
// cpuTime
writeControl outputTime;
writeControl writeTime;
// Write every writeInterval (only valid for timeStemp, outputTime)
// Write every writeInterval (only valid for timeStemp, writeTime)
writeInterval 1;
// Interval of time (valid for adjustableTime, runTime, clockTime,
......
......@@ -18,6 +18,6 @@ type Lambda2;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
// ************************************************************************* //
......@@ -18,6 +18,6 @@ type Q;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
// ************************************************************************* //
......@@ -18,7 +18,7 @@ type sets;
functionObjectLibs ("libsampling.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
sets
(
......
......@@ -18,7 +18,7 @@ type pressureTools;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
log false;
// ************************************************************************* //
......@@ -18,6 +18,6 @@ type sets;
functionObjectLibs ("libsampling.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
// ************************************************************************* //
......@@ -17,7 +17,7 @@ FoamFile
type streamLine;
functionObjectLibs ( "libfieldFunctionObjects.so" );
writeControl outputTime;
writeControl writeTime;
setFormat vtk;
UName U;
......
......@@ -18,7 +18,7 @@ type surfaces;
functionObjectLibs ("libsampling.so");
enabled true;
writeControl outputTime;
writeControl writeTime;
surfaceFormat vtk;
interpolationScheme cellPoint;
......
......@@ -18,7 +18,7 @@ graph
{
type sets;
functionObjectLibs ("libsampling.so");
writeControl outputTime;
writeControl writeTime;
interpolationScheme cellPointFace;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment