MercuryDPM  Alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ThermalSpecies< NormalForceSpecies > Class Template Reference

#include <ThermalInteraction.h>

+ Inheritance diagram for ThermalSpecies< NormalForceSpecies >:

Public Types

typedef ThermalInteraction
< typename
NormalForceSpecies::InteractionType > 
InteractionType
 The correct Interaction type for this FrictionForceSpecies. More...
 

Public Member Functions

 ThermalSpecies ()
 The default constructor. More...
 
 ThermalSpecies (const ThermalSpecies &s)
 The default copy constructor. More...
 
virtual ~ThermalSpecies ()
 The default destructor. More...
 
void write (std::ostream &os) const
 Writes the species properties to an output stream. More...
 
void read (std::istream &is)
 Reads the species properties from an input stream. More...
 
std::string getBaseName () const
 Used in Species::getName to obtain a unique name for each Species. More...
 
Mdouble getHeatCapacity () const
 Allows heatCapacity_ to be accessed. More...
 
void setHeatCapacity (Mdouble heatCapacity)
 Allows heatCapacity_ to be changed. More...
 
Mdouble getThermalConductivity () const
 Allows heatCapacity_ to be accessed. More...
 
void setThermalConductivity (Mdouble thermalConductivity)
 Allows heatCapacity_ to be changed. More...
 

Private Attributes

Mdouble heatCapacity_
 The heat capacity. More...
 
Mdouble thermalConductivity_
 The thermal conductivity. More...
 

Detailed Description

template<class NormalForceSpecies>
class ThermalSpecies< NormalForceSpecies >

Definition at line 33 of file ThermalInteraction.h.

Member Typedef Documentation

template<class NormalForceSpecies >
typedef ThermalInteraction<typename NormalForceSpecies::InteractionType> ThermalSpecies< NormalForceSpecies >::InteractionType

The correct Interaction type for this FrictionForceSpecies.

Definition at line 37 of file ThermalSpecies.h.

Constructor & Destructor Documentation

template<class NormalForceSpecies >
ThermalSpecies< NormalForceSpecies >::ThermalSpecies ( )

The default constructor.

Definition at line 82 of file ThermalSpecies.h.

References ThermalSpecies< NormalForceSpecies >::heatCapacity_, and ThermalSpecies< NormalForceSpecies >::thermalConductivity_.

84 {
85  heatCapacity_ = 0.0;
87 }
Defines a contact force parallel to the contact normal.
Mdouble thermalConductivity_
The thermal conductivity.
Mdouble heatCapacity_
The heat capacity.
template<class NormalForceSpecies >
ThermalSpecies< NormalForceSpecies >::ThermalSpecies ( const ThermalSpecies< NormalForceSpecies > &  s)

The default copy constructor.

Definition at line 90 of file ThermalSpecies.h.

References ThermalSpecies< NormalForceSpecies >::heatCapacity_, and ThermalSpecies< NormalForceSpecies >::thermalConductivity_.

92 {
95 }
Defines a contact force parallel to the contact normal.
Mdouble thermalConductivity_
The thermal conductivity.
Mdouble heatCapacity_
The heat capacity.
template<class NormalForceSpecies >
ThermalSpecies< NormalForceSpecies >::~ThermalSpecies ( )
virtual

The default destructor.

Definition at line 98 of file ThermalSpecies.h.

99 {}

Member Function Documentation

template<class NormalForceSpecies >
std::string ThermalSpecies< NormalForceSpecies >::getBaseName ( ) const

Used in Species::getName to obtain a unique name for each Species.

Definition at line 119 of file ThermalSpecies.h.

120 {
121  return "Thermal" + NormalForceSpecies::getBaseName();
122 }
template<class NormalForceSpecies >
Mdouble ThermalSpecies< NormalForceSpecies >::getHeatCapacity ( ) const

Allows heatCapacity_ to be accessed.

Definition at line 126 of file ThermalSpecies.h.

Referenced by ThermalInteraction< NormalForceInteraction >::computeNormalForce().

127 {
128  return heatCapacity_;
129 }
Mdouble heatCapacity_
The heat capacity.
template<class NormalForceSpecies >
Mdouble ThermalSpecies< NormalForceSpecies >::getThermalConductivity ( ) const

Allows heatCapacity_ to be accessed.

Definition at line 141 of file ThermalSpecies.h.

Referenced by ThermalInteraction< NormalForceInteraction >::computeNormalForce().

142 {
143  return thermalConductivity_;
144 }
Mdouble thermalConductivity_
The thermal conductivity.
template<class NormalForceSpecies >
void ThermalSpecies< NormalForceSpecies >::read ( std::istream &  is)

Reads the species properties from an input stream.

Definition at line 110 of file ThermalSpecies.h.

111 {
112  std::string dummy;
113  NormalForceSpecies::read(is);
114  is >> dummy >> heatCapacity_;
115  is >> dummy >> thermalConductivity_;
116 }
Mdouble thermalConductivity_
The thermal conductivity.
Mdouble heatCapacity_
The heat capacity.
template<class NormalForceSpecies >
void ThermalSpecies< NormalForceSpecies >::setHeatCapacity ( Mdouble  heatCapacity)

Allows heatCapacity_ to be changed.

Definition at line 132 of file ThermalSpecies.h.

References logger.

133 {
134  logger.assert_always(heatCapacity>0,
135  "[ThermalSpecies<>::setHeatCapacity(%)] value has to be positive",
136  heatCapacity);
137  heatCapacity_ = heatCapacity;
138 }
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Mdouble heatCapacity_
The heat capacity.
template<class NormalForceSpecies >
void ThermalSpecies< NormalForceSpecies >::setThermalConductivity ( Mdouble  thermalConductivity)

Allows heatCapacity_ to be changed.

Definition at line 147 of file ThermalSpecies.h.

References logger.

148 {
149  logger.assert_always(thermalConductivity>=0,
150  "[ThermalSpecies<>::setThermalConductivity(%)] value has to be positive",
151  thermalConductivity);
152  thermalConductivity_ = thermalConductivity;
153 }
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Mdouble thermalConductivity_
The thermal conductivity.
template<class NormalForceSpecies >
void ThermalSpecies< NormalForceSpecies >::write ( std::ostream &  os) const

Writes the species properties to an output stream.

Definition at line 102 of file ThermalSpecies.h.

103 {
104  NormalForceSpecies::write(os);
105  os << " heatCapacity " << heatCapacity_;
106  os << " thermalConductivity " << thermalConductivity_;
107 }
Mdouble thermalConductivity_
The thermal conductivity.
Mdouble heatCapacity_
The heat capacity.

Member Data Documentation

template<class NormalForceSpecies >
Mdouble ThermalSpecies< NormalForceSpecies >::heatCapacity_
private

The heat capacity.

Definition at line 73 of file ThermalSpecies.h.

Referenced by ThermalSpecies< NormalForceSpecies >::ThermalSpecies().

template<class NormalForceSpecies >
Mdouble ThermalSpecies< NormalForceSpecies >::thermalConductivity_
private

The thermal conductivity.

Definition at line 78 of file ThermalSpecies.h.

Referenced by ThermalSpecies< NormalForceSpecies >::ThermalSpecies().


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