MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DiffPoolVec.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) 2003-2012 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 
10 #ifndef _DIFF_POOL_VEC_H
11 #define _DIFF_POOL_VEC_H
12 
19 {
20  public:
21  DiffPoolVec();
22  void process();
23  void reinit();
24  void advance( double dt );
25  double getNinit( unsigned int vox ) const;
26  void setNinit( unsigned int vox, double value );
27  double getN( unsigned int vox ) const;
28  void setN( unsigned int vox, double value );
29  double getPrev( unsigned int vox ) const;
30 
31  double getDiffConst() const;
32  void setDiffConst( double value );
33 
34  double getMotorConst() const;
35  void setMotorConst( double value );
36 
37  void setNumVoxels( unsigned int num );
38  unsigned int getNumVoxels() const;
39 
40  void setId( unsigned int id );
41  unsigned int getId() const;
42 
45  const vector< double >& getNvec() const;
47  void setNvec( const vector< double >& n );
48  void setNvec( unsigned int start, unsigned int num,
49  vector< double >::const_iterator q );
50  void setPrevVec();
51  void setOps( const vector< Triplet< double > >& ops_,
52  const vector< double >& diagVal_ );
53 
54  // static const Cinfo* initCinfo();
55  private:
56  unsigned int id_;
57  vector< double > n_;
58  vector< double > prev_;
59  vector< double > nInit_;
60  double diffConst_;
61  double motorConst_;
62  vector< Triplet< double > > ops_;
63  vector< double > diagVal_;
64 };
65 
66 #endif // _DIFF_POOL_VEC_H
uint32_t value
Definition: moosemodule.h:42
vector< double > prev_
Number of molecules of pool in each voxel.
Definition: DiffPoolVec.h:58
void setOps(const vector< Triplet< double > > &ops_, const vector< double > &diagVal_)
Assigns prev_ = n_.
const vector< double > & getNvec() const
Used by parent solver to manipulate 'n'.
Definition: DiffPoolVec.cpp:62
void setN(unsigned int vox, double value)
Definition: DiffPoolVec.cpp:50
unsigned int getNumVoxels() const
void process()
unsigned int getId() const
unsigned int id_
Assign operations.
Definition: DiffPoolVec.h:56
void setNvec(const vector< double > &n)
Used by parent solver to manipulate 'n'.
Definition: DiffPoolVec.cpp:67
void advance(double dt)
void setId(unsigned int id)
vector< double > n_
Integer conversion of Id of pool handled.
Definition: DiffPoolVec.h:57
double getDiffConst() const
Definition: DiffPoolVec.cpp:87
double getNinit(unsigned int vox) const
Definition: DiffPoolVec.cpp:32
vector< Triplet< double > > ops_
Motor const, ie, transport rate.
Definition: DiffPoolVec.h:62
void setNinit(unsigned int vox, double value)
Definition: DiffPoolVec.cpp:38
vector< double > diagVal_
Definition: DiffPoolVec.h:63
double diffConst_
Boundary condition: Initial 'n'.
Definition: DiffPoolVec.h:60
void setMotorConst(double value)
double motorConst_
Diffusion const, assumed uniform.
Definition: DiffPoolVec.h:61
void setNumVoxels(unsigned int num)
void setPrevVec()
Definition: DiffPoolVec.cpp:82
double getMotorConst() const
Definition: DiffPoolVec.cpp:97
void setDiffConst(double value)
Definition: DiffPoolVec.cpp:92
vector< double > nInit_
molecules of pool on previous timestep
Definition: DiffPoolVec.h:59
double getN(unsigned int vox) const
Definition: DiffPoolVec.cpp:44
double getPrev(unsigned int vox) const
Definition: DiffPoolVec.cpp:56