Memosa-FVM  0.2
PhononMacro Struct Reference

#include <PhononMacro.h>

Collaboration diagram for PhononMacro:

Public Types

typedef shared_ptr< FieldFieldPtr
 
typedef vector< FieldPtrFieldVector
 
typedef map< int, FieldVector * > FieldVectorMap
 

Public Member Functions

 PhononMacro (const string baseName)
 
FieldgetModeTemp (int mesh, int mode)
 
FieldgetModeFlux (int mesh, int mode)
 
FieldgetBandTemp (int mesh, int band)
 
FieldgetBandRelEnergy (int mesh, int band)
 
FieldgetBandFlux (int mesh, int band)
 
FieldgetColorField (int level)
 
FieldgetPlotColorField (int level)
 

Public Attributes

Field temperature
 
Field deltaT
 
Field e0
 
Field TlResidual
 
Field TlInjected
 
Field TlFASCorrection
 
Field heatFlux
 
Field lam
 
FieldVectorMap BranchTemperatures
 
FieldVectorMap BranchFlux
 
FieldVectorMap BandTemperatures
 
FieldVectorMap BandRelEnergy
 
FieldVectorMap BandFlux
 
FieldVector CellColors
 
FieldVector plottingCellColors
 
Field zero
 
Field one
 

Detailed Description

Definition at line 12 of file PhononMacro.h.

Member Typedef Documentation

typedef shared_ptr<Field> PhononMacro::FieldPtr

Definition at line 15 of file PhononMacro.h.

Definition at line 16 of file PhononMacro.h.

Definition at line 17 of file PhononMacro.h.

Constructor & Destructor Documentation

PhononMacro::PhononMacro ( const string  baseName)

Definition at line 7 of file PhononMacro.cpp.

7  :
8  temperature(baseName + ".temperature"),
9  deltaT(baseName + ".deltaT"),
10  e0(baseName + ".e0"),
11  TlResidual(baseName + "TlResidual"),
12  TlInjected(baseName + "TlInjected"),
13  TlFASCorrection(baseName + "TlFASCorrection"),
14  heatFlux(baseName + ".heatFlux"),
15  lam(baseName + ".lam"),
17  BranchFlux(),
19  BandRelEnergy(),
20  BandFlux(),
21  CellColors(),
22  zero(baseName + "zero"),
23  one(baseName + "one")
24 {}
Field zero
Definition: PhononMacro.h:37
Field deltaT
Definition: PhononMacro.h:22
Field temperature
Definition: PhononMacro.h:21
Field TlResidual
Definition: PhononMacro.h:24
Field TlFASCorrection
Definition: PhononMacro.h:26
FieldVector CellColors
Definition: PhononMacro.h:34
Field TlInjected
Definition: PhononMacro.h:25
FieldVectorMap BandRelEnergy
Definition: PhononMacro.h:32
FieldVectorMap BandTemperatures
Definition: PhononMacro.h:31
FieldVectorMap BranchFlux
Definition: PhononMacro.h:30
FieldVectorMap BranchTemperatures
Definition: PhononMacro.h:29
FieldVectorMap BandFlux
Definition: PhononMacro.h:33
Field heatFlux
Definition: PhononMacro.h:27

Member Function Documentation

Field & PhononMacro::getBandFlux ( int  mesh,
int  band 
)

Definition at line 86 of file PhononMacro.cpp.

References BandFlux.

87 {
88  FieldVectorMap::iterator it;
89  it=BandFlux.find(mesh);
90  if(it!=BandFlux.end())
91  {
92  FieldVector& FieldVec=*(it->second);
93  if(band<FieldVec.size())
94  return *FieldVec[band];
95  else
96  throw CException("Band Flux: Don't have Field for that mode!");
97  }
98  throw CException("Band Flux: Don't have FieldVector for that mesh!");
99 }
vector< FieldPtr > FieldVector
Definition: PhononMacro.h:16
FieldVectorMap BandFlux
Definition: PhononMacro.h:33
Field & PhononMacro::getBandRelEnergy ( int  mesh,
int  band 
)

Definition at line 71 of file PhononMacro.cpp.

References BandRelEnergy.

72 {
73  FieldVectorMap::iterator it;
74  it=BandRelEnergy.find(mesh);
75  if(it!=BandRelEnergy.end())
76  {
77  FieldVector& FieldVec=*(it->second);
78  if(band<FieldVec.size())
79  return *FieldVec[band];
80  else
81  throw CException("Band Relative Energy: Don't have Field for that mode!");
82  }
83  throw CException("Band Relative Energy: Don't have FieldVector for that mesh!");
84 }
vector< FieldPtr > FieldVector
Definition: PhononMacro.h:16
FieldVectorMap BandRelEnergy
Definition: PhononMacro.h:32
Field & PhononMacro::getBandTemp ( int  mesh,
int  band 
)

