MOOSE - Multiscale Object Oriented Simulation Environment
|
#include "header.h"
#include "../utility/utility.h"
#include "../utility/numutil.h"
#include "Variable.h"
#include "Function.h"
#include "ElementValueFinfo.h"
Go to the source code of this file.
Macros | |
#define | PARSER_MAXVARS 100 |
Functions | |
double * | _functionAddVar (const char *name, void *data) |
static SrcFinfo1< double > * | derivativeOut () |
static SrcFinfo1< double > * | rateOut () |
static SrcFinfo1< vector < double > * > * | requestOut () |
static SrcFinfo1< double > * | valueOut () |
Variables | |
static const Cinfo * | functionCinfo = Function::initCinfo() |
static const double | TriggerThreshold = 0.0 |
#define PARSER_MAXVARS 100 |
Definition at line 56 of file Function.cpp.
double* _functionAddVar | ( | const char * | name, |
void * | data | ||
) |
Call-back to add variables to parser automatically.
We use different storage for constants and variables. Variables are stored in a vector of Variable object pointers. They must have the name x{index} where index is any non-negative integer. Note that the vector is resized to whatever the maximum index is. It is up to the user to make sure that indices are sequential without any gap. In case there is a gap in indices, those entries will remain unused.
If the name starts with anything other than x
or y
, then it is taken to be a named constant, which must be set before any expression or variables and error is thrown.
NOTE: this is called not on setting expression but on first attempt at evaluation of the same, i.e. when you access value
of the Function object.
Definition at line 482 of file Function.cpp.
|
static |
Definition at line 68 of file Function.cpp.
Referenced by Function::initCinfo(), Function::process(), and Function::reinit().
|
static |
Definition at line 75 of file Function.cpp.
Referenced by Function::initCinfo(), Function::process(), and Function::reinit().
|
static |
Definition at line 82 of file Function.cpp.
Referenced by Function::initCinfo(), and Function::process().
|
static |
Definition at line 61 of file Function.cpp.
Referenced by Function::initCinfo(), Function::process(), and Function::reinit().
|
static |
Definition at line 327 of file Function.cpp.
Referenced by Stoich::allocateModelObject(), Function::initCinfo(), and Stoich::unZombifyModel().
|
static |
Definition at line 59 of file Function.cpp.
Referenced by Function::process().