MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ConcChan.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2018 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Public License version 3 or later.
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 #ifndef _CONC_CHAN_H
11 #define _CONC_CHAN_H
12 
13 class ConcChan
14 {
15  public:
16  ConcChan();
17  ~ConcChan();
18 
19 
21  // Field assignment stuff
23 
24  void setPermeability( double v );
25  double getPermeability() const;
26  void setNumChan( double v );
27  double getNumChan() const;
28  double getFlux() const;
29 
31  // Dest funcs
33 
34  void process( const Eref& e, ProcPtr p );
35  void reinit( const Eref& e, ProcPtr p );
36  void inPool( double conc );
37  void outPool( double conc );
39  // Utility function
41  double flux( double inConc, double outConc, double dt );
42 
43  static const Cinfo* initCinfo();
44  protected:
45  double permeability_;
46  double n_;
47  double flux_;
48  double charge_;
49  double Vm_;
50 };
51 
52 #endif // CONC_CHAN_H
double charge_
Flux of molecule through channel.
Definition: ConcChan.h:48
double Vm_
Later: for including Nernst calculations.
Definition: ConcChan.h:49
double getFlux() const
Definition: ConcChan.cpp:193
void inPool(double conc)
Definition: ConcChan.cpp:161
double getPermeability() const
Definition: ConcChan.cpp:178
void setNumChan(double v)
Definition: ConcChan.cpp:183
double flux(double inConc, double outConc, double dt)
Definition: ConcChan.cpp:201
void outPool(double conc)
Definition: ConcChan.cpp:165
double flux_
Number of molecules of channel.
Definition: ConcChan.h:47
Definition: Eref.h:26
void process(const Eref &e, ProcPtr p)
Definition: ConcChan.cpp:153
void setPermeability(double v)
Definition: ConcChan.cpp:173
double permeability_
Definition: ConcChan.h:45
static const Cinfo * initCinfo()
Definition: ConcChan.cpp:29
void reinit(const Eref &e, ProcPtr p)
Definition: ConcChan.cpp:157
Definition: Cinfo.h:18
double n_
permeability in vol/(#.s) units.
Definition: ConcChan.h:46
double getNumChan() const
Definition: ConcChan.cpp:188