MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MgBlock.h
Go to the documentation of this file.
1 #ifndef _Mg_block_h
2 #define _Mg_block_h
3 /**********************************************************************
4 ** This program is part of 'MOOSE', the
5 ** Messaging Object Oriented Simulation Environment,
6 ** also known as GENESIS 3 base code.
7 ** copyright (C) 2003-2005 Upinder S. Bhalla. and NCBS
8 ** It is made available under the terms of the
9 ** GNU Lesser General Public License version 2.1
10 ** See the file COPYING.LIB for the full notice.
11 *********************************************************************
12 */
13 
14 //typedef double ( *PFDD )( double, double );
15 
16 class MgBlock: public ChanCommon
17 {
18  public:
19  MgBlock();
20 
22  // Value field access function definitions
24 
25  void setKMg_A( double Gbar );
26  double getKMg_A() const;
27  void setKMg_B( double Ek );
28  double getKMg_B() const;
29  void setCMg( double CMg );
30  double getCMg() const;
31  void setZk( double Zk );
32  double getZk() const;
34  // Dest function definitions
36 
49  void vProcess( const Eref& e, ProcPtr p );
50 
58  void vReinit( const Eref& e, ProcPtr p );
59 
63 // void channelFunc( double Vm );
64  void origChannel( const Eref& e, double Gk, double Ek );
65 
66  static const Cinfo* initCinfo();
67  private:
69  double Zk_;
71  double KMg_A_;
73  double KMg_B_;
75  double CMg_;
80  double origGk_;
81 };
82 
83 
84 #endif // _Mg_block_h
double Zk_
charge
Definition: MgBlock.h:69
void vProcess(const Eref &e, ProcPtr p)
Definition: MgBlock.cpp:150
double CMg_
[Mg] in mM
Definition: MgBlock.h:75
void setKMg_B(double Ek)
Definition: MgBlock.cpp:113
void origChannel(const Eref &e, double Gk, double Ek)
Definition: MgBlock.cpp:178
MgBlock()
Definition: MgBlock.cpp:89
double origGk_
Definition: MgBlock.h:80
double getKMg_B() const
Definition: MgBlock.cpp:121
double KMg_A_
1/eta
Definition: MgBlock.h:71
double getKMg_A() const
Definition: MgBlock.cpp:109
double getCMg() const
Definition: MgBlock.cpp:133
Definition: Eref.h:26
void vReinit(const Eref &e, ProcPtr p)
Definition: MgBlock.cpp:163
void setCMg(double CMg)
Definition: MgBlock.cpp:125
void setKMg_A(double Gbar)
Definition: MgBlock.cpp:101
double getZk() const
Definition: MgBlock.cpp:137
void setZk(double Zk)
Definition: MgBlock.cpp:141
double KMg_B_
1/gamma
Definition: MgBlock.h:73
Definition: Cinfo.h:18
static const Cinfo * initCinfo()
Definition: MgBlock.cpp:17