|
[Sponsors] |
March 10, 2017, 07:04 |
Is rhoCentralFoam correctly implemented?
|
#1 |
Member
Di Cheng
Join Date: May 2010
Location: Beijing, China
Posts: 47
Rep Power: 16 |
I compared the variables in rhoCentralFoam.C and "Implementation of semi-discrete, non-staggered central schemes in a colocated, polyhedral, finite volume framework, for high-speed viscous flows"(Which is a theory guide of rhoCentralFoam.C)
However, I cannot follow the code and paper at the same time. The variables are different. Especially the aphiv_pos and aphiv_neg in the code. I think these variables are corresponded to alpha*phi_f_plus in equation 7 of the paper. However, the formula is not consisitent from code to paper. Can anyone figure out what is wrong? IMG_20170310_185329[1].jpg |
|
January 2, 2019, 10:26 |
|
#2 |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
I know this is an old post. But just in case someone else comes across in the future.
The aphiv_pos in the code is "alpha*Phi_f_postive-Omega_f" in equation 7 of the paper. For the continuity equation (when the variable is rho), the mass flux is calculated as equation 7, which interprets to the following in the code. phi = aphiv_pos*rho_pos + aphiv_neg*rho_neg; For the momentum equation, the flux that calculated in the code also includes the contribution of the pressure gradient as the following surfaceVectorField phiUp ( (aphiv_pos*rhoU_pos + aphiv_neg*rhoU_neg) + (a_pos*p_pos + a_neg*p_neg)*mesh.Sf() ); I hope this help Rdf |
|
Tags |
openfoam, rhocentralfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to apply a turbulence model to the rhoCentralFoam solver? | arussell92 | OpenFOAM Pre-Processing | 18 | July 25, 2022 05:26 |
Modify rhoCentralFoam: other equations of state | fivos | OpenFOAM Programming & Development | 5 | July 29, 2020 14:17 |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
rhoCentralFoam Runge Kutta | Henning86 | OpenFOAM Running, Solving & CFD | 24 | December 13, 2016 11:12 |
rhoCentralFoam solver with Slip BCs fails in Parallel Only | JLight | OpenFOAM Running, Solving & CFD | 2 | October 11, 2012 22:08 |