MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MMPump Class Reference

#include <MMPump.h>

+ Collaboration diagram for MMPump:

Public Member Functions

double getKd (const Eref &e) const
 
int getVal (const Eref &e) const
 
double getVmax (const Eref &e) const
 
 MMPump ()
 
void process (const Eref &e, ProcPtr p)
 
void reinit (const Eref &e, ProcPtr p)
 
void setKd (const Eref &e, double value)
 
void setVal (const Eref &e, int value)
 
void setVmax (const Eref &e, double value)
 

Static Public Member Functions

static const CinfoinitCinfo ()
 
static SrcFinfo2< double,
double > * 
PumpOut ()
 

Private Attributes

double Kd_
 
double Vmax_
 

Detailed Description

Definition at line 14 of file MMPump.h.

Constructor & Destructor Documentation

MMPump::MMPump ( )

Definition at line 98 of file MMPump.cpp.

99 { ; }

Member Function Documentation

double MMPump::getKd ( const Eref e) const

Definition at line 119 of file MMPump.cpp.

References Kd_.

Referenced by initCinfo().

120 {
121  return Kd_;
122 }
double Kd_
Definition: MMPump.h:39

+ Here is the caller graph for this function:

int MMPump::getVal ( const Eref e) const
double MMPump::getVmax ( const Eref e) const

Definition at line 104 of file MMPump.cpp.

References Vmax_.

Referenced by initCinfo().

105 {
106 
107  return Vmax_;
108 }
double Vmax_
Definition: MMPump.h:38

+ Here is the caller graph for this function:

const Cinfo * MMPump::initCinfo ( )
static

Definition at line 14 of file MMPump.cpp.

References getKd(), getVmax(), Neutral::initCinfo(), process(), PumpOut(), reinit(), setKd(), and setVmax().

15 {
16  static DestFinfo process( "process",
17  "Handles process call",
19  static DestFinfo reinit( "reinit",
20  "Reinit happens only in stage 0",
22 
23  static Finfo* processShared[] = {
24  &process, &reinit
25  };
26 
27  static SharedFinfo proc(
28  "proc",
29  "Shared message to receive Process message from scheduler",
30  processShared, sizeof( processShared ) / sizeof( Finfo* ));
31 
32 
34  // Field defs
36 
37 
38 
39  static ElementValueFinfo<MMPump, double> Vmax("Vmax",
40  "maximum pump velocity, scaled by mebrane"
41  "surface area. i.e., max ion flux in moles/sec",
44 
45  static ElementValueFinfo<MMPump, double> Kd("Kd",
46  "half-maximal activating concentration in mM",
48  &MMPump::getKd);
49 
51  // DestFinfo
53  static Finfo * difMMPumpFinfos[] = {
55  // Field definitions
57 
58 
59  &Vmax,
60  &Kd,
62  // SharedFinfo definitions
64 
65  &proc,
66  PumpOut(),
68  // DestFinfo definitions
70 
71  };
72 
73  static string doc[] = {
74  "Name", "MMPump",
75  "Author", "Subhasis Ray (ported from GENESIS2)",
76  "Description", "Models Michaelis-Menten pump. It is coupled with a DifShell.",
77  };
78  static ZeroSizeDinfo<int> dinfo;
79  static Cinfo MMPumpCinfo(
80  "MMPump",
82  difMMPumpFinfos,
83  sizeof(difMMPumpFinfos)/sizeof(Finfo*),
84  &dinfo,
85  doc,
86  sizeof(doc)/sizeof(string));
87 
88  return &MMPumpCinfo;
89 }
void setVmax(const Eref &e, double value)
Definition: MMPump.cpp:109
void process(const Eref &e, ProcPtr p)
Definition: MMPump.cpp:133
double getKd(const Eref &e) const
Definition: MMPump.cpp:119
double getVmax(const Eref &e) const
Definition: MMPump.cpp:104
void reinit(const Eref &e, ProcPtr p)
Definition: MMPump.cpp:138
void setKd(const Eref &e, double value)
Definition: MMPump.cpp:123
static SrcFinfo2< double, double > * PumpOut()
Definition: MMPump.cpp:7
static const Cinfo * initCinfo()
Definition: Neutral.cpp:16
Definition: Cinfo.h:18
Definition: Finfo.h:12

+ Here is the call graph for this function:

void MMPump::process ( const Eref e,
ProcPtr  p 
)

Definition at line 133 of file MMPump.cpp.

References Kd_, PumpOut(), and Vmax_.

Referenced by initCinfo().

134 {
135  PumpOut()->send(e,Vmax_,Kd_);
136 }
double Kd_
Definition: MMPump.h:39
double Vmax_
Definition: MMPump.h:38
static SrcFinfo2< double, double > * PumpOut()
Definition: MMPump.cpp:7

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SrcFinfo2< double, double > * MMPump::PumpOut ( )
static

Definition at line 7 of file MMPump.cpp.

Referenced by initCinfo(), and process().

8 {
9  static SrcFinfo2< double,double > pumpOut( "PumpOut",
10  "Sends out MMPump parameters.");
11  return &pumpOut;
12 }

+ Here is the caller graph for this function:

void MMPump::reinit ( const Eref e,
ProcPtr  p 
)

Definition at line 138 of file MMPump.cpp.

Referenced by initCinfo().

139 {
140  return;
141 }

+ Here is the caller graph for this function:

void MMPump::setKd ( const Eref e,
double  value 
)

Definition at line 123 of file MMPump.cpp.

References Kd_, and value.

Referenced by initCinfo().

124 {
125 if ( value < 0.0 ) {
126  cerr << "Error: MMPump: Kd cannot be negative!\n";
127  return;
128  }
129  Kd_ = value;
130 }
uint32_t value
Definition: moosemodule.h:42
double Kd_
Definition: MMPump.h:39

+ Here is the caller graph for this function:

void MMPump::setVal ( const Eref e,
int  value 
)
void MMPump::setVmax ( const Eref e,
double  value 
)

Definition at line 109 of file MMPump.cpp.

References value, and Vmax_.

Referenced by initCinfo().

110 {
111 if ( value < 0.0 ) {
112  cerr << "Error: MMPump: Vmax cannot be negative!\n";
113  return;
114  }
115  Vmax_ = value;
116 }
uint32_t value
Definition: moosemodule.h:42
double Vmax_
Definition: MMPump.h:38

+ Here is the caller graph for this function:

Member Data Documentation

double MMPump::Kd_
private

Definition at line 39 of file MMPump.h.

Referenced by getKd(), process(), and setKd().

double MMPump::Vmax_
private

Definition at line 38 of file MMPump.h.

Referenced by getVmax(), process(), and setVmax().


The documentation for this class was generated from the following files: