mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: clear names of selected fields when re-reading
This commit is contained in:
@ -282,6 +282,7 @@ bool Foam::surfMeshSamplers::write()
|
||||
|
||||
bool Foam::surfMeshSamplers::read(const dictionary& dict)
|
||||
{
|
||||
fieldSelection_.clear();
|
||||
derivedNames_.clear();
|
||||
|
||||
const bool createOnRead =
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -38,7 +38,7 @@ Description
|
||||
|
||||
// Sample at every time-step
|
||||
executeControl timeStep;
|
||||
executeInterval 1;
|
||||
executeInterval 1;
|
||||
|
||||
// Disable writing (or write at same frequency as fields)
|
||||
writeControl none;
|
||||
@ -153,20 +153,20 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from Time and dictionary
|
||||
//- Construct from name, Time and dictionary
|
||||
surfMeshSamplers
|
||||
(
|
||||
const word& name,
|
||||
const Time& time,
|
||||
const Time& runTime,
|
||||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct for given objectRegistry and dictionary
|
||||
//- Construct from name, objectRegistry and dictionary
|
||||
surfMeshSamplers
|
||||
(
|
||||
const word& name,
|
||||
const objectRegistry&,
|
||||
const dictionary&
|
||||
const objectRegistry& obr,
|
||||
const dictionary& dict
|
||||
);
|
||||
|
||||
|
||||
@ -192,19 +192,19 @@ public:
|
||||
void verbose(const bool verbosity = true);
|
||||
|
||||
//- Read the surfMeshSamplers dictionary
|
||||
virtual bool read(const dictionary&);
|
||||
virtual bool read(const dictionary&) override;
|
||||
|
||||
//- Execute, does sampling
|
||||
virtual bool execute();
|
||||
virtual bool execute() override;
|
||||
|
||||
//- Write sampled values
|
||||
virtual bool write();
|
||||
virtual bool write() override;
|
||||
|
||||
//- Update for changes of mesh - expires the surfaces
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
virtual void updateMesh(const mapPolyMesh&) override;
|
||||
|
||||
//- Update for mesh point-motion - expires the surfaces
|
||||
virtual void movePoints(const polyMesh&);
|
||||
virtual void movePoints(const polyMesh&) override;
|
||||
|
||||
//- Update for changes of mesh due to readUpdate - expires the surfaces
|
||||
virtual void readUpdate(const polyMesh::readUpdateState state);
|
||||
|
||||
Reference in New Issue
Block a user