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

Compression flux while solving alpha equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2019, 06:05
Default Compression flux while solving alpha equation
  #1
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Hey Foamers


I had a question on how the compression flux is modeled in VOF model
In literature it is expressed as

Ur = min (C_alpha phi/Sf, max(phi/Sf) )nf (Eqn1)

where C_alpha, phi, Sf and nf are compression factor, velocity flux, magnitude of cell surface area, unit normal vector.


However in OpenFoam 6 it is written as
surfaceScalarField phic(mixture.cAlpha()*mag(phi/mesh.magSf()));


which would be Ur = C_alpha phi nf/Sf (Eqn2).


As I understand it, when C_alpha=1, both Eqn 1 and Eqn 2 are equivalent.


What do you all reckon did I misunderstand it ?


-Kurian
kuria is offline   Reply With Quote

Old   December 4, 2020, 14:42
Default
  #2
Member
 
Federico Zabaleta
Join Date: May 2016
Posts: 47
Rep Power: 9
fedez91 is on a distinguished road
You have probably figured this out already, but the literature shows how interFoam calculated the compression term in the version 2.x and older. That has been changed and now it is calculated the way you express it in your comment.
fedez91 is offline   Reply With Quote

Reply


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
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 09:48
Suppress twoPhaseEulerFoam energy AlmostSurelyRob OpenFOAM Running, Solving & CFD 33 September 25, 2018 17:45
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 22:25.