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

rho1 and rho2 of compressibleInterFoam solver

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tian_lei

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2020, 04:37
Default rho1 and rho2 of compressibleInterFoam solver
  #1
Senior Member
 
Nguyen Duy Trong
Join Date: Apr 2014
Posts: 124
Rep Power: 12
ndtrong is on a distinguished road
Hi everyone,

I am confusing the way to compute rho1 and rho2 of solver compressibleInterFoam. In createFields, they are declared as:
const volScalarField& rho1 = mixture.thermo1().rho();
const volScalarField& rho2 = mixture.thermo2().rho();

and mixture is an object derived from twoPhaseMixtureThermo class as:
twoPhaseMixtureThermo mixture(U, phi);
when I look back the twoPhaseMixtureThermo class, I found the rhoThermo class inside.
So, I am confusing that:
  • rho1 and rho2 of each phase are computed in this class?
  • If it is true, how we compute deltaRho in class rhoThermo that is specify by:
    void Foam::rhoThermo::correctRho(const Foam::volScalarField& deltaRho)
    {
    rho_ += deltaRho;
    }
Could someone help me to make them clear?
I thank you very much in advance.
ndtrong is offline   Reply With Quote

Old   November 16, 2020, 02:40
Default
  #2
New Member
 
Join Date: May 2017
Posts: 7
Rep Power: 8
tian_lei is on a distinguished road
Hi, ndtrong.

The rho is computed by EOS in "specie/equationOfState". The perfectGas is usually for idea gas, and perfectFluid is for water.

Best.
ndtrong likes this.
tian_lei 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
Formulation in compressibleInterFoam scttmllr OpenFOAM Running, Solving & CFD 72 June 26, 2023 07:42
[OpenFOAM.org] Error compiling VOF HARDT Solver on OpenFoam 2.4.0 saddy OpenFOAM Installation 4 December 1, 2020 02:36


All times are GMT -4. The time now is 03:08.