#
# MorrisLecar.py
#
# PyDSTool Python file for the vector field named: MorrisLecar
#
# This file was generated by the program VFGEN (Version:2.4.0)
# Generated on 10-Jul-2008 at 17:43
#

import PyDSTool

#
# args()
#
# This function creates a PyDSTool 'args' object for the
# 'MorrisLecar' vector field.
#

def args():
    """
    This function creates a PyDSTool 'args' object for the
    'MorrisLecar' vector field.
    """
    DSargs = PyDSTool.args()
    DSargs.name = 'MorrisLecar'
    DSargs.pars = {'gca':5.5000000000000000e+00, 'gk':8.0000000000000000e+00, 'gl':2.0000000000000000e+00, 'vca':1.1500000000000000e+02, 'vk':-8.4000000000000000e+01, 'vl':-5.5000000000000000e+01, 'c':2.0000000000000000e+01, 'phi':2.2000000000000000e-01, 'ic':9.0000000000000000e+01, 'v1':-1.2000000000000000e+00, 'v2':1.8000000000000000e+01, 'v3':2.0000000000000000e+00, 'v4':3.0000000000000000e+01}
    DSargs.varspecs = {'v':'-(1.0/2.0)*1.0/c*( 2.0*w*( v-vk)*gk+2.0*gl*( v-vl)-gca*( tanh(-( v1-v)/v2)+1.0)*( vca-v)+-2.0*ic)', 'w':'-(1.0/2.0)*cosh(-(1.0/2.0)*( v3-v)/v4)*( 2.0*w-tanh(-( v3-v)/v4)-1.0)*phi'}
    DSargs.fnspecs = {'Jacobian': (['t', 'v', 'w'],
            """[[-(1.0/2.0)*1.0/c*( 2.0*gl+2.0*w*gk+gca*( tanh(-( v1-v)/v2)+1.0)+gca*( vca-v)*( pow(tanh(-( v1-v)/v2),2.0)-1.0)/v2), -1.0/c*( v-vk)*gk],
                [-( pow(tanh(-( v3-v)/v4),2.0)-1.0)/v4*cosh(-(1.0/2.0)*( v3-v)/v4)*phi/2.0-sinh(-(1.0/2.0)*( v3-v)/v4)/v4*( 2.0*w-tanh(-( v3-v)/v4)-1.0)*phi/4.0, -cosh(-(1.0/2.0)*( v3-v)/v4)*phi]]""")}
    DSargs.ics = {'v':0.0, 'w':0.0}
    DSargs.tdomain = [0,10]
    return DSargs
