CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

DPMFoam pressure poisson and momentum corrector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2019, 11:41
Default DPMFoam pressure poisson and momentum corrector
  #1
Member
 
Bas Nieuwboer
Join Date: Mar 2013
Posts: 34
Rep Power: 13
bjnieuwboer is on a distinguished road
Dear Foamers,

I am writing out the equations for solving the fluid motion as used in DPMFoam and I came to what I thought to be an inconsistency. Can someone help me by pointing out the error I am making in the derivation of the pressure Poisson equation and momentum corrector for DPMFoam? In the derivation I am leaving out the forces of the particles on the fluid for simplicity. I am deriving the pressure poisson and the momentum corrector from two starting points. But I cannot get them matched up with the code.

Method A:
Start with the update formulation for the fluid:

\alpha_f \boldsymbol{u_c}  - \alpha_f \boldsymbol{H} \boldsymbol{A}^{-1}  = -\boldsymbol{A}^{-1} \nabla P
The continuity equation is used to derive the pressure poisson equation

\frac{\partial \alpha_c }{\partial t} + \nabla \cdot \left(   \alpha_c \boldsymbol{u_c}   \right)
These two equations are combined and lead to the wrong pressure poisson equation:
\nabla \cdot \left( \boldsymbol{A}^{-1}  \nabla P \right) =\frac{\partial \alpha_c}{\partial t} + \nabla \cdot \left( \alpha_c \, \boldsymbol{H}  \boldsymbol{A}^{-1}  \right)
The momentum predictor is right:
\boldsymbol{u_c}  =  \boldsymbol{H} \boldsymbol{A}^{-1} -  \frac{1}{\alpha_f} \boldsymbol{A}^{-1} \nabla P


Method B:
Start with the update formulation without the concentration:
\boldsymbol{u_c}  - \boldsymbol{H} \boldsymbol{A}^{-1}  = -\boldsymbol{A}^{-1} \nabla P
The same continuity equation is used to derive the pressure poisson equation

The two equations are combined and lead to the right pressure poisson equation:
\nabla \cdot \left( \alpha_c \,   \boldsymbol{A}^{-1}  \nabla P \right)  =\frac{\partial \alpha_c}{\partial t} + \nabla \cdot \left( \alpha_c \,  \boldsymbol{H}  \boldsymbol{A}^{-1}  \right)
However, the momentum predictor is wrong:
\boldsymbol{u_c}  =  \boldsymbol{H} \boldsymbol{A}^{-1} -  \boldsymbol{A}^{-1} \nabla P


At method A the pressure poisson equation is wrong compared with the code and in method B the momentum corrector is wrong. I cannot find literature on the derivation of the pressure Poisson for a fluid with a void fraction. Also in the really nice document of Jeroen Hofman, this is not addressed. Can someone help me address this issue?
bjnieuwboer is offline   Reply With Quote

Reply

Tags
dpmfoam, momentum predictor, openfoam, poisson equation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure boundary condition C-H Kuo Main CFD Forum 18 September 16, 2016 04:19
pressure poisson boundary condition in SIMPLE family of coupling algorithm f0208secretx FLUENT 1 April 8, 2015 00:40
Pressure enigma. Sara Main CFD Forum 22 July 30, 2009 05:46
Immersed boundary method with momentum forcing Fuka Main CFD Forum 1 February 6, 2006 04:46
pressure poisson equation on staggerred grid chandra Main CFD Forum 9 May 5, 2005 07:01


All times are GMT -4. The time now is 14:17.