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

multiphaseEulerFoam: method iter() and calculation of phase fractions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 2, 2013, 09:22
Default multiphaseEulerFoam: method iter() and calculation of phase fractions
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
hi,
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
Code:
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():

Code:
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 (runTime.run())" at which point are the phase fractions calculated and saved?

greetings
maybee
maybee is offline   Reply With Quote

Reply

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 17:49.