base class for Differential Algebraic Equations systems solvers More...

#include <numeric_DAE.h>

Inheritance diagram for DaeInterface:

Public Member Functions

 DaeInterface (int n, double tstart, const std::vector< double > &x, const std::vector< double > &xdot)
 
virtual void do_integrate (double t)=0
 perform the integration up to time More...
 
virtual gmm::dense_matrix< double > do_integrate (const std::vector< double > &tout)=0
 perform the integration in tout.size() steps up to tout[i] More...
 
const std::vector< double > & get_state_derivative (void) const
 return a read-only reference to the vector of the derivatives of the unknowns More...
 
double & setStateDerivative (int i)
 return a reference to j-th value of the vector of derivatives of the unknowns More...
 
- Public Member Functions inherited from DeInterface
 DeInterface (int n, double tstart, const std::vector< double > &x)
 
virtual ~DeInterface ()
 
int size (void) const
 
const std::vector< double > & get_state (void) const
 return a read-only reference to the vector of unknowns More...
 
double & setState (int i)
 return a reference to j-th value of the vector of unknowns More...
 
double time (void) const
 
virtual void do_integrate (double time)=0
 perform the integration up to time More...
 
virtual gmm::dense_matrix< double > do_integrate (const std::vector< double > &times)=0
 perform the integration in tout.size() steps up to tout[i] More...
 

Protected Member Functions

 ~DaeInterface ()
 

Protected Attributes

std::vector< double > xdot_
 time derivatives of unknowns More...
 
- Protected Attributes inherited from DeInterface
int n_
 number of functions and of unknowns More...
 
std::vector< double > x_
 unknowns More...
 
double t0_
 Integration start time. More...
 
double t_
 current time More...
 

Additional Inherited Members

- Public Attributes inherited from DeInterface
int NITER
 
int verbosityLocal
 local verbosity level More...
 

Detailed Description

base class for Differential Algebraic Equations systems solvers

#include <libpf/core/numeric_DAE.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

◆ DaeInterface()

DaeInterface::DaeInterface ( int  n,
double  tstart,
const std::vector< double > &  x,
const std::vector< double > &  xdot 
)

◆ ~DaeInterface()

DaeInterface::~DaeInterface ( )
inlineprotected

Member Function Documentation

◆ do_integrate() [1/2]

virtual gmm::dense_matrix< double > DaeInterface::do_integrate ( const std::vector< double > &  times)
pure virtual

perform the integration in tout.size() steps up to tout[i]

Implements DeInterface.

Implemented in SolverDaeIda.

◆ do_integrate() [2/2]

virtual void DaeInterface::do_integrate ( double  time)
pure virtual

perform the integration up to time

Implements DeInterface.

Implemented in SolverDaeIda.

◆ get_state_derivative()

const std::vector< double > & DaeInterface::get_state_derivative ( void  ) const
inline

return a read-only reference to the vector of the derivatives of the unknowns

◆ setStateDerivative()

double & DaeInterface::setStateDerivative ( int  i)
inline

return a reference to j-th value of the vector of derivatives of the unknowns

Member Data Documentation

◆ xdot_

std::vector<double> DaeInterface::xdot_
protected

time derivatives of unknowns


The documentation for this class was generated from the following file: