CEPS  24.01
Cardiac ElectroPhysiology Simulator
TimeIntegrator Class Reference

Detailed Description

A class that computes the integral over time of a pointed scalar. The integral is computed each time the update() method is called. Time step has to be constant. NewtonCotes methods of order 1,2,3,4,6,7,8,9,10 are implemented.

Definition at line 39 of file TimeIntegrator.hpp.

#include <TimeIntegrator.hpp>

Public Member Functions

 TimeIntegrator (CepsReal *f, CepsReal timeStep, CepsUInt degree)
 Constructor. More...
 
 TimeIntegrator (const TimeIntegrator &)=default
 Copy constructor. More...
 
 ~TimeIntegrator ()
 Destructor. More...
 
void update ()
 Progress in the computation of the sum. More...
 
CepsReal get () const
 Current result. More...
 

Protected Attributes

CepsRealm_f
 Pointed scalar. More...
 
CepsVector< CepsRealm_current
 Values of f at previous time steps. More...
 
CepsVector< CepsVector< CepsReal > > m_w
 Integration weights. More...
 
CepsUInt m_s
 size More...
 
CepsUInt m_pos
 Where to put coeff in current. More...
 
CepsReal m_total
 The integral to be corrected in get() More...
 
CepsReal m_dt
 Time stepi. More...
 

Constructor & Destructor Documentation

◆ TimeIntegrator() [1/2]

TimeIntegrator::TimeIntegrator ( CepsReal f,
CepsReal  timeStep,
CepsUInt  degree 
)

Constructor.

Definition at line 35 of file TimeIntegrator.cpp.

◆ TimeIntegrator() [2/2]

TimeIntegrator::TimeIntegrator ( const TimeIntegrator )
default

Copy constructor.

◆ ~TimeIntegrator()

TimeIntegrator::~TimeIntegrator ( )

Destructor.

Definition at line 65 of file TimeIntegrator.cpp.

Member Function Documentation

◆ get()

CepsReal TimeIntegrator::get ( ) const

Current result.

Definition at line 98 of file TimeIntegrator.cpp.

◆ update()

void TimeIntegrator::update ( )

Progress in the computation of the sum.

Definition at line 70 of file TimeIntegrator.cpp.

Field Documentation

◆ m_current

CepsVector<CepsReal> TimeIntegrator::m_current
protected

Values of f at previous time steps.

Definition at line 65 of file TimeIntegrator.hpp.

◆ m_dt

CepsReal TimeIntegrator::m_dt
protected

Time stepi.

Definition at line 70 of file TimeIntegrator.hpp.

◆ m_f

CepsReal* TimeIntegrator::m_f
protected

Pointed scalar.

Definition at line 64 of file TimeIntegrator.hpp.

◆ m_pos

CepsUInt TimeIntegrator::m_pos
protected

Where to put coeff in current.

Definition at line 68 of file TimeIntegrator.hpp.

◆ m_s

CepsUInt TimeIntegrator::m_s
protected

size

Definition at line 67 of file TimeIntegrator.hpp.

◆ m_total

CepsReal TimeIntegrator::m_total
protected

The integral to be corrected in get()

Definition at line 69 of file TimeIntegrator.hpp.

◆ m_w

CepsVector<CepsVector<CepsReal> > TimeIntegrator::m_w
protected

Integration weights.

Definition at line 66 of file TimeIntegrator.hpp.


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