MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <FuncTerm.h>
Public Member Functions | |
void | evalPool (double *s, double t) const |
FuncTerm () | |
const string & | getExpr () const |
const vector< unsigned int > & | getReactantIndex () const |
const unsigned int | getTarget () const |
double | getVolScale () const |
double | operator() (const double *S, double t) const |
const FuncTerm & | operator= (const FuncTerm &other) |
void | setExpr (const string &e) |
void | setReactantIndex (const vector< unsigned int > &mol) |
void | setTarget (unsigned int tgt) |
void | setVolScale (double vs) |
~FuncTerm () | |
Private Attributes | |
double * | args_ |
string | expr_ |
mu::Parser | parser_ |
vector< unsigned int > | reactantIndex_ |
unsigned int | target_ |
double | volScale_ |
Definition at line 15 of file FuncTerm.h.
FuncTerm::FuncTerm | ( | ) |
FuncTerm::~FuncTerm | ( | ) |
void FuncTerm::evalPool | ( | double * | s, |
double | t | ||
) | const |
Definition at line 156 of file FuncTerm.cpp.
References args_, parser_, reactantIndex_, showError(), target_, and volScale_.
const string & FuncTerm::getExpr | ( | ) | const |
Definition at line 95 of file FuncTerm.cpp.
References expr_.
Referenced by FuncRate::getExpr().
const vector< unsigned int > & FuncTerm::getReactantIndex | ( | ) | const |
Definition at line 67 of file FuncTerm.cpp.
References reactantIndex_.
Referenced by Gsolve::fillPoolFuncDep(), and FuncRate::getFuncArgIndex().
const unsigned int FuncTerm::getTarget | ( | ) | const |
Definition at line 105 of file FuncTerm.cpp.
References target_.
Referenced by FuncRate::copyWithVolScaling(), Gsolve::fillPoolFuncDep(), and FuncRate::getReactants().
double FuncTerm::getVolScale | ( | ) | const |
Definition at line 115 of file FuncTerm.cpp.
References volScale_.
double FuncTerm::operator() | ( | const double * | S, |
double | t | ||
) | const |
This computes the value. The time t is an argument needed by some functions.
Definition at line 135 of file FuncTerm.cpp.
References args_, parser_, reactantIndex_, and volScale_.
Definition at line 120 of file FuncTerm.cpp.
References args_, expr_, parser_, reactantIndex_, setReactantIndex(), target_, and volScale_.
void FuncTerm::setExpr | ( | const string & | e | ) |
Definition at line 83 of file FuncTerm.cpp.
References expr_, parser_, and showError().
Referenced by Stoich::installAndUnschedFunc(), FuncRate::setExpr(), Stoich::setFunctionExpr(), and testFuncTerm().
void FuncTerm::setReactantIndex | ( | const vector< unsigned int > & | mol | ) |
This function finds the reactant indices in the vector S. It returns the number of indices found, which are the entries in molIndex.
Definition at line 47 of file FuncTerm.cpp.
References args_, parser_, and reactantIndex_.
Referenced by Stoich::installAndUnschedFunc(), operator=(), FuncRate::setFuncArgIndex(), and testFuncTerm().
void FuncTerm::setTarget | ( | unsigned int | tgt | ) |
Definition at line 100 of file FuncTerm.cpp.
References target_.
Referenced by FuncRate::FuncRate(), Stoich::installAndUnschedFunc(), and FuncRate::setReactants().
void FuncTerm::setVolScale | ( | double | vs | ) |
Definition at line 110 of file FuncTerm.cpp.
References volScale_.
Referenced by Stoich::installAndUnschedFunc().
|
private |
Definition at line 43 of file FuncTerm.h.
Referenced by evalPool(), FuncTerm(), operator()(), operator=(), setReactantIndex(), and ~FuncTerm().
|
private |
Definition at line 47 of file FuncTerm.h.
Referenced by getExpr(), operator=(), and setExpr().
|
private |
Definition at line 46 of file FuncTerm.h.
Referenced by evalPool(), FuncTerm(), operator()(), operator=(), setExpr(), and setReactantIndex().
|
private |
Definition at line 45 of file FuncTerm.h.
Referenced by evalPool(), getReactantIndex(), operator()(), operator=(), and setReactantIndex().
|
private |
Definition at line 54 of file FuncTerm.h.
Referenced by evalPool(), getTarget(), operator=(), and setTarget().
|
private |
Scale factor to account for pool volume if we are assigning conc rather than N. Note that this conc will not be further updated so this is an undesirable option.
Definition at line 53 of file FuncTerm.h.
Referenced by evalPool(), getVolScale(), operator()(), operator=(), and setVolScale().