Go to the documentation of this file.
80 #ifndef fieldValueDelta_H
81 #define fieldValueDelta_H
100 class fieldValueDelta
102 public functionObjectState,
103 public functionObjectFile
125 const objectRegistry&
obr_;
152 const word& entryName1,
153 const word& entryName2,
178 const bool loadFromFiles =
false
194 virtual void write();
operationType
Operation type enumeration.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
Base class for function objects, adding functionality to read/write state information (data required ...
void apply(const word &resultType, const word &name1, const word &name2, const word &entryName1, const word &entryName2, bool &found)
Templated function to apply the operation.
word resultType(const word &entryName) const
Retrieve the result type.
Mesh consisting of general polyhedral cells.
Registry of regIOobjects.
Switch log_
Switch to send output to Info as well as to file.
virtual void execute()
Execute.
autoPtr< fieldValue > source1Ptr_
Field value source object 1.
virtual ~fieldValueDelta()
Destructor.
virtual void updateMesh(const mapPolyMesh &)
Update mesh.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual void writeFileHeader(Ostream &os) const
Output file header information.
operationType operation_
Operation to apply to values.
TypeName("fieldValueDelta")
Run-time type information.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void read(const dictionary &)
Read from dictionary.
virtual void movePoints(const polyMesh &)
Move points.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< fieldValue > source2Ptr_
Field value source object 2.
bool loadFromFiles_
Flag to indicate to load from files.
Base class for output file data handling.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
This function object provides applies an operation to the output of two fieldValue function objects.
const objectRegistry & obr_
Database this class is registered to.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fieldValueDelta(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false)
Construct from components.
const word & name() const
Return the name.
static const NamedEnum< operationType, 5 > operationTypeNames_
Operation type names.
virtual void end()
Execute the at the final time-loop, currently does nothing.
virtual void write()
Calculate and write.