Cantera  2.1.2
vcs_SpeciesProperties.cpp
Go to the documentation of this file.
1 /**
2  * @file vcs_SpeciesProperties.cpp
3  */
9 
10 using namespace std;
11 
12 namespace VCSnonideal
13 {
14 
15 vcs_SpeciesProperties::vcs_SpeciesProperties(size_t indexPhase,
16  size_t indexSpeciesPhase,
17  vcs_VolPhase* owning) :
18  IndexPhase(indexPhase),
19  IndexSpeciesPhase(indexSpeciesPhase),
20  OwningPhase(owning),
21  SpeciesThermo(0),
22  WtSpecies(0.0),
23  Charge(0.0),
24  SurfaceSpecies(0),
25  VolPM(0.0),
26  ReferenceMoleFraction(1.0E-6)
27 {
28 }
29 
30 vcs_SpeciesProperties::~vcs_SpeciesProperties()
31 {
32 }
33 
34 vcs_SpeciesProperties::vcs_SpeciesProperties(const vcs_SpeciesProperties& b) :
35  IndexPhase(b.IndexPhase),
36  IndexSpeciesPhase(b.IndexSpeciesPhase),
37  OwningPhase(b.OwningPhase),
38  NumElements(b.NumElements),
39  SpeciesThermo(b.SpeciesThermo),
40  WtSpecies(b.WtSpecies),
41  Charge(b.Charge),
42  SurfaceSpecies(b.SurfaceSpecies),
43  VolPM(b.VolPM),
44  ReferenceMoleFraction(b.ReferenceMoleFraction)
45 {
46  SpName = b.SpName;
47  FormulaMatrixCol = b.FormulaMatrixCol;
48 }
49 
50 vcs_SpeciesProperties&
51 vcs_SpeciesProperties::operator=(const vcs_SpeciesProperties& b)
52 {
53  if (&b != this) {
54  IndexPhase = b.IndexPhase;
55  IndexSpeciesPhase = b.IndexSpeciesPhase;
56  OwningPhase = b.OwningPhase;
57  NumElements = b.NumElements;
58  SpName = b.SpName;
59  WtSpecies = b.WtSpecies;
60  FormulaMatrixCol = b.FormulaMatrixCol;
61  Charge = b.Charge;
62  SurfaceSpecies = b.SurfaceSpecies;
63  VolPM = b.VolPM;
64  ReferenceMoleFraction = b.ReferenceMoleFraction;
65  }
66  return *this;
67 }
68 
69 }
*std::vector< double > FormulaMatrixCol
Column of the formula matrix, comprising the element composition of the species.
std::string SpName
Name of the species.
Header for the object representing each phase within vcs.
Defines and definitions within the vcs package.
Internal declarations for the VCSnonideal package.