cantera/include/cantera/transport/ConstantTransport.h

52 lines
1.5 KiB
C++

/**
* @file ConstantTransport.h
* Headers for the ConstantTransport object, which models transport
* properties in ideal gas solutions using the unity Lewis number
* approximation
* (see \ref tranprops and \link Cantera::ConstantTransport ConstantTransport \endlink) .
*/
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#ifndef CT_CONSTANTTRAN_H
#define CT_CONSTANTTRAN_H
#include "MixTransport.h"
namespace Cantera
{
//! Class ConstantTransport implements the unity Lewis number approximation
//! for the mixture-averaged species diffusion coefficients. Mixture-averaged
//! transport properties for viscosity and thermal conductivity are inherited
//! from the MixTransport class.
//! @ingroup tranprops
class ConstantTransport : public MixTransport
{
public:
//! Default constructor.
ConstantTransport();
virtual std::string transportType() const {
return "Constant";
}
//! Update the internal parameters whenever the temperature has changed
/*!
* This is called whenever a transport property is requested if the
* temperature has changed since the last call to update_T().
*/
virtual void update_T();
virtual void init(thermo_t* thermo, int mode=0, int log_level=0);
protected:
//! Reference temperature at which binary diffusivities are calculated
/*!
* Units = K
*/
doublereal m_reftemp;
};
}
#endif