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

#include <Boundary.h>

+ Collaboration diagram for Boundary:

Public Member Functions

 Boundary ()
 
double getReflectivity () const
 
void setReflectivity (const double v)
 

Static Public Member Functions

static const CinfoinitCinfo ()
 

Private Attributes

double reflectivity_
 

Detailed Description

manages geometries and optionally keeps track of adjacent compartments, if any.

Definition at line 17 of file Boundary.h.

Constructor & Destructor Documentation

Boundary::Boundary ( )

Definition at line 78 of file Boundary.cpp.

79  : reflectivity_( 1.0 )
80 {
81  ;
82 }
double reflectivity_
Definition: Boundary.h:32

Member Function Documentation

double Boundary::getReflectivity ( ) const

Definition at line 89 of file Boundary.cpp.

References reflectivity_.

Referenced by initCinfo().

90 {
91  return reflectivity_;
92 }
double reflectivity_
Definition: Boundary.h:32

+ Here is the caller graph for this function:

const Cinfo * Boundary::initCinfo ( )
static

Definition at line 16 of file Boundary.cpp.

References boundaryCinfo, getReflectivity(), Neutral::initCinfo(), and setReflectivity().

17 {
18  static ValueFinfo< Boundary, double > reflectivity(
19  "reflectivity",
20  "What happens to a molecule hitting it: bounces, absorbed, diffused?",
23  );
24 
25  /*
26  static DestFinfo geometry( "geometry",
27  "Size message coming from geometry object for this Boundary"
28  "The three arguments are volume, area, and perimeter. The"
29  "receiving function decides which it cares about."
30  "The originating geometry may return zero on some of the"
31  "dimensions if they do not apply",
32  new UpFunc3< ChemCompt, double, double, double >( &ChemCompt::extent ) );
33  */
34 
35  static DestFinfo adjacent( "adjacent",
36  "Dummy message coming from adjacent compartment to current one"
37  "Implies that compts are peers: do not surround each other",
38  new OpFuncDummy() );
39 
40  static DestFinfo outside( "outside",
41  "Dummy message coming from surrounding compartment to this one."
42  "Implies that the originating compartment surrounds this one",
43  new OpFuncDummy() );
44 
45  static SrcFinfo0 toAdjacent( "toAdjacent",
46  "Dummy message going to adjacent compartment."
47  );
48 
49  static SrcFinfo0 toInside( "toInside",
50  "Dummy message going to surrounded compartment."
51  );
52 
53 
54  static Finfo* boundaryFinfos[] = {
55  &reflectivity, // Field
56  // &geometry, // DestFinfo
57  &adjacent, // DestFinfo
58  &outside, // DestFinfo
59  &toAdjacent, // SrcFinfo
60  &toInside, // SrcFinfo
61  };
62 
63  static Dinfo< Boundary > dinfo;
64  static Cinfo boundaryCinfo (
65  "Boundary",
66  // No base class, but eventually I guess it will be neutral.
68  boundaryFinfos,
69  sizeof( boundaryFinfos ) / sizeof ( Finfo* ),
70  &dinfo
71  );
72 
73  return &boundaryCinfo;
74 }
Definition: Dinfo.h:60
double getReflectivity() const
Definition: Boundary.cpp:89
void setReflectivity(const double v)
Definition: Boundary.cpp:84
static const Cinfo * initCinfo()
Definition: Neutral.cpp:16
Definition: Cinfo.h:18
static const Cinfo * boundaryCinfo
Definition: Boundary.cpp:76
Definition: Finfo.h:12

+ Here is the call graph for this function:

void Boundary::setReflectivity ( const double  v)

Definition at line 84 of file Boundary.cpp.

References reflectivity_.

Referenced by initCinfo().

85 {
86  reflectivity_ = v;
87 }
double reflectivity_
Definition: Boundary.h:32

+ Here is the caller graph for this function:

Member Data Documentation

double Boundary::reflectivity_
private

Boundary condition. Reflective = 1. Completely diffusive = 0 Unless it is completely reflective, there should be an adjacent compartment into which the molecules diffuse.

Definition at line 32 of file Boundary.h.

Referenced by getReflectivity(), and setReflectivity().


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