Cantera
2.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
cantera
transport
SolidTransportData.h
Go to the documentation of this file.
1
/**
2
* @file SolidTransportData.h
3
* Header file defining class SolidTransportData
4
*/
5
/*
6
* $Author: hkmoffa $
7
* $Date: 2010-07-13 13:22:30 -0600 (Tue, 13 Jul 2010) $
8
* $Revision: 507 $
9
*/
10
11
#ifndef CT_SOLIDTRANSPORTDATA_H
12
#define CT_SOLIDTRANSPORTDATA_H
13
14
15
// STL includes
16
#include <vector>
17
#include <string>
18
19
// Cantera includes
20
#include "
cantera/base/ct_defs.h
"
21
#include "
cantera/transport/TransportBase.h
"
22
#include "
cantera/transport/TransportParams.h
"
23
#include "
cantera/base/FactoryBase.h
"
24
#include "
cantera/transport/LTPspecies.h
"
25
26
namespace
Cantera
27
{
28
29
//! Class SolidTransportData holds transport parameters for a
30
//! specific solid-phase species.
31
/*!
32
* A SolidTransportData object is created for a solid phase
33
* (not for each species as happens for the analogous LiquidTransportData).
34
*
35
* This class is mainly used to collect transport properties
36
* from the parse phase in the TranportFactory and transfer
37
* them to the Transport class. Transport properties are
38
* expressed by subclasses of LTPspecies.
39
* Note that we use the liquid phase species model for the solid phases.
40
* That is, for the time being at least, we ignore mixing models for
41
* solid phases and just specify a transport property at the level
42
* that we specify the transport property for a species in the liquid phase.
43
* One may need to be careful about deleting pointers to LTPspecies
44
* objects created in the TransportFactory.
45
*
46
* All of the pointers in this class are shallow pointers. Therefore, this
47
* is a passthrough class, which keeps track of pointer ownership by zeroing
48
* pointers as we go. Yes, Yes, yes, this is not good.
49
*/
50
class
SolidTransportData
:
public
TransportParams
51
{
52
53
public
:
54
55
//! Default constructor
56
SolidTransportData
();
57
58
//! Copy constructor
59
SolidTransportData
(
const
SolidTransportData
& right);
60
61
//! Assignment operator
62
SolidTransportData
&
operator=
(
const
SolidTransportData
& right);
63
64
//! Destructor
65
~SolidTransportData
();
66
67
//! A SolidTransportData object is instantiated for each species.
68
//! This is the species name for which this object is instantiated.
69
std::string
speciesName
;
70
71
//! Model type for the ionic conductivity
72
/*!
73
* shallow pointer that should be zero during destructor
74
*/
75
LTPspecies
*
ionConductivity
;
76
77
//! Model type for the thermal conductivity
78
/*!
79
* shallow pointer that should be zero during destructor
80
*/
81
LTPspecies
*
thermalConductivity
;
82
83
//! Model type for the electrical conductivity
84
/*!
85
* shallow pointer that should be zero during destructor
86
*/
87
LTPspecies
*
electConductivity
;
88
89
//! Model type for the defectDiffusivity -- or more like a defect diffusivity in the context of the solid phase.
90
/*!
91
* shallow pointer that should be zero during destructor
92
*/
93
LTPspecies
*
defectDiffusivity
;
94
95
//! Model type for the defectActivity
96
/*!
97
* shallow pointer that should be zero during destructor
98
*/
99
LTPspecies
*
defectActivity
;
100
101
protected
:
102
//protected members of SolidTransportData are analogous to those found in TransportParams
103
104
//! Local storage of the number of species
105
// int nsp_;
106
107
//! Pointer to the ThermoPhase object
108
// thermo_t* thermo;
109
110
//! Local storage of the molecular weights of the species
111
/*!
112
* Length is nsp_ and units are kg kmol-1.
113
*/
114
// vector_fp mw;
115
116
//! Maximum temperatures for parameter fits
117
// doublereal tmax;
118
119
//! Minimum temperatures for parameter fits
120
// doublereal tmin;
121
122
//! Pointer to the xml tree describing the implementation of transport for this object
123
// XML_Writer* xml;
124
125
//! Log level
126
// int log_level;
127
128
};
129
130
}
131
#endif
132
Generated by
1.8.2