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

how to define density in twoPhasseEulerFoam in version3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2016, 05:09
Default how to define density in twoPhasseEulerFoam in version3.0
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
hi friends!
i recently started to use op 3.0 after op 2.2.1 .
i want to use twoPhaseEulerfoam in version 3.0 but as i see there are some changes in this solver and made confused!
my first question is about how to find the description about this solver and it's tutorials in this version ?
and my second question about phase properties directory, why there is no place to define "density" here ?!
so i got confused about twoPhaseEulerFoam in OP3.0 !!
any help would be appreciated
sinatahmooresi is offline   Reply With Quote

Old   May 10, 2016, 07:39
Default
  #2
Member
 
Mattia de\' Michieli Vitturi
Join Date: Mar 2009
Posts: 50
Rep Power: 17
demichie is on a distinguished road
The density is defined by the equations of state of the phases, in the thermophysicalProperties.*** files.
For example, in the laminar/bubbleColumn/constant folder you can find the file thermophysicalProperties.air, specifying the properties of the phase "air".

Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

mixture
{
    specie
    {
        nMoles      1;
        molWeight   28.9;
    }
In this case the equation of state is perfectGas (rho=P/(RT)), and the parameter used to calculate the gas constant form the universal gas constant is the molecular weight.

Ciao
M.
demichie is offline   Reply With Quote

Old   May 10, 2016, 08:55
Default
  #3
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
hi Mattia!
thank u very much, i want to model consist of two liquid phase , so is that "mu" the only place that i can make difference between primary phase and secondary phase ? because when both of phases are liquid ( like water and brine) so we have to use "perfectfluid" for eqn of state ?
i mean that is R and rho0 are respectively constant in 3000 and 1027 when we use "perfectfluid" ?
so what is the main difference between two phases in this case that we have two fluids with only different rho(density) ? ( water=998.2 and brine 1017.9)
thank u
sinatahmooresi is offline   Reply With Quote

Old   May 11, 2016, 03:00
Default
  #4
Member
 
Mattia de\' Michieli Vitturi
Join Date: Mar 2009
Posts: 50
Rep Power: 17
demichie is on a distinguished road
You don't have to use the values 3000 and 1027 for perfectFluid, but you can change them. When you use the equation of state for perfect fluid rho=rho0+psi*P, where the compressibillity psi is given by psi=1/(RT). So probably you want to use the values you've indicated (998.2 and 1017.9) for rho0 in the two files with the properties of water and brine.

M.
demichie is offline   Reply With Quote

Old   May 11, 2016, 06:22
Default
  #5
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
thank u very much dear Mattia!
is there any way to find a kind of description about twoPhaseEulerFoam in version 3.0.1?
because I have many question about it ! like alphat directory (not alpha) and...
sinatahmooresi 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
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 10 August 21, 2023 14:33
Implement simple barotropic relation - derive density field from pressure field GJM1991 OpenFOAM Programming & Development 6 May 8, 2016 15:43
UDF error for Heat Generation mame Fluent UDF and Scheme Programming 4 March 3, 2016 04:22
A problem about density in liquid air definition alloveyou CFX 2 June 14, 2012 14:20
UDF problem libia87 Fluent UDF and Scheme Programming 1 May 4, 2012 21:49


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