Cantera  2.0
LiquidTransportData.h
Go to the documentation of this file.
1 /**
2  * @file LiquidTransportData.h
3  * Header file defining class LiquidTransportData
4  */
5 #ifndef CT_LIQUIDTRANSPORTDATA_H
6 #define CT_LIQUIDTRANSPORTDATA_H
7 
8 
9 // STL includes
10 #include <vector>
11 #include <string>
12 
13 // Cantera includes
14 #include "cantera/base/ct_defs.h"
15 #include "TransportBase.h"
17 #include "LTPspecies.h"
18 
19 namespace Cantera
20 {
21 
22 //! Class LiquidTransportData holds transport parameters for a
23 //! specific liquid-phase species.
24 /*!
25  * A LiquidTransportData object is created for each species.
26  *
27  * This class is mainly used to collect transport properties
28  * from the parse phase in the TransportFactory and transfer
29  * them to the Transport class. Transport properties are
30  * expressed by subclasses of LTPspecies.
31  * One may need to be careful about deleting pointers to LTPspecies
32  * objects created in the TransportFactory.
33  *
34  * All of the pointers in this class are shallow pointers. Therefore, this
35  * is a passthrough class, which keeps track of pointer ownership by zeroing
36  * pointers as we go. Yes, Yes, yes, this is not good.
37  */
39 {
40 
41 public:
42 
43  //! Default constructor
45 
46  //! Copy constructor
48 
49  //! Assignment operator
51 
52  //! Destructor
54 
55  //! A LiquidTransportData object is instantiated for each species.
56  //! This is the species name for which this object is instantiated.
57  std::string speciesName;
58 
59  //! Model type for the hydroradius
60  /*!
61  * shallow pointer that should be zero during destructor
62  */
64 
65  //! Model type for the viscosity
66  /*!
67  * shallow pointer that should be zero during destructor
68  */
70 
71  //! Model type for the ionic conductivity
72  /*!
73  * shallow pointer that should be zero during destructor
74  */
76 
77  //! Model type for the mobility ratio
78  /*!
79  * shallow pointers that should be zero during destructor
80  */
81  std::vector<LTPspecies*> mobilityRatio;
82 
83  //! Model type for the self diffusion coefficients
84  /*!
85  * shallow pointers that should be zero during destructor
86  */
87  std::vector<LTPspecies*> selfDiffusion;
88 
89  //! Model type for the thermal conductivity
90  /*!
91  * shallow pointer that should be zero during destructor
92  */
94 
95  //! Model type for the electrical conductivity
96  /*!
97  * shallow pointer that should be zero during destructor
98  */
100 
101  //! Model type for the speciesDiffusivity
102  /*!
103  * shallow pointer that should be zero during destructor
104  */
106 };
107 
108 }
109 #endif
110