Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
LTI_Pairwise_Interaction Class Reference

Transport properties that act like pairwise interactions as in binary diffusion coefficients. More...

#include <LiquidTranInteraction.h>

Inheritance diagram for LTI_Pairwise_Interaction:
[legend]
Collaboration diagram for LTI_Pairwise_Interaction:
[legend]

Public Member Functions

 LTI_Pairwise_Interaction (TransportPropertyType tp_ind=TP_UNKNOWN)
 
void setParameters (LiquidTransportParams &trParam)
 Copy constructor. More...
 
doublereal getMixTransProp (doublereal *valueSpecies, doublereal *weightSpecies=0)
 Return the mixture transport property value. More...
 
doublereal getMixTransProp (std::vector< LTPspecies * > LTPptrs)
 
void getMatrixTransProp (DenseMatrix &mat, doublereal *speciesValues=0)
 Return the matrix of binary interaction parameters. More...
 
- Public Member Functions inherited from LiquidTranInteraction
 LiquidTranInteraction (TransportPropertyType tp_ind=TP_UNKNOWN)
 Constructor. More...
 
 LiquidTranInteraction (const LiquidTranInteraction &right)
 
LiquidTranInteractionoperator= (const LiquidTranInteraction &right)
 
virtual void init (const XML_Node &compModelNode=XML_Node(), thermo_t *thermo=0)
 initialize LiquidTranInteraction objects with thermo and XML node More...
 

Protected Attributes

std::vector< LTPspecies * > m_diagonals
 
- Protected Attributes inherited from LiquidTranInteraction
LiquidTranMixingModel m_model
 Model for species interaction effects Takes enum LiquidTranMixingModel. More...
 
TransportPropertyType m_property
 enum indicating what property this is (i.e viscosity) More...
 
thermo_tm_thermo
 pointer to thermo object to get current temperature More...
 
std::vector< DenseMatrix * > m_Aij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (no temperature dependence, dimensionless) More...
 
std::vector< DenseMatrix * > m_Bij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (linear temperature dependence, units 1/K) More...
 
DenseMatrix m_Eij
 Matrix of interactions (in energy units, 1/RT temperature dependence) More...
 
std::vector< DenseMatrix * > m_Hij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in energy units, 1/RT temperature dependence) More...
 
std::vector< DenseMatrix * > m_Sij
 Matrix of interaction coefficients for polynomial in molefraction*weight of speciesA (in entropy units, divided by R) More...
 
DenseMatrix m_Dij
 Matrix of interactions. More...
 

Detailed Description

Transport properties that act like pairwise interactions as in binary diffusion coefficients.

This class holds parameters for transport properties expressed as a matrix of pairwise interaction parameters. Input can be provided for constant or Arrhenius forms of the separate parameters.

Sample input for this method is

*    <transport model="Liquid">
*       <speciesDiffusivity>
*          <compositionDependence model="pairwiseInteraction">
*             <interaction speciesA="LiCl(L)" speciesB="KCl(L)">
*                <Dij units="m/s"> 1.0e-8 </Dij>
*                <Eij units="J/kmol"> 24.0e6 </Eij>
*             </interaction>
*          </compositionDependence>
*       </speciesDiffusivity>
*    </transport>
*  

Definition at line 381 of file LiquidTranInteraction.h.

Member Function Documentation

void setParameters ( LiquidTransportParams trParam)
virtual

Copy constructor.

Assignment operator

Reimplemented from LiquidTranInteraction.

Definition at line 457 of file LiquidTranInteraction.cpp.

References LiquidTransportParams::LTData, LiquidTranInteraction::m_thermo, Phase::nSpecies(), and LiquidTransportData::speciesDiffusivity.

doublereal getMixTransProp ( doublereal *  valueSpecies,
doublereal *  weightSpecies = 0 
)
virtual

Return the mixture transport property value.

Takes the separate species transport properties as input (this method does not know what transport property it is at this point.

Reimplemented from LiquidTranInteraction.

Definition at line 470 of file LiquidTranInteraction.cpp.

References Phase::getMoleFractions(), LiquidTranInteraction::m_thermo, and Phase::nSpecies().

void getMatrixTransProp ( DenseMatrix mat,
doublereal *  speciesValues = 0 
)
virtual

Return the matrix of binary interaction parameters.

Takes the proper mixing rule for the binary interaction parameters and calculates them

Reimplemented from LiquidTranInteraction.

Definition at line 496 of file LiquidTranInteraction.cpp.

References Phase::getMoleFractions(), LiquidTranInteraction::m_Dij, LiquidTranInteraction::m_Eij, LiquidTranInteraction::m_thermo, Phase::nSpecies(), DenseMatrix::resize(), and Phase::temperature().


The documentation for this class was generated from the following files: