This is a fluid state which allows to set the fluid temperatures and takes all other quantities from an other fluid state.
#include <dumux/material/fluidstates/temperatureoverlay.hh>
| Public Types | |
| using | Scalar = typename FluidState::Scalar | 
| export the scalar type | |
| Public Member Functions | |
| TemperatureOverlayFluidState (const FluidState &fs) | |
| Constructor. | |
| TemperatureOverlayFluidState (Scalar T, const FluidState &fs) | |
| TemperatureOverlayFluidState (const TemperatureOverlayFluidState &fs)=default | |
| TemperatureOverlayFluidState (TemperatureOverlayFluidState &&fs)=default | |
| TemperatureOverlayFluidState & | operator= (const TemperatureOverlayFluidState &fs)=default | 
| TemperatureOverlayFluidState & | operator= (TemperatureOverlayFluidState &&fs)=default | 
| Scalar | saturation (int phaseIdx) const | 
| Returns the saturation \(S_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[-]}\). | |
| Scalar | moleFraction (int phaseIdx, int compIdx) const | 
| Returns the molar fraction \(x^\kappa_\alpha\) of the component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). | |
| Scalar | massFraction (int phaseIdx, int compIdx) const | 
| Returns the mass fraction \(X^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). | |
| Scalar | averageMolarMass (int phaseIdx) const | 
| The average molar mass \(\overline M_\alpha\) of phase \(\alpha\) in \(\mathrm{[kg/mol]}\). | |
| Scalar | molarity (int phaseIdx, int compIdx) const | 
| The molar concentration \(c^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). | |
| Scalar | fugacity (int phaseIdx, int compIdx) const | 
| The fugacity \(f^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[Pa]}\). | |
| Scalar | fugacityCoefficient (int phaseIdx, int compIdx) const | 
| The fugacity coefficient \(\Phi^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). | |
| Scalar | molarVolume (int phaseIdx) const | 
| The molar volume \(v_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[m^3/mol]}\). | |
| Scalar | density (int phaseIdx) const | 
| The mass density \(\rho_\alpha\) of the fluid phase \(\alpha\) in \(\mathrm{[kg/m^3]}\). | |
| Scalar | molarDensity (int phaseIdx) const | 
| The molar density \(\rho_\alpha\) of the fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). | |
| Scalar | temperature (int phaseIdx) const | 
| The temperature of a fluid phase \(\mathrm{[K]}\). | |
| Scalar | pressure (int phaseIdx) const | 
| The pressure \(p_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[Pa]}\). | |
| Scalar | enthalpy (int phaseIdx) const | 
| The specific enthalpy \(h_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\). | |
| Scalar | internalEnergy (int phaseIdx) const | 
| The specific internal energy \(u_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\). | |
| Scalar | viscosity (int phaseIdx) const | 
| The dynamic viscosity \(\mu_\alpha\) of fluid phase \(\alpha\) in \(\mathrm{[Pa s]}\). | |
| void | setTemperature (Scalar value) | 
| Set the temperature \(\mathrm{[K]}\) of a fluid phase. | |
| Static Public Attributes | |
| static constexpr int | numPhases = FluidState::numPhases | 
| static constexpr int | numComponents = FluidState::numComponents | 
| Protected Attributes | |
| const FluidState * | fs_ | 
| Scalar | temperature_ | 
| using Dumux::TemperatureOverlayFluidState< FluidState >::Scalar = typename FluidState::Scalar | 
| 
 | inlineexplicit | 
| fs | Fluidstate The overlay fluid state copies the saturation from the argument, so it initially behaves exactly like the underlying fluid state. | 
| 
 | inline | 
| 
 | default | 
| 
 | default | 
| 
 | inline | 
The average molar mass is the mean mass of a mole of the fluid at current composition. It is defined as the sum of the component's molar masses weighted by the current mole fraction:
\[\mathrm{ \overline M_\alpha = \sum_\kappa M^\kappa x_\alpha^\kappa}\]
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
The fugacity is defined as: \(f_\alpha^\kappa := \Phi^\kappa_\alpha x^\kappa_\alpha p_\alpha \;,\) where \(\Phi^\kappa_\alpha\) is the fugacity coefficient [reid1987] . The physical meaning of fugacity becomes clear from the equation:
\[f_\alpha^\kappa = p_\alpha \exp\left\{\frac{\zeta^\kappa_\alpha}{R T_\alpha} \right\} \;,\]
where \(\zeta^\kappa_\alpha\) represents the \(\kappa\)'s chemical potential in phase \(\alpha\), \(R\) stands for the ideal gas constant, and \(T_\alpha\) for the absolute temperature of phase \(\alpha\). Assuming thermal equilibrium, there is a one-to-one mapping between a component's chemical potential \(\zeta^\kappa_\alpha\) and its fugacity \(f^\kappa_\alpha\). In this case chemical equilibrium can thus be expressed by:
\[f^\kappa := f^\kappa_\alpha = f^\kappa_\beta\quad\forall \alpha, \beta\]
| 
 | inline | 
| 
 | inline | 
The specific internal energy is defined by the relation:
\[u_\alpha = h_\alpha - \frac{p_\alpha}{\rho_\alpha}\]
| 
 | inline | 
The mass fraction \(X^\kappa_\alpha\) is defined as the weight of all molecules of a component divided by the total mass of the fluid phase. It is related with the component's mole fraction by means of the relation
\[X^\kappa_\alpha = x^\kappa_\alpha \frac{M^\kappa}{\overline M_\alpha}\;,\]
where \(M^\kappa\) is the molar mass of component \(\kappa\) and \(\overline M_\alpha\) is the mean molar mass of a molecule of phase \(\alpha\).
| phaseIdx | the index of the phase | 
| compIdx | the index of the component | 
| 
 | inline | 
| 
 | inline | 
This quantity is usually called "molar concentration" or just "concentration", but there are many other (though less common) measures for concentration.
| 
 | inline | 
This quantity is the inverse of the molar density.
| 
 | inline | 
The molar fraction \(x^\kappa_\alpha\) is defined as the ratio of the number of molecules of component \(\kappa\) and the total number of molecules of the phase \(\alpha\).
| phaseIdx | the index of the phase | 
| compIdx | the index of the component | 
| 
 | default | 
| 
 | default | 
| 
 | inline | 
| 
 | inline | 
The saturation is defined as the pore space occupied by the fluid divided by the total pore space:
\[S_\alpha := \frac{\phi \mathcal{V}_\alpha}{\phi \mathcal{V}}\]
| phaseIdx | the index of the phase | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | protected | 
| 
 | staticconstexpr | 
| 
 | staticconstexpr | 
| 
 | protected |