mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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.
This commit is contained in:
@ -58,7 +58,7 @@ functions
|
||||
enabled true;
|
||||
|
||||
// When to output the average fields
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// Fields to be averaged - runTime modifiable
|
||||
fields
|
||||
|
||||
@ -28,7 +28,7 @@ functions
|
||||
enabled true;
|
||||
|
||||
// When to output the average fields
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// Fields to be transformed - runTime modifiable
|
||||
fields
|
||||
|
||||
@ -52,7 +52,7 @@ functions
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// Output to log&file (true) or to file only
|
||||
log true;
|
||||
@ -93,7 +93,7 @@ functions
|
||||
type faceSource;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
log true;
|
||||
valueOutput true;
|
||||
source faceZone;
|
||||
@ -111,7 +111,7 @@ functions
|
||||
type cellSource;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
log true;
|
||||
valueOutput true;
|
||||
source cellZone;
|
||||
|
||||
@ -54,7 +54,7 @@ functions
|
||||
type nearWallFields;
|
||||
|
||||
// Output every
|
||||
writeControl outputTime; //timeStep;
|
||||
writeControl writeTime; //timeStep;
|
||||
//writeInterval 5;
|
||||
|
||||
// Fields to be sampled. Per field original name and mapped field to
|
||||
|
||||
@ -28,7 +28,7 @@ functions
|
||||
enabled true;
|
||||
|
||||
// When to output the average fields
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ functions
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
|
||||
// Output every
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
// writeInterval 10;
|
||||
|
||||
setFormat vtk; //gnuplot, raw etc. See sampleDict.
|
||||
|
||||
@ -63,7 +63,7 @@ functions
|
||||
type nearWallFields;
|
||||
|
||||
// Output every
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
//writeInterval 1;
|
||||
|
||||
// Fields to be sampled. Per field original name and mapped field to
|
||||
@ -86,7 +86,7 @@ functions
|
||||
type wallBoundedStreamLine;
|
||||
|
||||
// Output every
|
||||
writeControl timeStep; //outputTime;
|
||||
writeControl timeStep; //writeTime;
|
||||
// writeInterval 10;
|
||||
|
||||
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
||||
|
||||
@ -66,19 +66,19 @@ functions
|
||||
|
||||
// Execute upon options:
|
||||
// timeStep
|
||||
// outputTime
|
||||
// writeTime
|
||||
// adjustableRunTime
|
||||
// runTime
|
||||
// clockTime
|
||||
// cpuTime
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// Objects (fields or lagrangian fields in any of the clouds)
|
||||
// to write every outputTime
|
||||
// to write every writeTime
|
||||
objectNames (p positions nParticle);
|
||||
|
||||
// Write as normal every writeInterval'th outputTime.
|
||||
writeInterval 1; // (timeStep, outputTime)
|
||||
// Write as normal every writeInterval'th writeTime.
|
||||
writeInterval 1; // (timeStep, writeTime)
|
||||
|
||||
// Interval of time (sec) to write down(
|
||||
writeInterval 10.5 //(adjustableRunTime, runTime, clockTime, cpuTime)
|
||||
@ -95,14 +95,14 @@ functions
|
||||
|
||||
// When to write:
|
||||
// timeStep (with optional writeInterval)
|
||||
// outputTime (with optional writeInterval)
|
||||
// writeTime (with optional writeInterval)
|
||||
// adjustableRunTime
|
||||
// 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 adjustableRunTime, runTime, clockTime,
|
||||
|
||||
@ -74,7 +74,7 @@ void Foam::functionObjects::partialWrite::read(const dictionary& dict)
|
||||
|
||||
Info<< type() << " " << name() << ":" << nl
|
||||
<< " dumping every " << writeInterval_
|
||||
<< " th outputTime : " << nl << endl ;
|
||||
<< " th writeTime : " << nl << endl ;
|
||||
|
||||
forAllConstIter(HashSet<word>, objectNames_, iter)
|
||||
{
|
||||
@ -123,7 +123,7 @@ void Foam::functionObjects::partialWrite::end()
|
||||
|
||||
void Foam::functionObjects::partialWrite::timeSet()
|
||||
{
|
||||
if (obr_.time().outputTime())
|
||||
if (obr_.time().writeTime())
|
||||
{
|
||||
writeInstance_++;
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ functions
|
||||
type systemCall;
|
||||
functionObjectLibs ("libsystemCall.so");
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// called every time step
|
||||
executeCalls
|
||||
|
||||
@ -66,19 +66,19 @@ functions
|
||||
|
||||
// Execute upon options:
|
||||
// timeStep
|
||||
// outputTime
|
||||
// writeTime
|
||||
// adjustableRunTime
|
||||
// runTime
|
||||
// clockTime
|
||||
// cpuTime
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// Objects (fields or lagrangian fields in any of the clouds)
|
||||
// to write every outputTime
|
||||
// to write every writeTime
|
||||
objectNames (p positions nParticle);
|
||||
|
||||
// Write as normal every writeInterval'th outputTime.
|
||||
writeInterval 1; // (timeStep, outputTime)
|
||||
// Write as normal every writeInterval'th writeTime.
|
||||
writeInterval 1; // (timeStep, writeTime)
|
||||
|
||||
// Interval of time (sec) to write down(
|
||||
writeInterval 10.5 //(adjustableRunTime, runTime, clockTime, cpuTime)
|
||||
@ -95,14 +95,14 @@ functions
|
||||
|
||||
// When to write:
|
||||
// timeStep (with optional writeInterval)
|
||||
// outputTime (with optional writeInterval)
|
||||
// writeTime (with optional writeInterval)
|
||||
// adjustableRunTime
|
||||
// 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 adjustableRunTime, runTime, clockTime,
|
||||
|
||||
@ -33,7 +33,7 @@ Description
|
||||
as the main time database through the writeControl setting:
|
||||
|
||||
\li \c timeStep
|
||||
\li \c outputTime
|
||||
\li \c writeTime
|
||||
\li \c adjustableRunTime
|
||||
\li \c runTime
|
||||
\li \c clockTime
|
||||
|
||||
Reference in New Issue
Block a user