def model JCli as def import using "../cellLib/Components/units.cellml" for unit C_per_mmol using unit C_per_mmol; unit J_per_K_mol using unit J_per_K_mol; unit mM using unit mM; unit mV using unit mV; unit uM_per_s using unit uM_per_s; unit uM_per_s_mV using unit uM_per_s_mV; enddef; def import using "../cellLib/Components/E_Nernst.cellml" for comp E_Cl using comp E_Cl; enddef; def comp JCli as var R: J_per_K_mol {pub: in, priv: out}; var F: C_per_mmol {pub: in, priv: out}; var T: kelvin {pub: in, priv: out}; var G_Cl: uM_per_s_mV {pub: in}; var v_Cl: mV {pub: out, priv: in}; var Clo: mM {pub: in, priv: out}; var Cli: mM {pub: in, priv: out}; var v_i: mV {pub: in}; var J_Cli: uM_per_s {pub: out}; J_Cli=G_Cl*(v_i-v_Cl); enddef; def group as encapsulation for comp JCli incl comp E_Cl; endcomp; enddef; def map between E_Cl and JCli for vars E_Cl and v_Cl; vars R and R; vars F and F; vars T and T; vars Cli and Cli; vars Clo and Clo; enddef; enddef;