40 case mappingMode::NONE:
42 return value_->
value(t);;
44 case mappingMode::FUNCTION1:
46 return value_->value(mappingValuePtr_->value(t));
48 case mappingMode::MINMAX:
50 scalar tlim =
min(
max(t, min_), max_);
52 return value_->value(tlim);
57 <<
"Unhandled enumeration " << mappingModeNames_[mappingMode_]
58 <<
". Available options are: " << mappingModeNames_.sortedToc()
76 case mappingMode::NONE:
78 return value_->integrate(x1, x2);
80 case mappingMode::FUNCTION1:
82 scalar x1Dash = mappingValuePtr_->value(x1);
83 scalar x2Dash = mappingValuePtr_->value(x2);
85 return value_->integrate(x1Dash, x2Dash);
87 case mappingMode::MINMAX:
89 scalar xlim0 =
min(
max(x1, min_), max_);
90 scalar xlim1 =
min(
max(x2, min_), max_);
92 Type intValue = value_->integrate(xlim0, xlim1);
96 intValue += (
min(min_, x2) - x1)*this->value(min_);
101 intValue += (x2 -
max(max_, x1))*this->value(max_);
109 <<
"Unhandled enumeration " << mappingModeNames_[mappingMode_]
110 <<
". Available options are: " << mappingModeNames_.sortedToc()
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
A non-counting (dummy) refCount.