mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
functionObjects: Changed options 'outputControl' -> 'writeControl' and 'outputInterval' -> 'writeInterval'
for consistency with the time controls in controlDict and to avoid unnecessary confusion. All code and tutorials have been updated. The old names 'outputControl' and 'outputInterval' are but supported for backward compatibility but deprecated.
This commit is contained in:
@ -63,8 +63,8 @@ functions
|
||||
type nearWallFields;
|
||||
|
||||
// Output every
|
||||
outputControl outputTime;
|
||||
//outputInterval 1;
|
||||
writeControl outputTime;
|
||||
//writeInterval 1;
|
||||
|
||||
// Fields to be sampled. Per field original name and mapped field to
|
||||
// create.
|
||||
@ -86,8 +86,8 @@ functions
|
||||
type wallBoundedStreamLine;
|
||||
|
||||
// Output every
|
||||
outputControl timeStep; //outputTime;
|
||||
// outputInterval 10;
|
||||
writeControl timeStep; //outputTime;
|
||||
// writeInterval 10;
|
||||
|
||||
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
||||
|
||||
|
||||
@ -37,6 +37,7 @@ License
|
||||
#include "PatchTools.H"
|
||||
#include "meshSearchMeshObject.H"
|
||||
#include "faceSet.H"
|
||||
#include "mapPolyMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -854,17 +855,30 @@ void Foam::functionObjects::wallBoundedStreamLine::write()
|
||||
|
||||
void Foam::functionObjects::wallBoundedStreamLine::updateMesh
|
||||
(
|
||||
const mapPolyMesh&
|
||||
const mapPolyMesh& mpm
|
||||
)
|
||||
{
|
||||
read(dict_);
|
||||
const fvMesh& mesh_ = dynamic_cast<const fvMesh&>(obr_);
|
||||
|
||||
if (&mpm.mesh() == &mesh_)
|
||||
{
|
||||
read(dict_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Foam::functionObjects::wallBoundedStreamLine::movePoints(const polyMesh&)
|
||||
void Foam::functionObjects::wallBoundedStreamLine::movePoints
|
||||
(
|
||||
const polyMesh& mesh
|
||||
)
|
||||
{
|
||||
// Moving mesh affects the search tree
|
||||
read(dict_);
|
||||
const fvMesh& mesh_ = dynamic_cast<const fvMesh&>(obr_);
|
||||
|
||||
if (&mesh == &mesh_)
|
||||
{
|
||||
// Moving mesh affects the search tree
|
||||
read(dict_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user