IonGasTransport.cpp Source File#
IonGasTransport.cpp
Go to the documentation of this file.
Monchick and Mason collision integrals.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
void resize(size_t n, size_t m, double v=0.0) override
Resize the matrix.
Definition DenseMatrix.cpp:60
virtual void setupCollisionParameters()
Setup parameters for a new kinetic-theory-based transport manager for low-density gases.
Definition GasTransport.cpp:293
bool m_visc_ok
Update boolean for mixture rule for the mixture viscosity.
Definition GasTransport.h:303
virtual void fitDiffCoeffs(MMCollisionInt &integrals)
Generate polynomial fits to the binary diffusion coefficients.
Definition GasTransport.cpp:676
vector< double > m_sqvisc
vector of square root of species viscosities sqrt(kg /m /s).
Definition GasTransport.h:354
bool m_bindiff_ok
Update boolean for the binary diffusivities at unit pressure.
Definition GasTransport.h:312
virtual void updateViscosity_T()
Update the temperature-dependent viscosity terms.
Definition GasTransport.cpp:84
double m_viscmix
Internal storage for the viscosity of the mixture (kg /m /s)
Definition GasTransport.h:300
DenseMatrix m_bdiff
Matrix of binary diffusion coefficients at the reference pressure and the current temperature Size is...
Definition GasTransport.h:392
vector< vector< double > > m_diffcoeffs
Polynomial fits to the binary diffusivity of each species.
Definition GasTransport.h:388
double m_kbt
Current value of Boltzmann constant times the temperature (Joules)
Definition GasTransport.h:364
DenseMatrix m_reducedMass
This is the reduced mass of the interaction between species i and j.
Definition GasTransport.h:491
bool m_viscwt_ok
Update boolean for the weighting factors for the mixture viscosity.
Definition GasTransport.h:306
DenseMatrix m_phi
m_phi is a Viscosity Weighting Function. size = m_nsp * n_nsp
Definition GasTransport.h:319
void setupCollisionIntegral()
Setup range for polynomial fits to collision integrals of Monchick & Mason .
Definition GasTransport.cpp:354
void fitDiffCoeffs(MMCollisionInt &integrals) override
Generate polynomial fits to the binary diffusion coefficients.
Definition IonGasTransport.cpp:156
void getMobilities(double *const mobi) override
The mobilities for ions in gas.
Definition IonGasTransport.cpp:382
void init(ThermoPhase *thermo, int mode, int log_level) override
Initialize a transport manager.
Definition IonGasTransport.cpp:17
double thermalConductivity() override
Returns the mixture thermal conductivity (W/m/K).
Definition IonGasTransport.cpp:120
void getMixDiffCoeffs(double *const d) override
The mixture transport for ionized gas.
Definition IonGasTransport.cpp:347
vector< double > m_om11_O2
polynomial of the collision integral for O2/O2-
Definition IonGasTransport.h:102
double omega11_n64(const double tstar, const double gamma)
Collision integral of omega11 of n64 collision model.
Definition IonGasTransport.cpp:315
double electricalConductivity() override
The electrical conductivity (Siemens/m).
Definition IonGasTransport.cpp:139
void update_T() override
Update the internal parameters whenever the temperature has changed.
Definition MixTransport.cpp:83
double m_lambda
Internal storage for the calculated mixture thermal conductivity.
Definition MixTransport.h:172
void updateCond_T()
Update the temperature dependent parts of the species thermal conductivities.
Definition MixTransport.cpp:114
void update_C() override
Update the internal parameters whenever the concentrations have changed.
Definition MixTransport.cpp:100
vector< double > m_cond
vector of species thermal conductivities (W/m /K)
Definition MixTransport.h:166
bool m_condmix_ok
Update boolean for the mixture rule for the mixture thermal conductivity.
Definition MixTransport.h:178
const vector< double > & molecularWeights() const
Return a const reference to the internal vector of molecular weights.
Definition Phase.cpp:395
size_t speciesIndex(const string &name) const
Returns the index of a species named 'name' within the Phase object.
Definition Phase.cpp:129
double charge(size_t k) const
Dimensionless electrical charge of a single molecule of species k The charge is normalized by the the...
Definition Phase.h:538
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
virtual double minTemp(size_t k=npos) const
Minimum temperature for which the thermodynamic data for the species or phase are valid.
Definition ThermoPhase.h:451
virtual double maxTemp(size_t k=npos) const
Maximum temperature for which the thermodynamic data for the species are valid.
Definition ThermoPhase.h:504
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
string vec2str(const vector< double > &v, const string &fmt, const string &sep)
Convert a vector to a string (separated by commas)
Definition stringUtils.cpp:33
void writelogf(const char *fmt, const Args &... args)
Write a formatted message to the screen.
Definition global.h:195
void writelog(const string &fmt, const Args &... args)
Write a formatted message to the screen.
Definition global.h:175
double polyfit(size_t n, size_t deg, const double *xp, const double *yp, const double *wp, double *pp)
Fits a polynomial function to a set of data points.
Definition polyfit.cpp:14
double getElementWeight(const string &ename)
Get the atomic weight of an element.
Definition Elements.cpp:251
void multiply(const DenseMatrix &A, const double *const b, double *const prod)
Multiply A*b and return the result in prod. Uses BLAS routine DGEMV.
Definition DenseMatrix.cpp:207
Contains declarations for string manipulation functions within Cantera.
Various templated functions that carry out common vector and polynomial operations (see Templated Arr...
Generated by