Definition at line 56 of file PhononMacro.cpp.

References BandTemperatures, and BranchTemperatures.

57 {
58  FieldVectorMap::iterator it;
59  it=BandTemperatures.find(mesh);
60  if(it!=BranchTemperatures.end())
61  {
62  FieldVector& FieldVec=*(it->second);
63  if(band<FieldVec.size())
64  return *FieldVec[band];
65  else
66  throw CException("Band Temp: Don't have Field for that mode!");
67  }
68  throw CException("Band Temp: Don't have FieldVector for that mesh!");
69 }
vector< FieldPtr > FieldVector
Definition: PhononMacro.h:16
FieldVectorMap BandTemperatures
Definition: PhononMacro.h:31
FieldVectorMap BranchTemperatures
Definition: PhononMacro.h:29
Field & PhononMacro::getColorField ( int  level)

Definition at line 101 of file PhononMacro.cpp.

References CellColors.

Referenced by COMETModel< T >::makePlotColors().

102 {return *CellColors[level];}
FieldVector CellColors
Definition: PhononMacro.h:34
Field & PhononMacro::getModeFlux ( int  mesh,
int  mode 
)

Definition at line 41 of file PhononMacro.cpp.

References BranchFlux.

42 {
43  FieldVectorMap::iterator it;
44  it=BranchFlux.find(mesh);
45  if(it!=BranchFlux.end())
46  {
47  FieldVector& FieldVec=*(it->second);
48  if(mode<FieldVec.size())
49  return *FieldVec[mode];
50  else
51  throw CException("Don't have Field for that mode!");
52  }
53  throw CException("Don't have FieldVector for that mesh!");
54 }
vector< FieldPtr > FieldVector
Definition: PhononMacro.h:16
FieldVectorMap BranchFlux
Definition: PhononMacro.h:30
Field & PhononMacro::getModeTemp ( int  mesh,
int  mode 
)

Definition at line 26 of file PhononMacro.cpp.

References BranchTemperatures.

27 {
28  FieldVectorMap::iterator it;
29  it=BranchTemperatures.find(mesh);
30  if(it!=BranchTemperatures.end())
31  {
32  FieldVector& FieldVec=*(it->second);
33  if(mode<FieldVec.size())
34  return *FieldVec[mode];
35  else
36  throw CException("Don't have Field for that mode!");
37  }
38  throw CException("Don't have FieldVector for that mesh!");
39 }
vector< FieldPtr > FieldVector
Definition: PhononMacro.h:16
FieldVectorMap BranchTemperatures
Definition: PhononMacro.h:29
Field & PhononMacro::getPlotColorField ( int  level)

Definition at line 104 of file PhononMacro.cpp.

References plottingCellColors.

105 {return *plottingCellColors[level];}
FieldVector plottingCellColors
Definition: PhononMacro.h:35

Member Data Documentation

FieldVectorMap PhononMacro::BandFlux

Definition at line 33 of file PhononMacro.h.

Referenced by COMETModel< T >::calcBandFlux(), and getBandFlux().

FieldVectorMap PhononMacro::BandRelEnergy

Definition at line 32 of file PhononMacro.h.

Referenced by COMETModel< T >::calcBandRelEnergy(), and getBandRelEnergy().

FieldVectorMap PhononMacro::BandTemperatures

Definition at line 31 of file PhononMacro.h.

Referenced by COMETModel< T >::calcBandTemps(), and getBandTemp().

FieldVectorMap PhononMacro::BranchFlux

Definition at line 30 of file PhononMacro.h.

Referenced by COMETModel< T >::calcModeFlux(), and getModeFlux().

FieldVectorMap PhononMacro::BranchTemperatures
FieldVector PhononMacro::CellColors

Definition at line 34 of file PhononMacro.h.

Referenced by getColorField(), and COMETModel< T >::makeCellColors().

Field PhononMacro::deltaT
Field PhononMacro::e0
Field PhononMacro::heatFlux
Field PhononMacro::lam

Definition at line 28 of file PhononMacro.h.

Referenced by COMETModel< T >::init(), and COMETDiscretizer< T >::updateeShifted().

Field PhononMacro::one

Definition at line 38 of file PhononMacro.h.

FieldVector PhononMacro::plottingCellColors

Definition at line 35 of file PhononMacro.h.

Referenced by getPlotColorField(), and COMETModel< T >::makePlotColors().

Field PhononMacro::TlInjected
Field PhononMacro::zero

Definition at line 37 of file PhononMacro.h.


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