MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZombieBufPool.cpp
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) 2003-2010 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 #include "header.h"
10 #include "PoolBase.h"
11 #include "VoxelPoolsBase.h"
12 #include "../mesh/VoxelJunction.h"
13 #include "XferInfo.h"
14 #include "ZombiePoolInterface.h"
15 #include "ZombiePool.h"
16 #include "ZombieBufPool.h"
17 #include "lookupVolumeFromMesh.h"
18 
19 // Entirely derived from ZombiePool. Only the zombification routines differ.
21 {
23  // Field Definitions: use virtual functions to deal with, the
24  // moose definitions are inherited.
26  static Dinfo< ZombieBufPool > dinfo( true );
27  static Cinfo zombieBufPoolCinfo (
28  "ZombieBufPool",
30  0,
31  0,
32  &dinfo
33  );
34 
35  return &zombieBufPoolCinfo;
36 }
37 
39 // Class definitions
42 
44 {;}
45 
47 {;}
48 
50 // Field functions
52 
53 void ZombieBufPool::vSetN( const Eref& e, double v )
54 {
55  ZombiePool::vSetN( e, v );
56  ZombiePool::vSetNinit( e, v );
57 }
58 
59 void ZombieBufPool::vSetNinit( const Eref& e, double v )
60 {
61  vSetN( e, v );
62 }
63 
64 void ZombieBufPool::vSetConc( const Eref& e, double conc )
65 {
66  double n = NA * conc * lookupVolumeFromMesh( e );
67  vSetN( e, n );
68 }
69 
70 void ZombieBufPool::vSetConcInit( const Eref& e, double conc )
71 {
72  vSetConc( e, conc );
73 }
74 
75 bool ZombieBufPool::vGetIsBuffered( const Eref& e ) const
76 {
77  return true;
78 }
bool vGetIsBuffered(const Eref &e) const
const double NA
Definition: consts.cpp:15
static const Cinfo * initCinfo()
Definition: ZombiePool.cpp:21
Definition: Dinfo.h:60
void vSetN(const Eref &e, double v)
The 'get' functions are simply inherited from ZombiePool.
static const Cinfo * initCinfo()
void vSetNinit(const Eref &e, double v)
Definition: ZombiePool.cpp:94
static const Cinfo * zombieBufPoolCinfo
void vSetConcInit(const Eref &e, double v)
void vSetConc(const Eref &e, double v)
Definition: Eref.h:26
void vSetNinit(const Eref &e, double v)
void vSetN(const Eref &e, double v)
Definition: ZombiePool.cpp:76
Definition: Cinfo.h:18
double lookupVolumeFromMesh(const Eref &e)