ESyS-Particle  2.3.4
ThermParticle.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 #ifndef __THERMPARTICLE_H
14 #define __THERMPARTICLE_H
15 
16 // -- project includes --
17 #include "Foundation/vec3.h"
18 
19 // --- STL includes ---
20 #include <map>
21 #include <utility>
22 
23 
24 using std::map;
25 using std::pair;
26 using std::make_pair;
27 
32 {
33 protected:
34 
35  double m_temperature ;
37  double m_Cp ;
38 // double m_density ;// ???
39  double m_heat_frict ;
40  double m_heat_trans ;
44  double m_rad_ini ;
45 
46 public:
47 // static const CBasicParticle INVALID;
48 
50  CThermParticle(double rad_ini);
51  CThermParticle(double temperature,
52  double m_temperature_ini,
53  double Cp,
54  double heat_frict,
55  double heat_trans,
56  double therm_expansion0,
57  double therm_expansion1,
58  double therm_expansion2,
59  double rad_ini);
60 // CThermParticle(const esys::lsm::SimpleParticleData &data);
61 
62  virtual ~CThermParticle(){};
63 /*
64  inline Vec3 & getPPos() {return m_pos;}
65  inline Vec3 getPos() const {return m_pos;}
66  inline double getRad() const {return m_rad;}
67  inline int getID() const {return m_global_id;}
68 
69  inline void moveBy(Vec3 v){m_pos+=v;} //!< move relative to current position
70  inline void moveTo(Vec3 v){m_pos=v;} //!< move absolute
71  inline void setRad(double r){m_rad=r;}
72 
74  inline void setTag(int t){m_tag=t;}
75  inline int getTag() const {return m_tag;}
76  inline bool isValid() const {return (getID() >= 0);}
77 };
78 */
79 
80  inline void setTemperature(double t){m_temperature=t;}
81  inline double getTemperature() const {return m_temperature;}
82 
83  inline void setEquilibTemperature(double t){m_temperature_ini=t;}
84  inline double getEquilibTemperature() const {return m_temperature_ini;}
85 
86  inline void setEquilibRadius(double r){m_rad_ini=r;}
87  inline double getEquilibRadius() const {return m_rad_ini;}
88 
89 // inline void setCp(double t){m_Cp = t;}
90  inline double getCp() const {return m_Cp;}
91  inline void setCp(double cp) {m_Cp = cp;}
92 
93  inline double getThermExpansion0() const {return m_therm_expansion0 ;}
94  inline void setThermExpansion0(double te0) {m_therm_expansion0 = te0;}
95 
96  inline double getThermExpansion1() const {return m_therm_expansion1 ;}
97  inline void setThermExpansion1(double te1) {m_therm_expansion1 = te1;}
98 
99  inline double getThermExpansion2() const {return m_therm_expansion2 ;}
100  inline void setThermExpansion2(double te2) {m_therm_expansion2 = te2;}
101 // void integrate_therm(double) ;
102 // void zeroHeat() ;
103 // void applyHeatTrans(const double) ;
104  friend ostream& operator<<(ostream& ost,const CThermParticle& p);
105 };
106 
107 ostream& operator<<(ostream&,const CThermParticle&);
108 
109 #endif //__THERMPARTICLE_H
CThermParticle::m_temperature
double m_temperature
Definition: ThermParticle.h:35
CThermParticle::getEquilibRadius
double getEquilibRadius() const
Definition: ThermParticle.h:87
CThermParticle::m_heat_frict
double m_heat_frict
Definition: ThermParticle.h:39
CThermParticle::setEquilibRadius
void setEquilibRadius(double r)
Definition: ThermParticle.h:86
CThermParticle::m_therm_expansion2
double m_therm_expansion2
Definition: ThermParticle.h:43
CThermParticle::setThermExpansion2
void setThermExpansion2(double te2)
Definition: ThermParticle.h:100
CThermParticle::getThermExpansion2
double getThermExpansion2() const
Definition: ThermParticle.h:99
CThermParticle::m_temperature_ini
double m_temperature_ini
Definition: ThermParticle.h:36
CThermParticle::setCp
void setCp(double cp)
Definition: ThermParticle.h:91
CThermParticle::getTemperature
double getTemperature() const
Definition: ThermParticle.h:81
CThermParticle::m_heat_trans
double m_heat_trans
Definition: ThermParticle.h:40
ThermParticle.h
CThermParticle::setEquilibTemperature
void setEquilibTemperature(double t)
Definition: ThermParticle.h:83
CThermParticle::m_therm_expansion1
double m_therm_expansion1
Definition: ThermParticle.h:42
CThermParticle::m_therm_expansion0
double m_therm_expansion0
Definition: ThermParticle.h:41
CThermParticle::getThermExpansion0
double getThermExpansion0() const
Definition: ThermParticle.h:93
CThermParticle::~CThermParticle
virtual ~CThermParticle()
Definition: ThermParticle.h:62
operator<<
ostream & operator<<(ostream &ost, const CThermParticle &p)
Definition: ThermParticle.cpp:62
CThermParticle::getThermExpansion1
double getThermExpansion1() const
Definition: ThermParticle.h:96
CThermParticle::m_rad_ini
double m_rad_ini
Definition: ThermParticle.h:44
CThermParticle::CThermParticle
CThermParticle()
Definition: ThermParticle.cpp:15
CThermParticle::getEquilibTemperature
double getEquilibTemperature() const
Definition: ThermParticle.h:84
CThermParticle::setThermExpansion0
void setThermExpansion0(double te0)
Definition: ThermParticle.h:94
vec3.h
CThermParticle::m_Cp
double m_Cp
Definition: ThermParticle.h:37
CThermParticle::operator<<
friend ostream & operator<<(ostream &ost, const CThermParticle &p)
Definition: ThermParticle.cpp:62
CThermParticle::setThermExpansion1
void setThermExpansion1(double te1)
Definition: ThermParticle.h:97
operator<<
ostream & operator<<(ostream &, const CThermParticle &)
Definition: ThermParticle.cpp:62
CThermParticle::getCp
double getCp() const
Definition: ThermParticle.h:90
CThermParticle::setTemperature
void setTemperature(double t)
Definition: ThermParticle.h:80
CThermParticle
Definition: ThermParticle.h:32