Membrane model

Note

This documentation is work in progress. Currently, the extension of Documenter.jl in my package MoST.jl is still experimental. As the package evolves further, this documentation will increase in readability.

InaMo.Membrane.LipidBilayer

Model for the lipid bilayer that acts as a capacitor and temperature source.

By convention, membrane current is defined as positive outward current, i.e. the positive pin of this component represents the extracellular potential and the negative pin of this component represents the intracellular potential.

model LipidBilayer "lipid bilayer separating external and internal potential (i.e. acting as a capacitor)"
  extends InaMo.Currents.Interfaces.OnePortVertical;
  extends InaMo.Icons.InsideBottomOutsideTop;
  extends InaMo.Icons.LipidBilayer;
  parameter SI.Capacitance c = 0.01 "membrane capacitance";
  parameter SI.ElectricPotential v_init = -0.09 "initial potential (from short initial stimulation)";
  parameter Boolean use_init = true "determines whether initial value for v is used";
initial equation
  if use_init then
    v = v_init;
  end if;
equation
  der(v) = p.i / c;
  annotation(
    Documentation(info = "<html>
    <p>Model for the lipid bilayer that acts as a capacitor and temperature source.</p>
    <p>By convention, membrane current is defined as positive outward current,
    i.e. the positive pin of this component represents the extracellular
    potential and the negative pin of this component represents the
    intracellular potential.</p>
  </html>"));
end LipidBilayer;