DustyGasTransport.cpp Source File#
DustyGasTransport.cpp
Go to the documentation of this file.
Headers for the DustyGasTransport object, which models transport properties in porous media using the...
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
double * ptrColumn(size_t j)
Return a pointer to the top of column j, columns are contiguous in memory.
Definition Array.h:203
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
void getMolarFluxes(const double *const state1, const double *const state2, const double delta, double *const fluxes) override
Get the molar fluxes [kmol/m^2/s], given the thermodynamic state at two nearby points.
Definition DustyGasTransport.cpp:96
bool m_bulk_ok
Update-to-date variable for Binary diffusion coefficients.
Definition DustyGasTransport.h:247
void updateTransport_T()
Update temperature-dependent quantities within the object.
Definition DustyGasTransport.cpp:182
bool m_knudsen_ok
Update-to-date variable for Knudsen diffusion coefficients.
Definition DustyGasTransport.h:244
void initialize(ThermoPhase *phase, Transport *gastr)
Initialization routine called by TransportFactory.
Definition DustyGasTransport.cpp:17
void updateBinaryDiffCoeffs()
Private routine to update the dusty gas binary diffusion coefficients.
Definition DustyGasTransport.cpp:45
void updateTransport_C()
Update concentration-dependent quantities within the object.
Definition DustyGasTransport.cpp:192
void updateMultiDiffCoeffs()
Update the Multicomponent diffusion coefficients that are used in the approximation.
Definition DustyGasTransport.cpp:155
void updateKnudsenDiffCoeffs()
Update the Knudsen diffusion coefficients.
Definition DustyGasTransport.cpp:62
void setMeanParticleDiameter(double dbar)
Set the mean particle diameter.
Definition DustyGasTransport.cpp:225
void setTortuosity(double tort)
Set the tortuosity (dimensionless)
Definition DustyGasTransport.cpp:212
void setPorosity(double porosity)
Set the porosity (dimensionless)
Definition DustyGasTransport.cpp:205
Transport & gasTransport()
Return a reference to the transport manager used to compute the gas binary diffusion coefficients and...
Definition DustyGasTransport.cpp:235
unique_ptr< Transport > m_gastran
Pointer to the transport object for the gas phase.
Definition DustyGasTransport.h:280
void setPermeability(double B)
Set the permeability of the media.
Definition DustyGasTransport.cpp:230
void getMultiDiffCoeffs(const size_t ld, double *const d) override
Return the Multicomponent diffusion coefficients. Units: [m^2/s].
Definition DustyGasTransport.cpp:172
void getMoleFractions(double *const x) const
Get the species mole fraction vector.
Definition Phase.cpp:434
const vector< double > & molecularWeights() const
Return a const reference to the internal vector of molecular weights.
Definition Phase.cpp:395
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
virtual void setState_TPX(double t, double p, const double *x)
Set the temperature (K), pressure (Pa), and mole fractions.
Definition ThermoPhase.cpp:85
virtual void init(ThermoPhase *thermo, int mode=0, int log_level=0)
Initialize a transport manager.
Definition Transport.h:407
void scale(InputIter begin, InputIter end, OutputIter out, S scale_factor)
Multiply elements of an array by a scale factor.
Definition utilities.h:104
void increment(const DenseMatrix &A, const double *b, double *prod)
Multiply A*b and add it to the result in prod. Uses BLAS routine DGEMV.
Definition DenseMatrix.cpp:212
const double Tiny
Small number to compare differences of mole fractions against.
Definition ct_defs.h:173
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
int invert(DenseMatrix &A, size_t nn)
invert A. A is overwritten with A^-1.
Definition DenseMatrix.cpp:226
Contains declarations for string manipulation functions within Cantera.
Various templated functions that carry out common vector and polynomial operations (see Templated Arr...
Generated by