OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
experimental_multi_fluid.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 //
3 // FCST: Fuel Cell Simulation Toolbox
4 //
5 // Copyright (C) 2006-2013 by Energy Systems Design Laboratory, University of Alberta
6 //
7 // This software is distributed under the MIT License
8 // For more information, see the README file in /doc/LICENSE
9 //
10 // - Class: experimental_multi_fluid.h
11 // - Description: This class describes a multi fluid
12 // - Developers: Valentin N. Zingan, University of Alberta
13 // - Id: $Id: experimental_multi_fluid.h 2605 2014-08-15 03:36:44Z secanell $
14 //
15 // ----------------------------------------------------------------------------
16 
17 #ifndef _FCST_FUELCELLSHOP_MATERIAL_EXPERIMENTAL_MULTI_FLUID_H_
18 #define _FCST_FUELCELLSHOP_MATERIAL_EXPERIMENTAL_MULTI_FLUID_H_
19 
20 #include "base_material.h"
21 
22 namespace FuelCellShop
23 {
24  namespace Material
25  {
26 
45  {
46  public:
47 
49 
50 
54  ExperimentalMultiFluid(const std::string& name);
55 
59  virtual ~ExperimentalMultiFluid();
60 
64  virtual void declare_parameters(ParameterHandler& param) const;
65 
69  virtual void initialize(ParameterHandler& param);
70 
72 
74 
75 
80  const unsigned int& get_number_of_species() const
81  {
82  return n_species;
83  }
84 
89  const double& get_temperature_of_mixture() const
90  {
91  return T_mixture;
92  }
93 
98  const std::vector<double>& get_molar_mass() const
99  {
100  return molar_mass;
101  }
102 
107  const std::vector<double>& get_dynamic_viscosity() const
108  {
109  return dynamic_viscosity;
110  }
111 
116  const std::vector<double>& get_bulk_viscosity() const
117  {
118  return bulk_viscosity;
119  }
120 
125  const Table< 2, double >& get_maxwell_stefan_isobaric_diffusion_coefficient() const
126  {
128  }
129 
134  virtual void print_material_properties() const;
135 
137 
138  protected:
139 
141  // DATA //
143 
145 
146 
150  unsigned int n_species;
151 
155  double T_mixture;
156 
160  std::vector<double> molar_mass;
161 
165  std::vector<double> dynamic_viscosity;
166 
170  std::vector<double> bulk_viscosity;
171 
177 
179 
180  };
181 
182  } // Material
183 
184 } // FuelCellShop
185 
186 #endif
const double & get_temperature_of_mixture() const
This function returns T_mixture.
Definition: experimental_multi_fluid.h:89
const std::string name
Name of the layer.
Definition: base_material.h:155
double T_mixture
Temperature of mixture, K.
Definition: experimental_multi_fluid.h:155
std::vector< double > dynamic_viscosity
Dynamic viscosity, Pa sec.
Definition: experimental_multi_fluid.h:165
std::vector< double > molar_mass
Molar mass, kg/mol.
Definition: experimental_multi_fluid.h:160
std::vector< double > bulk_viscosity
Bulk viscosity, Pa sec.
Definition: experimental_multi_fluid.h:170
const unsigned int & get_number_of_species() const
This function returns n_species.
Definition: experimental_multi_fluid.h:80
const std::vector< double > & get_molar_mass() const
This function returns molar_mass.
Definition: experimental_multi_fluid.h:98
const std::vector< double > & get_dynamic_viscosity() const
This function returns dynamic_viscosity.
Definition: experimental_multi_fluid.h:107
virtual void declare_parameters(ParameterHandler &param) const
Declare parameters.
const std::vector< double > & get_bulk_viscosity() const
This function returns bulk_viscosity.
Definition: experimental_multi_fluid.h:116
const Table< 2, double > & get_maxwell_stefan_isobaric_diffusion_coefficient() const
This function returns maxwell_stefan_isobaric_diffusion_coefficient.
Definition: experimental_multi_fluid.h:125
virtual void initialize(ParameterHandler &param)
Initialize parameters.
ExperimentalMultiFluid(const std::string &name)
Constructor.
unsigned int n_species
Number of species.
Definition: experimental_multi_fluid.h:150
virtual void print_material_properties() const
This function prints out the material properties.
This class describes.
Definition: experimental_multi_fluid.h:44
Virtual class used to provide the interface for all material classes.
Definition: base_material.h:54
Table< 2, double > maxwell_stefan_isobaric_diffusion_coefficient
Each entry of this structure defines a Maxwell-Stefan isobaric diffusion coefficient of gas in gas ...
Definition: experimental_multi_fluid.h:176