Cantera  2.1.2
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 #include "TransportBase.h"
10 #include "LTPspecies.h"
11 
12 namespace Cantera
13 {
14 
15 //! Class LiquidTransportData holds transport parameters for a
16 //! specific liquid-phase species.
17 /*!
18  * A LiquidTransportData object is created for each species.
19  *
20  * This class is mainly used to collect transport properties from the parse
21  * phase in the TransportFactory and transfer them to the Transport class.
22  * Transport properties are expressed by subclasses of LTPspecies. One may
23  * need to be careful about deleting pointers to LTPspecies objects created in
24  * the TransportFactory.
25  *
26  * All of the pointers in this class are shallow pointers. Therefore, this
27  * is a passthrough class, which keeps track of pointer ownership by zeroing
28  * pointers as we go. Yes, Yes, yes, this is not good.
29  */
31 {
32 public:
35  LiquidTransportData& operator=(const LiquidTransportData& right);
37 
38  //! A LiquidTransportData object is instantiated for each species.
39  //! This is the species name for which this object is instantiated.
40  std::string speciesName;
41 
42  //! Model type for the hydroradius
43  /*!
44  * shallow pointer that should be zero during destructor
45  */
47 
48  //! Model type for the viscosity
49  /*!
50  * shallow pointer that should be zero during destructor
51  */
53 
54  //! Model type for the ionic conductivity
55  /*!
56  * shallow pointer that should be zero during destructor
57  */
59 
60  //! Model type for the mobility ratio
61  /*!
62  * shallow pointers that should be zero during destructor
63  */
64  std::vector<LTPspecies*> mobilityRatio;
65 
66  //! Model type for the self diffusion coefficients
67  /*!
68  * shallow pointers that should be zero during destructor
69  */
70  std::vector<LTPspecies*> selfDiffusion;
71 
72  //! Model type for the thermal conductivity
73  /*!
74  * shallow pointer that should be zero during destructor
75  */
77 
78  //! Model type for the electrical conductivity
79  /*!
80  * shallow pointer that should be zero during destructor
81  */
83 
84  //! Model type for the speciesDiffusivity
85  /*!
86  * shallow pointer that should be zero during destructor
87  */
89 };
90 
91 }
92 #endif
LTPspecies * thermalCond
Model type for the thermal conductivity.
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
Header file defining class LTPspecies and its child classes.
Class LiquidTransportData holds transport parameters for a specific liquid-phase species.
LTPspecies * speciesDiffusivity
Model type for the speciesDiffusivity.
Class LTPspecies holds transport parameters for a specific liquid-phase species.
Definition: LTPspecies.h:73
LTPspecies * electCond
Model type for the electrical conductivity.
std::string speciesName
A LiquidTransportData object is instantiated for each species.
std::vector< LTPspecies * > mobilityRatio
Model type for the mobility ratio.
LTPspecies * hydroRadius
Model type for the hydroradius.
std::vector< LTPspecies * > selfDiffusion
Model type for the self diffusion coefficients.
LTPspecies * viscosity
Model type for the viscosity.
LTPspecies * ionConductivity
Model type for the ionic conductivity.
File contains the FactoryBase class declarations.