35 #ifndef pythonexpression_h 36 #define pythonexpression_h 47 #define _IFT_PythonExpression_Name "pythonexpression" 48 #define _IFT_PythonExpression_f "f" 49 #define _IFT_PythonExpression_dfdt "dfdt" 50 #define _IFT_PythonExpression_d2fdt2 "d2fdt2" 75 PyObject *getDict(std :: map< std :: string, FunctionArgument > &valDict);
77 void getArray(
FloatArray &answer,
PyObject *func, std :: map< std :: string, FunctionArgument > &valDict);
79 double getScalar(
PyObject *func,
double time);
100 virtual void evaluate(
FloatArray &answer, std :: map< std :: string, FunctionArgument > &valDict);
101 virtual void evaluateVelocity(
FloatArray &answer, std :: map< std :: string, FunctionArgument > &valDict);
102 virtual void evaluateAcceleration(
FloatArray &answer, std :: map< std :: string, FunctionArgument > &valDict);
103 virtual double evaluateAtTime(
double t);
104 virtual double evaluateVelocityAtTime(
double t);
105 virtual double evaluateAccelerationAtTime(
double t);
111 #endif // pythonexpression_h
virtual const char * giveInputRecordName() const
std::string dfdtExpression
Expression for first time derivative.
#define _IFT_PythonExpression_Name
std::string fExpression
Expression for the function value.
std::string d2fdt2Expression
Expression for second time derivative.
virtual const char * giveClassName() const
Class representing vector of real numbers.
Abstract base class representing a function with vector input and output.
IRResultType
Type defining the return values of InputRecord reading operations.
Class representing user defined functions as Python expressions.
the oofem namespace is to define a context or scope in which all oofem names are defined.