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

Interesing for loop

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

LinkBack Thread Tools Display Modes
Old   March 7, 2016, 03:58
Default Interesing for loop
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Torino, Italy
Posts: 754
Rep Power: 10
sharonyue is on a distinguished road
Hi guys,

There is a for loop which is interesting (in twoLiquidMixingFoam):

        subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
        #include "alphaEqn.H"
        rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
The meaning of it is straightforward, I discussed this with my friends, we think this for loop is, uh, interesting.......
Im the translator of OpenFOAM User Guide Chinese Edition! But always newbie on CFD.
sharonyue 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 17:46.