openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Types | Public Member Functions | Public Attributes | List of all members
opencarp::Eikonal Class Reference

#include <electrics_eikonal.h>

Inheritance diagram for opencarp::Eikonal:
Collaboration diagram for opencarp::Eikonal:

Public Types

enum  grid_t { intra_grid = 0, extra_grid }
 An electrics grid identifier to distinguish between intra and extra grids. More...
 
enum  linsys_t { elliptic_sys, parabolic_sys }
 
enum  eikonal_t { EIKONAL = 0, REp = 1, REm = 2, DREAM = 3 }
 

Public Member Functions

 Eikonal ()
 Most of the initialization is done with initialize() More...
 
void initialize ()
 Initialize the Eikonal class. More...
 
void destroy ()
 Currently we only need to close the file logger. More...
 
void compute_step ()
 
void output_step ()
 
void output_timings ()
 
 ~Eikonal ()
 
double timer_val (const int timer_id)
 figure out current value of a signal linked to a given timer More...
 
std::string timer_unit (const int timer_id)
 figure out units of a signal linked to a given timer More...
 

Public Attributes

MaterialType mtype [2]
 the material types of intra_grid and extra_grid grids. More...
 
SF::vector< stimulusstimuli
 the electrical stimuli More...
 
sf_vecphie_dummy = nullptr
 no elliptic solver needed, but we need a dummy for phie to use parabolic solver More...
 
Ionics ion
 
parabolic_solver parab_solver
 Solver for the parabolic bidomain equation. More...
 
eikonal_solver eik_solver
 Solver for the eikonal equation. More...
 
eikonal_t eik_tech = EIKONAL
 
LAT_detector lat
 the activation time detector More...
 
gvec_data gvec
 datastruct holding global IMP state variable output More...
 
igb_output_manager output_manager_time
 class handling the igb output More...
 
igb_output_manager output_manager_cycle
 
bool do_output_eikonal = false
 
generic_timing_stats IO_stats
 
- Public Attributes inherited from opencarp::Basic_physic
const char * name = NULL
 The name of the physic, each physic should have one. More...
 
FILE_SPEC logger = NULL
 The logger of the physic, each physic should have one. More...
 
int timer_idx = -1
 the timer index received from the timer manager More...
 
double initialize_time = 0.0
 
double compute_time = 0.0
 
double output_time = 0.0
 

Detailed Description

Definition at line 428 of file electrics_eikonal.h.

Member Enumeration Documentation

◆ eikonal_t

Enumerator
EIKONAL 
REp 
REm 
DREAM 

Definition at line 461 of file electrics_eikonal.h.

◆ grid_t

An electrics grid identifier to distinguish between intra and extra grids.

The indexing of the enum is used to access the MaterialType array.

Enumerator
intra_grid 
extra_grid 

Definition at line 437 of file electrics_eikonal.h.

◆ linsys_t

Enumerator
elliptic_sys 
parabolic_sys 

Definition at line 439 of file electrics_eikonal.h.

Constructor & Destructor Documentation

◆ Eikonal()

opencarp::Eikonal::Eikonal ( )
inline

Most of the initialization is done with initialize()

Definition at line 484 of file electrics_eikonal.h.

◆ ~Eikonal()

opencarp::Eikonal::~Eikonal ( )

Member Function Documentation

◆ compute_step()

void opencarp::Eikonal::compute_step ( )
virtual

Implements opencarp::Basic_physic.

Definition at line 207 of file electrics_eikonal.cc.

◆ destroy()

void opencarp::Eikonal::destroy ( )
virtual

Currently we only need to close the file logger.

Implements opencarp::Basic_physic.

Definition at line 259 of file electrics_eikonal.cc.

◆ initialize()

void opencarp::Eikonal::initialize ( )
virtual

Initialize the Eikonal class.

This could also be a constructor. But it might be better to expicitely call the initialization. This way we can instanciate electrics structs without calling the full setup as well.

Implements opencarp::Basic_physic.

Definition at line 38 of file electrics_eikonal.cc.

◆ output_step()

void opencarp::Eikonal::output_step ( )
virtual

Implements opencarp::Basic_physic.

Definition at line 229 of file electrics_eikonal.cc.

◆ output_timings()

void opencarp::Eikonal::output_timings ( )
inlinevirtual

Reimplemented from opencarp::Basic_physic.

Definition at line 503 of file electrics_eikonal.h.

◆ timer_unit()

std::string opencarp::Eikonal::timer_unit ( const int  timer_id)
virtual

figure out units of a signal linked to a given timer

determine unit of a stimulus

Implements opencarp::Basic_physic.

Definition at line 451 of file electrics_eikonal.cc.

◆ timer_val()

double opencarp::Eikonal::timer_val ( const int  timer_id)
virtual

figure out current value of a signal linked to a given timer

determine current value of a stimulus signal

Implements opencarp::Basic_physic.

Definition at line 436 of file electrics_eikonal.cc.

Member Data Documentation

◆ do_output_eikonal

bool opencarp::Eikonal::do_output_eikonal = false

Definition at line 477 of file electrics_eikonal.h.

◆ eik_solver

eikonal_solver opencarp::Eikonal::eik_solver

Solver for the eikonal equation.

Definition at line 459 of file electrics_eikonal.h.

◆ eik_tech

eikonal_t opencarp::Eikonal::eik_tech = EIKONAL

Definition at line 465 of file electrics_eikonal.h.

◆ gvec

gvec_data opencarp::Eikonal::gvec

datastruct holding global IMP state variable output

Definition at line 471 of file electrics_eikonal.h.

◆ IO_stats

generic_timing_stats opencarp::Eikonal::IO_stats

Definition at line 479 of file electrics_eikonal.h.

◆ ion

Ionics opencarp::Eikonal::ion

The ionics physics is managed as a member of the Electrics. This allows for thighter coupling in the Electrics compute step.

Definition at line 453 of file electrics_eikonal.h.

◆ lat

LAT_detector opencarp::Eikonal::lat

the activation time detector

Definition at line 468 of file electrics_eikonal.h.

◆ mtype

MaterialType opencarp::Eikonal::mtype[2]

the material types of intra_grid and extra_grid grids.

Definition at line 443 of file electrics_eikonal.h.

◆ output_manager_cycle

igb_output_manager opencarp::Eikonal::output_manager_cycle

Definition at line 475 of file electrics_eikonal.h.

◆ output_manager_time

igb_output_manager opencarp::Eikonal::output_manager_time

class handling the igb output

Definition at line 474 of file electrics_eikonal.h.

◆ parab_solver

parabolic_solver opencarp::Eikonal::parab_solver

Solver for the parabolic bidomain equation.

Definition at line 456 of file electrics_eikonal.h.

◆ phie_dummy

sf_vec* opencarp::Eikonal::phie_dummy = nullptr

no elliptic solver needed, but we need a dummy for phie to use parabolic solver

Definition at line 449 of file electrics_eikonal.h.

◆ stimuli

SF::vector<stimulus> opencarp::Eikonal::stimuli

the electrical stimuli

Definition at line 446 of file electrics_eikonal.h.


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