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

Accessing Mass fraction (Y) in compressibleMultiphaseInterFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2018, 15:40
Cool Accessing Mass fraction (Y) in compressibleMultiphaseInterFoam
  #1
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 8
bbita is on a distinguished road
Dear Foamers,

I need to access mass fractions (Y) in compressibeMultiphaseInterFoam and change them through some equation for multi-component mixture. I am wondering how I can access and change this parameter through my customized solver.

Many thanks
bbita is offline   Reply With Quote

Old   March 2, 2018, 00:14
Default
  #2
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 8
bbita is on a distinguished road
Dear Foamers,

I tried to solve this problem using following commands for compressibleMultiphaseInterFoam:
forAllConstIter(PtrDictionary<phaseModel>,mixture. phases(),phasei)
{
phaseModel& alpha =phasei();
PtrList<volScalarFIeld>& Y=alpha.Y();
}

I receive the error that 'const class Foam:: phaseModel' has no member named 'Y'.
Any idea how I should solve this error?

Thanks
bbita is offline   Reply With Quote

Reply

Tags
mass fraction (y), multicomponent mixture, multiphaseinterfoam


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
gradient of species mass fraction zhou FLUENT 1 March 14, 2020 07:55
Fuel Mass Fraction visualization Manigandan.R FLUENT 0 September 11, 2017 06:24
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 05:06
Conversion of mass fraction to mole fraction in FLUENT prince_pahariaa FLUENT 0 August 26, 2014 08:08
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 23:43.