Difference between revisions of "Contrib/CompressibleMixingPhaseChangeFoam"
From OpenFOAMWiki
< Contrib
Mkraposhin (Talk | contribs) (→Model Equations) |
Mkraposhin (Talk | contribs) (→Model Equations) |
||
Line 22: | Line 22: | ||
− | <math>\rho = \alpha_l \rho_l + \alpha_v \rho_v </math> | + | <math> |
+ | \rho = \alpha_l \rho_l + \alpha_v \rho_v | ||
+ | </math> | ||
Line 45: | Line 47: | ||
\alpha_l \textbf{U} | \alpha_l \textbf{U} | ||
\right ) | \right ) | ||
− | = \frac {\alpha_l}{\rho_l} \frac {d \rho_l}{dt} + \frac {\dot m_l}{\rho_l} | + | = -\frac {\alpha_l}{\rho_l} \frac {d \rho_l}{dt} + \frac {\dot m_l}{\rho_l} |
</math> | </math> | ||
Line 76: | Line 78: | ||
\frac {\partial \rho \textbf{U}}{\partial t} | \frac {\partial \rho \textbf{U}}{\partial t} | ||
+ | + | ||
− | \nabla \cdot \rho \textbf{U} \textbf{U} = \nabla \cdot R^Eff - \nabla p + \rho textbf{g} | + | \nabla \cdot \rho \textbf{U} \textbf{U} = \nabla \cdot R^{Eff} - \nabla p + \rho \textbf{g} |
+ | </math> | ||
+ | |||
+ | * Pressure equation obtained by summation of equation for volume phase fraction of liquid and gas phases: | ||
+ | <math> | ||
+ | \nabla \cdot \left ( \textbf{U} \right ) | ||
+ | = | ||
+ | - \left ( \frac {\alpha_1 \psi_1}{\rho_1} + \frac {\alpha_2 \psi_2}{\rho_2} \right ) \frac {d p}{d t} - | ||
+ | \left ( \frac {\alpha_1}{\rho_1} \frac {d \psi_1}{d t} + \frac {\alpha_2}{\rho_2} \frac {d \psi_2}{d t} \right ) p - | ||
+ | \left ( \frac {\alpha_1}{\rho_1} \frac {d \hat \rho_1}{d t} + \frac {\alpha_2}{\rho_2} \frac {d \hat \rho_2}{d t} \right )+ | ||
+ | \dot m_1 \left ( \frac{1}{\rho_1} - \frac{1}{\rho_2} \right ) | ||
</math> | </math> | ||
− | + | * Phase change model | |
− | + | * Energy equation | |
[http://www.os-cfd.ru/compressibleMixingPhaseChangeFoam/Solver.tgz Solver sources and tutorials located here] | [http://www.os-cfd.ru/compressibleMixingPhaseChangeFoam/Solver.tgz Solver sources and tutorials located here] |
Revision as of 16:14, 30 December 2012
Solver for two fluids with phase change (for example - water <---> steam), pressure and temperature density dependence
Model Equations
- Equation of state
Low-compressible fluid:
Ideal gas:
By combining this equations, we can get general relation:
where computed with respect to previous formulations
mixture density calculated as
- Liquid volume transport
Let us consider transport of liquid (heavy phase) volume fraction :
By converting to volume fluxes we get:
Using equation of state, we can reformulate substantial derivative for density in terms of pressure for any phase:
- General rule for converting from mass to volume fluxes in transport equation
- Momentum equation (velocity prediction)
- Pressure equation obtained by summation of equation for volume phase fraction of liquid and gas phases:
- Phase change model
- Energy equation