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

reactingTwoPhaseEulerFoam: volume fraction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2017, 20:28
Default reactingTwoPhaseEulerFoam: volume fraction
  #1
New Member
 
Simone Colucci
Join Date: Mar 2016
Location: Pisa (Italy)
Posts: 23
Rep Power: 10
S.Colucci is on a distinguished road
Hi,
I need to access the gas (or liquid) volume fraction from the Henry class (reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/Henry/Henry.C).
I know that I can access the mass fraction of the specie in the phase by

Quote:
forAllConstIter(hashedWordList, this->speciesNames_, iter)
{
this->thermo_.composition().Y(*iter)
- Anybody knows how to access the phase volume fraction (i.e., alpha) from Henry.C ?

- Is there a function for getting directly the mass fraction of the phase (mass of the phase/total mass)?

- and a function for getting directly the total mass of each specie (mass of the specie/total mass)?

Thanks

Simone
S.Colucci is offline   Reply With Quote

Old   May 25, 2017, 12:23
Default
  #2
New Member
 
Simone Colucci
Join Date: Mar 2016
Location: Pisa (Italy)
Posts: 23
Rep Power: 10
S.Colucci is on a distinguished road
I found the answer,
the volume fractions are given by
Quote:
this->pair_.phase1()
this->pair_.phase2()
Quote:
Originally Posted by S.Colucci View Post
Hi,
I need to access the gas (or liquid) volume fraction from the Henry class (reactingEulerFoam/interfacialCompositionModels/interfaceCompositionModels/Henry/Henry.C).
I know that I can access the mass fraction of the specie in the phase by



- Anybody knows how to access the phase volume fraction (i.e., alpha) from Henry.C ?

- Is there a function for getting directly the mass fraction of the phase (mass of the phase/total mass)?

- and a function for getting directly the total mass of each specie (mass of the specie/total mass)?

Thanks

Simone
S.Colucci 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
multiphaseEulerFoam (OF2.3.0) : Courant number explodes when running in parallel Mehrez OpenFOAM Running, Solving & CFD 10 May 18, 2016 12:44
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
the Eulerian model and the lower volume fraction hx li FLUENT 2 October 27, 2005 07:17


All times are GMT -4. The time now is 01:37.