LILAC
|
The rhs base class. More...
#include <rhs.h>
Public Member Functions | |
rhs () | |
Creates the base rhs class with a dimension=dimen. | |
virtual void | initial_condition (ptr_passer x, size_t len)=0 |
void | initial_condition (ptr_passer x) |
Wrapper for intial_condition that assumes the length is equal to dimension. | |
virtual int | dxdt (ptr_passer x, ptr_passer dx, double t)=0 |
Stores the derivative in dx given the time t and current x. | |
virtual | ~rhs () |
![]() | |
size_t | get_dimension () const |
virtual void | postprocess (input &dat) |
virtual std::vector< std::string > | dependencies () const =0 |
![]() | |
item () | |
virtual | ~item () |
virtual void | print () const |
Standard print function. | |
virtual void | update () |
virtual std::string | type () const =0 |
void | setname (const std::string n) |
void | set_write_name (std::string wname) |
const std::string & | name () const |
const std::string & | write_name () const |
![]() | |
virtual const std::type_info & | vtype () const =0 |
bool | compare (const vartype *in) const |
bool | compare (const vartype &in) const |
bool | compare (const std::type_info &tinf) |
template<typename T > | |
bool | compare () const |
template<typename T > | |
bool | compare (const T &in) const |
std::string | vname () const |
virtual const std::type_info & | vtype_internal () const |
bool | compare_internal (const vartype *in) const |
bool | compare_internal (const vartype &in) const |
bool | compare_internal (const std::type_info &tinf) |
template<typename T > | |
bool | compare_internal () const |
template<typename T > | |
bool | compare_internal (const T &in) const |
std::string | vname_internal () const |
virtual | ~vartype () |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< item > | create (std::string name, engineimp *rval) |
![]() | |
engineimp * | holder |
![]() | |
void | print_upstream () |
virtual void | _do_mem_update (size_t dim_old) |
void | add_as_parent (item_dim *p) |
void | add_as_parent (std::shared_ptr< item_dim > p) |
void | update_dim (size_t dim_new) |
![]() | |
mempool | memp |
std::set< item_dim * > | children |
item_dim * | parent |
size_t | dimension |
The rhs base class.
The RHS class provides the RHS of an equation du/dt = f(u) This is an abstract virtual class that provides a uniform interface to the integrator class. Aside from the standard item functions, derived classes must implement a function dxdt which loads an array with the derivative at a certain time given the time and function value
The array is a void pointer as to allow users to
|
inline |
|
pure virtual |
Stores the derivative in dx given the time t and current x.
Implemented in example_rhs, c_elegans, rhs_CNLS, and rhs_SQGLE.
|
pure virtual |
Initializes the generic initial condition for the problem at hand
Implemented in c_elegans, rhs_type< double, rhs_sde >, and rhs_type< comp >.
|
inline |