36 return amplitude_->value(x)*
sin(phi) + level_->
value(x);
47 using namespace constant::mathematical;
52 <<
"Integration is not defined for " <<
type() <<
" functions " 53 <<
"unless the amplitude is constant" 61 - amplitude_->value(NaN)*(
cos(phi2) -
cos(phi1))/(
twoPi*frequency_)
62 + level_->integral(x1, x2);
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two values.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar cos(const dimensionedScalar &ds)
virtual Type value(const scalar x) const
Return value.
const Type & value() const
Return const reference to value.
const scalar twoPi(2 *pi)
dimensionedScalar sin(const dimensionedScalar &ds)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.