CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

multiphaseEulerFoam: method iter() and calculation of phase fractions

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 2, 2013, 09:22
Default multiphaseEulerFoam: method iter() and calculation of phase fractions
Senior Member
Join Date: Jan 2012
Posts: 160
Rep Power: 7
maybee is on a distinguished road
I have a few questions about the multiphaseEuler solver:

1. Within the main method of the solvers .C file there is the file "createFields.H" included. Within this file can be found
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)     
        phaseModel& phase = iter();                 

        const volScalarField& alpha = phase;    

        U += alpha*phase.U();  

        phi += fvc::interpolate(alpha)*phase.phi();  
with the method iter():

inline Foam::label Foam::cloudSolution::iter() const   //Return const access to the current 
                                                                //cloud iteration.
return iter_;   //label iter_;  //- Current cloud iteration
I assume that alpha is one phase fraction, right?
Furthermore alpha is a reference to iter() which means a reference to the variable iter_ . But, what is iter_ exactly?

2. After the solvers loop is started later in the main method with "while (" at which point are the phase fractions calculated and saved?

maybee is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

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