Modigliani  2.0
A stochastic simulator for axons, neurons, and networks
Public Member Functions | List of all members
modigliani_core::Lua_based_deterministic_voltage_gated_channel Class Reference

This class reads a lua script and interpret it to simualte a population of ion channels deterministically. More...

+ Inheritance diagram for modigliani_core::Lua_based_deterministic_voltage_gated_channel:

Public Member Functions

 Lua_based_deterministic_voltage_gated_channel (modigliani_base::Real newArea, modigliani_base::Real newDensity, modigliani_base::Real newConductivity, modigliani_base::Real newReversalPotential, modigliani_base::Real newTimeStep, modigliani_base::Real newTemperature, std::string new_lua_script)
 Reads the lua script and constructs a new ion channel current object. More...
virtual modigliani_base::ReturnEnum StepCurrent () override
 Runs one step of simulation. More...
virtual modigliani_base::Real OpenChannels () const
 Returns number of open ionic channels. More...
virtual modigliani_base::Real ComputeConductance () override
 Computes and returns conductance. More...
- Public Member Functions inherited from modigliani_core::Voltage_gated_ion_channel_current
 Voltage_gated_ion_channel_current (modigliani_base::Real reversalPotential, modigliani_base::Real density, modigliani_base::Real area, modigliani_base::Real conductivity)
 Constructor. More...
modigliani_base::Real density () const
 Returns channel density. More...
modigliani_base::Real area () const
 Returns membrane surface area. More...
modigliani_base::Real conductivity () const
 Returns conductivity per channel. More...
modigliani_base::Real MaxConductivity () const
 Conductivity if all channels open. More...
void UpdateNumChannels ()
 Sets the number of channels to agree with the membrane area and the density of channels.
modigliani_base::Real num_channels () const
 Returns number of ionic channels. More...
modigliani_base::Real OpenChannelsRatio () const
 Returns ratio of open channels over total number of channels. More...
- Public Member Functions inherited from modigliani_core::Membrane_current
 Membrane_current (modigliani_base::Real reversalPotential)
 Constructs a current. More...
modigliani_base::Real conductance () const
 Returns momentary conductance. More...
void set_reversal_potential (modigliani_base::Real eRev)
 Sets the reversal potential. More...
modigliani_base::Real reversal_potential () const
 Returns the reversal potential. More...
modigliani_base::Real temperature () const
 Returns the temperature. More...
modigliani_base::ReturnEnum set_temperature (modigliani_base::Real newTemp)
 Sets the temperature. More...
modigliani_base::Real q10 () const
 Returns the Q10 factor. More...
virtual modigliani_base::ReturnEnum set_q10 (modigliani_base::Real newQ10)
 Sets the Q10 factor. More...
enum StochasticType simulation_mode () const
 Returns the simulation mode. More...
virtual void set_simulation_mode (enum StochasticType newMode)
 Sets simulation mode. More...
void set_voltage (modigliani_base::Real newVoltage)
 Sets the membrane potential. More...
modigliani_base::ReturnEnum Step (modigliani_base::Real newVm)
 Runs one step of the simulation, updates the conductance and the current flowing through. More...
modigliani_base::Real ComputeCurrent (modigliani_base::Real vM)
 Computes, sets and returns the current going through. More...
virtual modigliani_base::Real ComputeTimeConstant ()
 Computes and returns the rate constants. More...
modigliani_base::Real current () const
 Returns the current. More...
- Public Member Functions inherited from modigliani_core::Object
modigliani_base::Real timestep () const
 Returns simulation timestep. More...
void set_timestep (modigliani_base::Real newTimeStep)
 Sets simulation timestep. More...

Additional Inherited Members

- Protected Member Functions inherited from modigliani_core::Membrane_current
modigliani_base::Real set_current (modigliani_base::Real newVal)
 Sets the current. More...
modigliani_base::Real set_conductance (modigliani_base::Real newVal)
 Sets the conductance. More...
- Protected Attributes inherited from modigliani_core::Membrane_current
modigliani_base::Real voltage_
 Membrane potential in [ $\si{\milli\volt}$].
modigliani_base::Real temperature_
 Temperature in [ $\si{\celsius}$].

Detailed Description

This class reads a lua script and interpret it to simualte a population of ion channels deterministically.

Constructor & Destructor Documentation

modigliani_core::Lua_based_deterministic_voltage_gated_channel::Lua_based_deterministic_voltage_gated_channel ( modigliani_base::Real  newArea,
modigliani_base::Real  newDensity,
modigliani_base::Real  newConductivity,
modigliani_base::Real  newReversalPotential,
modigliani_base::Real  newTimeStep,
modigliani_base::Real  newTemperature,
std::string  new_lua_script 

Reads the lua script and constructs a new ion channel current object.

newAreaMembrane surface area in [ $\si{\micro\meter\squared}$]
newDensityChannel density in [ $\si{\per\micro\meter\squared}$]
newConductivitySingle channel conductance in [ $\si{\milli\siemens}$]
newReversalPotentialCurrent reversal potential in [ $\si{\milli\volt}$]
newTimeStepSimulation timestep in [ $\si{\milli\second}$]
newTemperatureSimulation temperature in [ $\si{\celsius}$]
new_lua_scriptLua script

The lua script must define the following variables :

  • float step

The lua script must define the following functions :

  • set_timestep(double)
  • set_temp(double)
  • step_current(double)
  • double open_channels()
  • double compute_conductance()

See SGA_sodium.lua for an example of such a lua script.

Member Function Documentation

modigliani_base::Real modigliani_core::Lua_based_deterministic_voltage_gated_channel::ComputeConductance ( )

Computes and returns conductance.

Conductance in [ $\si{\milli\siemens}$]

Implements modigliani_core::Membrane_current.

modigliani_base::Real modigliani_core::Lua_based_deterministic_voltage_gated_channel::OpenChannels ( ) const

Returns number of open ionic channels.

Number of open channels

Implements modigliani_core::Voltage_gated_ion_channel_current.

modigliani_base::ReturnEnum modigliani_core::Lua_based_deterministic_voltage_gated_channel::StepCurrent ( )

Runs one step of simulation.

Success or failure

Implements modigliani_core::Membrane_current.

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