Cantera
2.0
|
Class SolidTransportData holds transport parameters for a specific solid-phase species. More...
#include <SolidTransportData.h>
Public Member Functions | |
SolidTransportData () | |
Default constructor. | |
SolidTransportData (const SolidTransportData &right) | |
Copy constructor. | |
SolidTransportData & | operator= (const SolidTransportData &right) |
Assignment operator. | |
~SolidTransportData () | |
Destructor. | |
Public Member Functions inherited from TransportParams | |
TransportParams () | |
Default Constructor. | |
virtual | ~TransportParams () |
Destructor. | |
Public Attributes | |
std::string | speciesName |
A SolidTransportData object is instantiated for each species. | |
LTPspecies * | ionConductivity |
Model type for the ionic conductivity. | |
LTPspecies * | thermalConductivity |
Model type for the thermal conductivity. | |
LTPspecies * | electConductivity |
Model type for the electrical conductivity. | |
LTPspecies * | defectDiffusivity |
Model type for the defectDiffusivity – or more like a defect diffusivity in the context of the solid phase. | |
LTPspecies * | defectActivity |
Model type for the defectActivity. | |
Public Attributes inherited from TransportParams | |
size_t | nsp_ |
Local storage of the number of species. | |
thermo_t * | thermo |
Pointer to the ThermoPhase object. | |
vector_fp | mw |
Local storage of the molecular weights of the species. | |
VelocityBasis | velocityBasis_ |
A basis for the average velocity can be specified. | |
doublereal | tmax |
Maximum temperatures for parameter fits. | |
doublereal | tmin |
Minimum temperatures for parameter fits. | |
int | mode_ |
Mode parameter. | |
XML_Writer * | xml |
Pointer to the xml tree describing the implementation of transport for this object. | |
int | log_level |
Log level. | |
Class SolidTransportData holds transport parameters for a specific solid-phase species.
A SolidTransportData object is created for a solid phase (not for each species as happens for the analogous LiquidTransportData).
This class is mainly used to collect transport properties from the parse phase in the TranportFactory and transfer them to the Transport class. Transport properties are expressed by subclasses of LTPspecies. Note that we use the liquid phase species model for the solid phases. That is, for the time being at least, we ignore mixing models for solid phases and just specify a transport property at the level that we specify the transport property for a species in the liquid phase. One may need to be careful about deleting pointers to LTPspecies objects created in the TransportFactory.
All of the pointers in this class are shallow pointers. Therefore, this is a passthrough class, which keeps track of pointer ownership by zeroing pointers as we go. Yes, Yes, yes, this is not good.
Definition at line 50 of file SolidTransportData.h.
Default constructor.
Definition at line 22 of file SolidTransportData.cpp.
SolidTransportData | ( | const SolidTransportData & | right | ) |
Copy constructor.
Definition at line 34 of file SolidTransportData.cpp.
~SolidTransportData | ( | ) |
Destructor.
Definition at line 71 of file SolidTransportData.cpp.
References SolidTransportData::defectActivity, SolidTransportData::defectDiffusivity, SolidTransportData::electConductivity, SolidTransportData::ionConductivity, and SolidTransportData::thermalConductivity.
SolidTransportData & operator= | ( | const SolidTransportData & | right | ) |
Assignment operator.
Definition at line 46 of file SolidTransportData.cpp.
References SolidTransportData::defectActivity, SolidTransportData::defectDiffusivity, SolidTransportData::electConductivity, SolidTransportData::ionConductivity, SolidTransportData::speciesName, and SolidTransportData::thermalConductivity.
std::string speciesName |
A SolidTransportData object is instantiated for each species.
This is the species name for which this object is instantiated.
Definition at line 69 of file SolidTransportData.h.
Referenced by SolidTransportData::operator=().
LTPspecies* ionConductivity |
Model type for the ionic conductivity.
shallow pointer that should be zero during destructor
Definition at line 75 of file SolidTransportData.h.
Referenced by TransportFactory::getSolidTransportData(), SolidTransport::initSolid(), SolidTransportData::operator=(), and SolidTransportData::~SolidTransportData().
LTPspecies* thermalConductivity |
Model type for the thermal conductivity.
shallow pointer that should be zero during destructor
Definition at line 81 of file SolidTransportData.h.
Referenced by TransportFactory::getSolidTransportData(), SolidTransport::initSolid(), SolidTransportData::operator=(), and SolidTransportData::~SolidTransportData().
LTPspecies* electConductivity |
Model type for the electrical conductivity.
shallow pointer that should be zero during destructor
Definition at line 87 of file SolidTransportData.h.
Referenced by TransportFactory::getSolidTransportData(), SolidTransport::initSolid(), SolidTransportData::operator=(), and SolidTransportData::~SolidTransportData().
LTPspecies* defectDiffusivity |
Model type for the defectDiffusivity – or more like a defect diffusivity in the context of the solid phase.
shallow pointer that should be zero during destructor
Definition at line 93 of file SolidTransportData.h.
Referenced by TransportFactory::getSolidTransportData(), SolidTransport::initSolid(), SolidTransportData::operator=(), and SolidTransportData::~SolidTransportData().
LTPspecies* defectActivity |
Model type for the defectActivity.
shallow pointer that should be zero during destructor
Definition at line 99 of file SolidTransportData.h.
Referenced by TransportFactory::getSolidTransportData(), SolidTransport::initSolid(), SolidTransportData::operator=(), and SolidTransportData::~SolidTransportData().