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

multiphaseEulerFoam: scalarCoeffSymmTable::const_iterator cAlpha in solveAlphase()

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

LinkBack Thread Tools Display Modes
Old   January 13, 2014, 06:30
Default multiphaseEulerFoam: scalarCoeffSymmTable::const_iterator cAlpha in solveAlphase()
Senior Member
Join Date: Jan 2012
Posts: 159
Rep Power: 7
maybee is on a distinguished road

in method solveAlphas() of multiphasesystem.C of multiphaseEulerFoam is found:

Question 1:

scalarCoeffSymmTable::const_iterator cAlpha                                                                                          
                cAlphas_.find(interfacePair(phase1, phase2))  //scalarCoeffSymmTable cAlphas_;                                                                                                                                                                        
            );                                                                     //in multiphasesystem.H
Am I right that in "cAlphas_" is searched for the "interfacePair(phase1, phase2) entry" and if found/existant "scalarCoeffSymmTable::const_iterator cAlpha" is set to the position of the pair?

Question 2:

Later on the following line appears:

 phir += min(cAlpha()*phic, max(phic))*nHatf(phase1, phase2);
with the operator ():

inline T& Foam::HashTable<T, Key, Hash>::operator()(const Key& key) //Find and return a hashedEntry, create it null if not present.
147* iterator iter = this->find(key);
149* if (iter == this->end())
150* {
151* this->insert(key, T());
152* return *find(key);
153* }
154* else
155* {
156* return *iter;
157* }
Is this the right operator () ? and what is exactly the "key" since the operator is called on "scalarCoeffSymmTable::const_iterator cAlpha" (see first code snippet)?

maybee is offline   Reply With Quote

Old   September 16, 2015, 14:43
Question multiphaseSystem::solveAlphas() - How does it work?
New Member
Jaka Peternel
Join Date: Oct 2014
Posts: 5
Rep Power: 5
jpeter3 is on a distinguished road
I am also interested in this part of the code, just working through the solveAlphas() method to get good understanding of how openfoam calculates transport of alphas.

Is there any book or an article describing the method used for this calculations?

link to source file, line 59

jpeter3 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiphaseEulerFoam + kineticTheoryProperties vasava OpenFOAM Running, Solving & CFD 4 November 18, 2015 02:22
query regarding deltaT in multiphaseEulerFoam bigboss.abhishek OpenFOAM Running, Solving & CFD 6 September 24, 2015 15:56
multiphaseEulerFoam: method mag(...) withing method solveAlphase() maybee OpenFOAM Programming & Development 0 December 21, 2013 11:13
multiPhaseEulerFoam and LES GerhardHolzinger OpenFOAM Running, Solving & CFD 7 December 18, 2013 21:19
multiphaseEulerFoam kwardle OpenFOAM 3 March 25, 2013 11:31

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