Difference between revisions of "ChtMultiRegionFoam"
From OpenFOAMWiki
(→Equations) |
(→Equations) |
||
Line 14: | Line 14: | ||
====Mass conservation==== | ====Mass conservation==== | ||
+ | |||
+ | The variable-density continuity equation is | ||
+ | |||
+ | <table width="70%"><tr><td> | ||
+ | <center><math> | ||
+ | |||
+ | \frac{\partial \rho}{\partial t} + \frac{\partial {\rho u}_j}{\partial x_j} = 0 | ||
+ | |||
+ | </math></center> | ||
+ | </td><td width="5%">(1)</td></tr></table> | ||
+ | |||
+ | The source code can be found in src/finiteVolume/cfdTools/compressible/rhoEqn.H: | ||
+ | |||
+ | <br><cpp> | ||
+ | |||
+ | { | ||
+ | fvScalarMatrix rhoEqn | ||
+ | ( | ||
+ | fvm::ddt(rho) | ||
+ | + fvc::div(phi) | ||
+ | == | ||
+ | fvOptions(rho) | ||
+ | ); | ||
+ | |||
+ | fvOptions.constrain(rhoEqn); | ||
+ | |||
+ | rhoEqn.solve(); | ||
+ | |||
+ | fvOptions.correct(rho); | ||
+ | } | ||
+ | |||
+ | </cpp><br> | ||
====Momentum conservation==== | ====Momentum conservation==== |
Revision as of 17:49, 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); }