64 const bool loadFromFiles
70 loadFromFiles_(loadFromFiles),
72 operation_(opSubtract),
82 const wordList& fields1 = source1Ptr_->fields();
83 const wordList& fields2 = source2Ptr_->fields();
91 commonFields.append(fields1[i]);
97 writeHeaderValue(os,
"Source1", source1Ptr_->
name());
98 writeHeaderValue(os,
"Source2", source2Ptr_->
name());
99 writeHeaderValue(os,
"Operation", operationTypeNames_[operation_]);
100 writeCommented(os,
"Time");
104 os <<
tab << commonFields[i];
145 operation_ = operationTypeNames_.read(dict.
lookup(
"operation"));
153 source1Ptr_->write();
154 source2Ptr_->write();
158 file()<< obr_.time().value();
161 if (log_)
Info<<
type() <<
" " << name_ <<
" output:" <<
endl;
164 processFields<scalar>(
found);
165 processFields<vector>(
found);
166 processFields<sphericalTensor>(
found);
167 processFields<symmTensor>(
found);
168 processFields<tensor>(
found);
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static autoPtr< fieldValue > New(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false, const bool output=true)
Return a reference to the selected fieldValue.
virtual void execute()
Execute.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void updateMesh(const mapPolyMesh &)
Update mesh.
void size(const label)
Override size to be inconsistent with allocated storage.
Various functions to operate on Lists.
virtual void write()
Calculate and write.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
virtual void read(const dictionary &)
Read from dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const NamedEnum< operationType, 5 > operationTypeNames_
Operation type names.
fieldValueDelta(const word &name, const objectRegistry &obr, const dictionary &dict, const bool loadFromFiles=false)
Construct from components.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Initialise the NamedEnum HashTable from the static list of names.
virtual void write()
Write function.
virtual const fileName & name() const
Return the name of the stream.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Registry of regIOobjects.
defineTypeNameAndDebug(cellSource, 0)
virtual void movePoints(const polyMesh &)
Move points.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Base class for output file data handling.
static bool master(const label communicator=0)
Am I the master process.
bool read(const char *, int32_t &)
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
virtual ~fieldValueDelta()
Destructor.
virtual void end()
Execute the at the final time-loop, currently does nothing.
virtual void writeFileHeader(const label i)
Output file header information.