33 namespace functionObjects
43 bool Foam::functionObjects::components::calc()
45 bool processed =
false;
47 processed = processed || calcComponents<vector>();
48 processed = processed || calcComponents<sphericalTensor>();
49 processed = processed || calcComponents<symmTensor>();
50 processed = processed || calcComponents<tensor>();
88 written = written && writeObject(resultNames_[i]);
101 cleared = cleared && clearObject(resultNames_[i]);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Calculates the components of a field.
virtual bool clear()
Clear the component fields from the objectRegistry.
virtual ~components()
Destructor.
virtual bool write()
Write the component fields.
components(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const word fieldName_
Name of field to process.
void cannotFindObject(const word &fieldName)
Prints a warning message that fieldName cannot be found.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
word name(const bool)
Return a word representation of a bool.