std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
float CepsReal
Need single precision floating point.
int32_t CepsInt
Need 32 bit integer.
Represents a ionic model for a group of cells, i.e. multiple systems of ODEs.
A degree of freedom for any kind of problem The dof can be associated to a geometrical element or not...
FunctionDictionary that holds functions which can be used to define source terms, boundary conditions...
Mitchell-Schaeffer ionic model, with modification to keep ionic current bounded.
void setupWithParameters(InputParameters *p, FunctionDictionary *dico)
Sets the constants and the space dependant parameters from text inputs.
MS03Modified(Unknown *u, const CepsSet< CepsAttribute > &attrs={}, InputParameters *params=nullptr)
Constructor (sets constants)
CepsReal m_etaGate
Slope in smooth transition hinfty.
void computeRates(CepsReal t, CepsReal *y, CepsReal *v, CepsReal *dtyL, CepsReal *dtyNL, CepsReal *dtv, DegreeOfFreedom *dof) const final
Get the linear and non linear part of the evolution function f. Also computes the ionic current.
static constexpr const CepsInt _vB
indexing alias
static constexpr const CepsInt _vA
indexing alias
virtual ~MS03Modified()=default
Destructor.
static constexpr const CepsInt _etaGate
indexing alias
Mitchell-Schaeffer ionic model.
static constexpr const CepsInt _h
indexing alias
static constexpr const CepsInt _tauOut
indexing alias
static constexpr const CepsInt _tauIn
indexing alias
CepsReal convertVoltageToCepsUnit(const CepsReal &u) const override
Convert from no unit to mV.
CepsReal convertCmToCepsUnit(const CepsReal &cm) const override
Convert capacitance from ionic model units to ceps units (uF/cm2).
static constexpr const CepsInt _tauOpen
indexing alias
CepsReal m_vMin
lower bound of voltage normalization interval
void computeRates(CepsReal t, CepsReal *y, CepsReal *v, CepsReal *dtyL, CepsReal *dtyNL, CepsReal *dtv, DegreeOfFreedom *dof) const override
Get the linear and non linear part of the evolution function f. Also computes the ionic current.
CepsReal m_hInit
Initial condition for h.
CepsReal m_cellSurface
surface of a cell used for unit scaling. Default is surface of a cylinder (r=10um,...
static constexpr const CepsInt _vGate
indexing alias
virtual ~MS03()=default
Destructor.
CepsReal convertCurrentFromCepsUnit(const CepsReal &i) const override
Convert from uA per cm2 to s-1.
CepsReal m_vInit
Initial condition for v.
void getInitialCondition(CepsReal *v, CepsReal *y) const final
Sets initial values of state variables and transmembrane voltage for a single point....
static constexpr const CepsInt _tauClose
indexing alias
void setupWithParameters(InputParameters *p, FunctionDictionary *dico)
Sets the constants and the space dependant parameters from text inputs.
CepsReal convertDtvToCepsUnit(const CepsReal &i) const override
Convert from s-1 to uA per cm2.
CepsReal convertCmFromCepsUnit(const CepsReal &cm) const override
Convert capacitance from ceps units (uF/cm2) to ionic model units.
CepsReal convertVoltageFromCepsUnit(const CepsReal &u) const override
Convert from mV to no unit.
MS03(Unknown *u, const CepsSet< CepsAttribute > &attrs={}, InputParameters *params=nullptr)
Constructor (sets constants)
CepsReal m_vMax
upper bound of voltage normalization interval
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...