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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2018, 16:40
Cool Accessing Mass fraction (Y) in compressibleMultiphaseInterFoam
  #1
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 7
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, 01:14
Default
  #2
Member
 
Join Date: May 2017
Posts: 44
Rep Power: 7
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


All times are GMT -4. The time now is 10:18.