MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CplxEnzBase.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-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 
10 #ifndef _CPLX_ENZ_BASE_H
11 #define _CPLX_ENZ_BASE_H
12 
18 class CplxEnzBase: public EnzBase
19 {
20  public:
21  CplxEnzBase();
22  virtual ~CplxEnzBase();
23 
25  // Field assignment stuff
27  void setK1( const Eref& e, double v );
28  double getK1( const Eref& e ) const;
29  void setK2( const Eref& e, double v );
30  double getK2( const Eref& e ) const;
31  //void setK3( const Eref& e, double v );
32  //double getK3( const Eref& e ) const;
33  void setRatio( const Eref& e, double v );
34  double getRatio( const Eref& e ) const;
35  void setConcK1( const Eref& e, double v );
36  double getConcK1( const Eref& e ) const;
37 
39  // Virtual field stuff to use as base class for Enz and ZombieEnz.
41  virtual void vSetK1( const Eref& e, double v ) = 0;
42  virtual double vGetK1( const Eref& e ) const = 0;
43  virtual void vSetK2( const Eref& e, double v ) = 0;
44  virtual double vGetK2( const Eref& e ) const = 0;
45  virtual void vSetRatio( const Eref& e, double v ) = 0;
46  virtual double vGetRatio( const Eref& e ) const = 0;
47  virtual void vSetConcK1( const Eref& e, double v ) = 0;
48  virtual double vGetConcK1( const Eref& e ) const = 0;
50  // A new Dest function.
52  void cplx( double n );
54  // The other dest funcs, all virtual, come from EnzBase.
56  virtual void vCplx( double n );
57 
59  // Zombification stuff, overrides the one from EnzBase.
61  static void zombify( Element* original, const Cinfo* zClass,
62  Id solver );
63 
64  static const Cinfo* initCinfo();
65  private:
66 };
67 
68 #endif // CPLX_ENZ_BASE_H
virtual double vGetConcK1(const Eref &e) const =0
virtual double vGetK2(const Eref &e) const =0
double getK2(const Eref &e) const
void setK1(const Eref &e, double v)
static void zombify(Element *original, const Cinfo *zClass, Id solver)
virtual double vGetK1(const Eref &e) const =0
virtual void vSetConcK1(const Eref &e, double v)=0
void setK2(const Eref &e, double v)
void setConcK1(const Eref &e, double v)
virtual void vSetRatio(const Eref &e, double v)=0
virtual double vGetRatio(const Eref &e) const =0
double getK1(const Eref &e) const
double getConcK1(const Eref &e) const
Definition: Eref.h:26
virtual void vSetK1(const Eref &e, double v)=0
void cplx(double n)
virtual ~CplxEnzBase()
Definition: Id.h:17
virtual void vSetK2(const Eref &e, double v)=0
double getRatio(const Eref &e) const
Definition: Cinfo.h:18
void setRatio(const Eref &e, double v)
static const Cinfo * initCinfo()
Definition: CplxEnzBase.cpp:49
virtual void vCplx(double n)