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

multiphaseEulerFoam: forAllIter(PtrDictionary<phaseModel>, phases_, iter)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2014, 09:15
Default multiphaseEulerFoam: forAllIter(PtrDictionary<phaseModel>, phases_, iter)
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

within method solve of multiphaseEulerFoam is found:

Code:
forAllIter(PtrDictionary<phaseModel>, phases_, iter)  //fuer alle Phasen 
        { 
            phaseModel& phase = iter();
for forAllIter(...) is found:

Code:
for                                                                        \
    (                                                                          \
        Container::iterator iter = (container).begin();                        \
        iter != (container).end();                                             \
        ++iter                                                                 \
    )
Iterate across all elements in the container object of type Container.
Usage
forAll(ContainerType, container, iter)
{
    statements;
}
In the first codesnippet operator () is used on iter and since iter is of type
Code:
PtrDictionary<phaseModel>::iterator
I have chosen the following operator method:

Code:
template<class T>
  199 inline T& Foam::PtrList<T>::iterator::operator()()
  200 {
  201     return operator*();
  202 }
What is "operator*()" in line 201 exactly?

greetings
maybee
maybee 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
multiphaseEulerFoam: method iter() and calculation of phase fractions maybee OpenFOAM Programming & Development 1 July 22, 2020 09:20
multiphaseEulerFoam: efficient way of implementing fields for all phases maybee OpenFOAM Programming & Development 0 January 23, 2014 05:16
multiphaseEulerFoam: Method forAllIter(...) within solve() maybee OpenFOAM Programming & Development 4 January 7, 2014 05:35
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Extract primary phase thread in VOF with 3 phases Eric FLUENT 2 July 7, 2011 03:22


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