Difference between revisions of "ChtMultiRegionFoam"
From OpenFOAMWiki
(→Equations) |
(→Momentum conservation) |
||
Line 48: | Line 48: | ||
====Momentum conservation==== | ====Momentum conservation==== | ||
+ | |||
+ | <table width="70%"><tr><td> | ||
+ | <center><math> | ||
+ | |||
+ | \frac{ \partial (\rho {u}_i)}{\partial t} + \frac{\partial}{\partial x_j} \left( \rho {u}_j u_i \right) = | ||
+ | |||
+ | - \frac{\partial p_{rgh}} {\partial{x_i}} + \frac{\partial \rho g_j x_j}{\partial x_i} + \frac{\partial}{\partial x_j} \left( \tau_{ij} + \tau_{t_{ij}} \right) | ||
+ | |||
+ | </math></center> | ||
+ | </td><td width="5%">(2)</td></tr></table> | ||
+ | |||
+ | <math> u </math> represent the velocity, <math> g_i </math> the gravitational acceleration, <math> p_{rgh} = p - \rho g_j x_j </math> the pressure minus the hydrostatic pressure and | ||
+ | <math> \tau_{ij} </math> and <math> \tau_{t_{ij}} </math> are the viscose and turbulent stresses. | ||
====Energy conservation==== | ====Energy conservation==== |
Revision as of 18:13, 2 November 2018
ChtMultiRegionFoam
Solver for steady or transient fluid flow and solid heat conduction, with conjugate heat transfer between regions, buoyancy effects, turbulence, reactions and radiation modelling.
Contents
1 Equations
For each region defined as fluid, the according equation for the fluid is solved and the same is done for each solid region. The regions are coupled by a thermal boundary condition.
1.1 Equations Fluid
For each fluid region the compressible Navier Stokes equation are solved.
1.1.1 Mass conservation
The variable-density continuity equation is
| (1) |
The source code can be found in src/finiteVolume/cfdTools/compressible/rhoEqn.H:
{ fvScalarMatrix rhoEqn ( fvm::ddt(rho) + fvc::div(phi) == fvOptions(rho) ); fvOptions.constrain(rhoEqn); rhoEqn.solve(); fvOptions.correct(rho); }
1.1.2 Momentum conservation
| (2) |
represent the velocity, the gravitational acceleration, the pressure minus the hydrostatic pressure and and are the viscose and turbulent stresses.