This is a prototype implementation of (p, T) tabulated density, enthalpy,
viscosity and thermal conductivity using a uniform table in pressure and
temperature for fast lookup and interpolation. The standard Newton method is
used for h->T inversion which could be specifically optimised for this kind of
table in the future.
There are now three possible code entries for the scalarCodedSource,
vectorCodedSource, etc..., fvOptions. These are `codeAddSup` for basic
sources, `codeAddRhoSup` for compressible sources, and
`codeAddAlphaRhoSup` for phase (compressible) sources.
Previously `codeAddSup` was used for both basic and compressible
sources, and phase sources were not implemented. This meant that whilst
a compressible source could be created, it could not make use of the
`rho` argument or the basic source function would fail to compile.
These were marked as being necessary to resolve a bug in Gcc, but no
tested version of Gcc failed to compile with these removed. It is
assumed that the Gcc bug is in a version older than those supported.
Also added "db()" method to fvPatch in order to remove inclusion of
fvPatchFvMeshTemplates.C in fvMesh.H. The resulting inclusion strategy
is significantly simpler as a result.
The new generalised framework for thermophysical mixing models has allowed the
efficient implementation of the useful combination for gases of coefficient
mixing for thermodynamic properties with the Wilke model for transport
properties:
Description
Thermophysical properties mixing class which applies mass-fraction weighted
mixing to the thermodynamic coefficients and Wilke's equation to
transport properties.
Reference:
\verbatim
Wilke, C. R. (1950).
A viscosity equation for gas mixtures.
The journal of chemical physics, 18(4), 517-519.
\endverbatim
The new generalised framework for thermophysical mixing models has allowed the
efficient implementation of the useful combination for gases of coefficient
mixing for thermodynamic properties with the Wilke model for transport
properties:
Description
Thermophysical properties mixing class which applies mass-fraction weighted
mixing to the thermodynamic coefficients and Wilke's equation to
transport properties.
Reference:
\verbatim
Wilke, C. R. (1950).
A viscosity equation for gas mixtures.
The journal of chemical physics, 18(4), 517-519.
\endverbatim
Expanded the documentation and updated the mean free path calculation
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
alphah is derived from kappa/Cp and mixing rules should be applied to kappa and
Cp separately rather than to alphah so it is more consistent to calculate the
mixture alphah from the mixture kappa and Cp at the heThermo level.
This provides support for mixtures of species in which coefficient mixing of the
thermophysical properties is not possible/practical, e.g. tabulated data.
Thermodynamic properties are mass-fraction mixed and transport properties
mole-fraction mixed.
In the new general mixture framework it is now possible to implement more
complex mixing rules which is particularly useful for transport properties,
e.g. the Wilke model for gases. Combinations of coefficient mixing for thermo
and complex mixing for transport is also supported.
valueMultiComponentMixture is currently instantiated on all the standard
tabulated thermo combination:
thermoType
{
type heRhoThermo;
mixture valueMultiComponentMixture;
transport tabulated;
thermo hTabulated;
energy sensibleEnthalpy;
equationOfState icoTabulated;
specie specie;
}
but can be used for any of the current or future combinations.