Go to the documentation of this file.
49 allowGradient_(allowGradient),
50 evalOnConstruct_(
false),
64 debug_(
dict.getOrDefault(
"debug",
false)),
65 allowGradient_(allowGradient),
66 evalOnConstruct_(
dict.getOrDefault(
"evalOnConstruct",
false)),
78 if (
dict.readIfPresent(
"valueExpr", expr))
87 Info<<
"No valueExpr" <<
nl;
93 if (
dict.readIfPresent(
"gradientExpr", expr))
103 Info<<
"No gradientExpr" <<
nl;
107 if (
dict.readIfPresent(
"fractionExpr", expr))
109 if (!expr.empty() && expr !=
"0")
113 expr =
"toPoint(" + expr +
")";
150 if (!valueExpr_.empty())
154 if (!gradExpr_.empty())
158 if (!fracExpr_.empty())
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
expressions::exprString gradExpr_
Base class for managing patches with expressions. The expected input supports values,...
patchExprFieldBase()
Default construct.
messageStream Info
Information stream (uses stdout - output is on the master only)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
expressions::exprString fracExpr_
void write(Ostream &os) const
Write.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
expressions::exprString valueExpr_
bool evalOnConstruct_
Slightly dodgy concept here.