Warning
This documentation is for an old version of Cantera. You can find docs for newer versions here.
Transport class constructor.
Create a new instance of class Transport(). One, three, or four arguments may be supplied. If one argument is given, it must be an instance of class Transport(), and a copy will be returned. If three or four arguments are given, the first two must be an instance of class XML_Node() and an instance of class ThermoPhase() respectively. The third argument is the type of modeling desired, specified by the string 'default', 'Mix' or 'Multi'. 'default' uses the default transport specified in the XML_Node(). The fourth argument is the logging level desired.
Parameters: |
|
---|---|
Returns: | Instance of class Transport() |
Get the binary diffusion coefficents.
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which binary diffusion coefficients are desired. |
---|---|
Returns: | A matrix of binary diffusion coefficients. The matrix is symmetric: d(i,j) = d(j,i). Units: m**2/s |
Get the electrical conductivity.
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which the electrical conductivity is desired. |
---|---|
Returns: | Electrical conductivity in S/m |
Get the mixture-averaged diffusion coefficients.
Object a must belong to a class derived from Transport, and that was constructed by specifying the 'Mix' option. If 'Mix' was not specified, you will get the error message
**** Method getMixDiffCoeffs not implemented. ****
In this case, try method multiDiffCoeffs(), or create a new gas mixture model that uses a mixture-averaged transport manager, for example:
>> gas = GRI30('Mix');
See also: MultiDiffCoeffs()
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which mixture-averaged diffusion coefficients are desired. |
---|---|
Returns: | Vector of length nSpecies with the mixture-averaged diffusion coefficients. Units: m**2/s |
Get the multicomponent diffusion coefficients.
Object a must belong to a class derived from Transport, and that was constructed by specifying the 'Multi' option. If 'Multi' was not specified, you will get the error message
**** Method getMultiDiffCoeffs not implemented. ****
In this case, try method mixDiffCoeffs(), or create a new gas mixture model that uses a mixture-averaged transport manager, for example:
>> gas = GRI30('Multi');
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which multicomponent diffusion coefficients are desired. |
---|---|
Returns: | Vector of length nSpecies with the multicomponent diffusion coefficients. Units: m**2/s |
Set the parameters.
Set parameters of the Transport() instance. Not defined for all transport types.
Parameters: |
|
---|
Set the thermal conductivity.
This method can only be used with transport models that support directly setting the value of the thermal conductivity.
Parameters: |
|
---|
Get the thermal conductivity.
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which the thermal conductivity is desired. |
---|---|
Returns: | Thermal conductivity. Units: W/m-K |
Get the thermal diffusion coefficients.
Object a must belong to a class derived from Transport, and that was constructed by specifying the 'Multi' option. If 'Multi' was not specified, the returned values will all be zero.
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which the thermal diffusion coefficients are desired. |
---|---|
Returns: | Vector of thermal diffusion coefficients of length nSpecies |
Get the dynamic viscosity.
Parameters: | a – Instance of class Transport() (or another object derived from Transport) for which the viscosity is desired. |
---|---|
Returns: | Dynamic viscosity. Units: Pa*s |