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

#include <stimulate.h>

Collaboration diagram for opencarp::stimulus:

Public Member Functions

void setup (int idx)
 Setup from a param stimulus index. More...
 
void translate (int id)
 convert legacy definitions to new format More...
 
bool value (double &v) const
 Get the current value if the stimulus is active. More...
 
void dump_vtx_file (int idx)
 Export the vertices to vtx file. More...
 
bool is_active () const
 Return whether stim is active. More...
 

Public Attributes

int idx = -1
 index in global input stimulus array More...
 
std::string name = "unnamed"
 label stimulus More...
 
stim_pulse pulse
 stimulus wave form More...
 
stim_protocol ptcl
 applied stimulation protocol used More...
 
stim_physics phys
 physics of stimulus More...
 
stim_electrode electrode
 electrode geometry More...
 
mesh_t associated_intra_mesh = intra_elec_msh
 
mesh_t associated_extra_mesh = extra_elec_msh
 

Detailed Description

Definition at line 147 of file stimulate.h.

Member Function Documentation

◆ dump_vtx_file()

void opencarp::stimulus::dump_vtx_file ( int  idx)

Export the vertices to vtx file.

Definition at line 457 of file stimulate.cc.

Here is the call graph for this function:

◆ is_active()

bool opencarp::stimulus::is_active ( ) const

Return whether stim is active.

Definition at line 185 of file stimulate.cc.

Here is the call graph for this function:

◆ setup()

void opencarp::stimulus::setup ( int  iidx)

Setup from a param stimulus index.

Parameters
idThe index of the stimulus used for setup.
iidx

Definition at line 153 of file stimulate.cc.

Here is the call graph for this function:

◆ translate()

void opencarp::stimulus::translate ( int  id)

convert legacy definitions to new format

map old stimulus definition to new structured definition

Definition at line 92 of file stimulate.cc.

◆ value()

bool opencarp::stimulus::value ( double &  v) const

Get the current value if the stimulus is active.

Parameters
[out]vThe current stimulus value.
Returns
True if the stimulus is active, false otherwise.

Definition at line 434 of file stimulate.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ associated_extra_mesh

mesh_t opencarp::stimulus::associated_extra_mesh = extra_elec_msh

Definition at line 161 of file stimulate.h.

◆ associated_intra_mesh

mesh_t opencarp::stimulus::associated_intra_mesh = intra_elec_msh

Definition at line 160 of file stimulate.h.

◆ electrode

stim_electrode opencarp::stimulus::electrode

electrode geometry

Definition at line 156 of file stimulate.h.

◆ idx

int opencarp::stimulus::idx = -1

index in global input stimulus array

Definition at line 150 of file stimulate.h.

◆ name

std::string opencarp::stimulus::name = "unnamed"

label stimulus

Definition at line 151 of file stimulate.h.

◆ phys

stim_physics opencarp::stimulus::phys

physics of stimulus

Definition at line 155 of file stimulate.h.

◆ ptcl

stim_protocol opencarp::stimulus::ptcl

applied stimulation protocol used

Definition at line 154 of file stimulate.h.

◆ pulse

stim_pulse opencarp::stimulus::pulse

stimulus wave form

Definition at line 153 of file stimulate.h.


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