Go to the documentation of this file.
33 void Foam::minMaxCondition::setValue<Foam::scalar>
35 const word& valueType,
36 const word& fieldName,
40 state_.getObjectResult(functionObjectName_, fieldName, value);
74 functionObjectName_(
dict.lookup(
"functionObjectName")),
76 fieldNames_(
dict.lookup(
"fields")),
91 bool satisfied =
true;
98 forAll(fieldNames_, fieldI)
100 const word& fieldName = fieldNames_[fieldI];
102 const word valueType =
103 state_.objectResultType(functionObjectName_, fieldName);
108 <<
"Unable to find entry " << fieldName
109 <<
" for function object " << functionObjectName_
110 <<
". Condition will not be applied."
117 setValue<scalar>(valueType, fieldName, v);
118 setValue<vector>(valueType, fieldName, v);
119 setValue<sphericalTensor>(valueType, fieldName, v);
120 setValue<symmTensor>(valueType, fieldName, v);
121 setValue<tensor>(valueType, fieldName, v);
147 << fieldName <<
": value = " << v
148 <<
", threshold value = " << value_
149 <<
", satisfied = " << ok <<
endl;
152 satisfied = satisfied && ok;
Base class for run time conditions.
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.
virtual bool apply()
Apply the condition.
Base class for function objects, adding functionality to read/write state information (data required ...
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void write()
Write.
Registry of regIOobjects.
const Foam::NamedEnum< Foam::scene::modeType, 2 > modeTypeNames_
virtual ~minMaxCondition()
Destructor.
minMaxCondition(const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state)
Constructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
static const word null
An empty word.
static const NamedEnum< modeType, 2 > modeTypeNames_
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Include the header files for all the primitive types that Fields are instantiated for.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
Initialise the NamedEnum HashTable from the static list of names.