Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 734 Bytes

File metadata and controls

16 lines (9 loc) · 734 Bytes

OpenFOAM projet with custom solver - Suspension Balance Model

Problem definition

We want to numerically solve a Couette flow with scalar transport. Thus, the equations are :

  • Incompressible Navier-Stokes equations : $\rho\frac{DU}{Dt} = \nabla \cdot \Sigma + \Delta \rho^i gC$

  • Transport equation : $\frac{\partial C}{\partial t} + \vec{U}\cdot \vec{\nabla} C = - \vec{\nabla} \cdot \vec{j}$

With $C$ the phase volume fraction, $\vec{U}$ the suspension mean velocity vector and $\vec{j}$ the particle migration flux.

Solver programmation

The "starting point" solver is icoFoam. In the .C file we have to implement the transport equation, named CEqn. It is also required to declare CEqn's variables in createField.H