Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vcs_SpeciesProperties.cpp
Go to the documentation of this file.
1 /**
2  * @file vcs_SpeciesProperties.cpp
3  */
5 
6 using namespace std;
7 
8 namespace Cantera
9 {
10 
11 vcs_SpeciesProperties::vcs_SpeciesProperties(size_t indexPhase,
12  size_t indexSpeciesPhase,
13  vcs_VolPhase* owning) :
14  IndexPhase(indexPhase),
15  IndexSpeciesPhase(indexSpeciesPhase),
16  OwningPhase(owning),
17  SpeciesThermo(0),
18  WtSpecies(0.0),
19  Charge(0.0),
20  SurfaceSpecies(0),
21  VolPM(0.0),
22  ReferenceMoleFraction(1.0E-6)
23 {
24 }
25 
26 vcs_SpeciesProperties::vcs_SpeciesProperties(const vcs_SpeciesProperties& b) :
27  IndexPhase(b.IndexPhase),
28  IndexSpeciesPhase(b.IndexSpeciesPhase),
29  OwningPhase(b.OwningPhase),
30  NumElements(b.NumElements),
31  SpeciesThermo(b.SpeciesThermo),
32  WtSpecies(b.WtSpecies),
33  Charge(b.Charge),
34  SurfaceSpecies(b.SurfaceSpecies),
35  VolPM(b.VolPM),
36  ReferenceMoleFraction(b.ReferenceMoleFraction)
37 {
38  SpName = b.SpName;
39  FormulaMatrixCol = b.FormulaMatrixCol;
40 }
41 
42 vcs_SpeciesProperties&
43 vcs_SpeciesProperties::operator=(const vcs_SpeciesProperties& b)
44 {
45  if (&b != this) {
46  IndexPhase = b.IndexPhase;
47  IndexSpeciesPhase = b.IndexSpeciesPhase;
48  OwningPhase = b.OwningPhase;
49  NumElements = b.NumElements;
50  SpName = b.SpName;
51  WtSpecies = b.WtSpecies;
52  FormulaMatrixCol = b.FormulaMatrixCol;
53  Charge = b.Charge;
54  SurfaceSpecies = b.SurfaceSpecies;
55  VolPM = b.VolPM;
56  ReferenceMoleFraction = b.ReferenceMoleFraction;
57  }
58  return *this;
59 }
60 
61 }
std::string SpName
Name of the species.
*std::vector< double > FormulaMatrixCol
Column of the formula matrix, comprising the element composition of the species.