35 #ifndef scalarfunction_h 36 #define scalarfunction_h 46 class FunctionArgument;
119 double eval(
const std :: map< std :: string, FunctionArgument >valDict,
Domain *d,
GaussPoint *gp=NULL,
double param=0.)
const;
146 #endif // scalarfunction_h
double dValue
Constant, double value.
double eval(const std::map< std::string, FunctionArgument >valDict, Domain *d, GaussPoint *gp=NULL, double param=0.) const
Evaluates the receiver.
std::string eValue
Simple expression (evaluated by internal parser)
bool isDefined() const
True if receiver is defined.
void setValue(double val)
Sets receiver to be a constant scalar function defined by given value.
friend std::ostream & operator<<(std::ostream &out, const ScalarFunction &s)
void setReference(int val)
Sets receiver to be a scalar function defined using external function.
ScalarFunction()
Creates empty constant scalar function.
void setSimpleExpression(std::string &val)
Sets receiver to be a scalar funtion defined by given simple expression.
int fReference
Reference to external function.
Implementation of Scalar function.
enum oofem::ScalarFunction::@1 dvType
Enum value determining the dataValue type.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.