:Calcium activated Cl- channels
:Xiaodong Liu, 2004-02-10 
NEURON 
{
	SUFFIX Clca
		
	USEION Ca READ Cai VALENCE 2
	
	USEION Cl WRITE iCl  VALENCE 1
	
	RANGE gClbar, eCl, Clh
	
}

UNITS
{
	(mA) = (milliamp)
	(mV) = (millivolt)
	(mS) = (millimho)
	(mol)= (1)
	(M)  = (mol/liter)
	(uM) = (micro M)
}

PARAMETER
{
       : Cl channel	
       eCl= -20  (mV)
       gClbar = 1.3 (mS/cm2) <0,1e9>
       
       Clh = 1.5 (uM )
       Cai   (mM)
       

}

STATE
{
	mCl
	
}

ASSIGNED
{
	v (mV)
	iCl (mA/cm2)
	:mCl
	: the paremeter for activation
        gCl (mho/cm2)

}

INITIAL
{
		
	
}




BREAKPOINT
{       LOCAL Cas
 
	Cas=Cai*1000  	
	mCl = 1/(  1+(Clh/Cas)^4 ) 
	gCl = (0.001)* gClbar * mCl
	iCl = gCl*(v-eCl)   
		
	: the current is in the unit of mA/cm2
}