MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Func.h>
Public Member Functions | |
Func () | |
Func (const Func &rhs) | |
double | getDerivative () const |
string | getExpr () const |
unsigned int | getMode () const |
double | getValue () const |
double | getVar (string name) const |
vector< string > | getVars () const |
double | getX () const |
double | getY () const |
double | getZ () const |
Func & | operator= (const Func rhs) |
void | process (const Eref &e, ProcPtr p) |
void | reinit (const Eref &e, ProcPtr p) |
void | setExpr (string expr) |
void | setMode (unsigned int mode) |
void | setVar (string name, double value) |
void | setVarValues (vector< string > vars, vector< double > vals) |
void | setX (double value) |
void | setXY (double x, double y) |
void | setXYZ (double x, double y, double z) |
void | setY (double value) |
void | setZ (double value) |
~Func () | |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
Static Public Attributes | |
static const int | VARMAX = 10 |
Protected Member Functions | |
void | _clearBuffer () |
void | _showError (mu::Parser::exception_type &e) const |
Protected Attributes | |
unsigned int | _mode |
mu::Parser | _parser |
bool | _valid |
vector< double * > | _varbuf |
double * | _x |
double * | _y |
double * | _z |
Friends | |
double * | _addVar (const char *name, void *data) |
Func::Func | ( | ) |
Func::Func | ( | const Func & | rhs | ) |
Func::~Func | ( | ) |
Definition at line 328 of file Func.cpp.
References _clearBuffer().
|
protected |
|
protected |
Definition at line 344 of file Func.cpp.
Referenced by getDerivative(), getValue(), getVar(), getVars(), setExpr(), and setVar().
double Func::getDerivative | ( | ) | const |
Definition at line 599 of file Func.cpp.
References _parser, _showError(), _valid, _x, and value.
Referenced by initCinfo(), and process().
string Func::getExpr | ( | ) | const |
Definition at line 419 of file Func.cpp.
References _parser, and _valid.
Referenced by Func(), initCinfo(), and operator=().
unsigned int Func::getMode | ( | ) | const |
Definition at line 575 of file Func.cpp.
References _mode.
Referenced by initCinfo().
double Func::getValue | ( | ) | const |
Definition at line 580 of file Func.cpp.
References _parser, _showError(), _valid, and value.
Referenced by initCinfo(), and process().
double Func::getVar | ( | string | name | ) | const |
Get value of variable name
Definition at line 464 of file Func.cpp.
References _parser, _showError(), and _valid.
Referenced by Func(), initCinfo(), and operator=().
vector< string > Func::getVars | ( | ) | const |
Definition at line 622 of file Func.cpp.
References _parser, _showError(), and _valid.
Referenced by Func(), initCinfo(), and operator=().
double Func::getX | ( | ) | const |
Definition at line 500 of file Func.cpp.
References _x.
Referenced by initCinfo().
double Func::getY | ( | ) | const |
Definition at line 517 of file Func.cpp.
References _y.
Referenced by initCinfo().
double Func::getZ | ( | ) | const |
Definition at line 533 of file Func.cpp.
References _z.
Referenced by initCinfo().
|
static |
Definition at line 67 of file Func.cpp.
References derivativeOut(), funcCinfo, getDerivative(), getExpr(), getMode(), getValue(), getVar(), getVars(), getX(), getY(), getZ(), Neutral::initCinfo(), process(), reinit(), setExpr(), setMode(), setVar(), setVarValues(), setX(), setXY(), setXYZ(), setY(), setZ(), value, and valueOut().
Definition at line 665 of file Func.cpp.
References _mode, _valid, derivativeOut(), getDerivative(), getValue(), and valueOut().
Referenced by initCinfo().
Definition at line 681 of file Func.cpp.
References _parser, _valid, setExpr(), and moose::trim().
Referenced by initCinfo().
void Func::setExpr | ( | string | expr | ) |
Definition at line 365 of file Func.cpp.
References _clearBuffer(), _parser, _showError(), _valid, _x, _y, and _z.
Referenced by Func(), initCinfo(), operator=(), and reinit().
void Func::setMode | ( | unsigned int | mode | ) |
Definition at line 570 of file Func.cpp.
References _mode.
Referenced by initCinfo().
void Func::setVar | ( | string | name, |
double | value | ||
) |
Set value of variable name
Definition at line 432 of file Func.cpp.
References _parser, _showError(), _valid, and value.
Referenced by Func(), initCinfo(), and operator=().
void Func::setVarValues | ( | vector< string > | vars, |
vector< double > | vals | ||
) |
Definition at line 647 of file Func.cpp.
References _parser, and _valid.
Referenced by initCinfo().
void Func::setX | ( | double | value | ) |
Definition at line 492 of file Func.cpp.
References _x.
Referenced by initCinfo().
void Func::setXY | ( | double | x, |
double | y | ||
) |
Definition at line 542 of file Func.cpp.
Referenced by initCinfo().
void Func::setXYZ | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 554 of file Func.cpp.
Referenced by initCinfo().
void Func::setY | ( | double | value | ) |
Definition at line 509 of file Func.cpp.
References _y.
Referenced by initCinfo().
void Func::setZ | ( | double | value | ) |
Definition at line 525 of file Func.cpp.
References _z.
Referenced by initCinfo().
|
friend |
|
protected |
|
protected |
Definition at line 110 of file Func.h.
Referenced by _clearBuffer(), Func(), getDerivative(), getExpr(), getValue(), getVar(), getVars(), operator=(), reinit(), setExpr(), setVar(), and setVarValues().
|
mutableprotected |
Definition at line 113 of file Func.h.
Referenced by getDerivative(), getExpr(), getValue(), getVar(), getVars(), process(), reinit(), setExpr(), setVar(), and setVarValues().
|
protected |
Definition at line 109 of file Func.h.
Referenced by _addVar(), _clearBuffer(), and Func().
|
protected |
|
protected |
|
protected |