- #1
JD_PM
- 1,131
- 158
- TL;DR Summary
- I am going through the C++ code for interPhaseChangeFoam, which is a solver in OpenFOAM and I got some questions
I am trying to understand the following code (it starts from line 59) and there are pieces I do not understand.
What does argList::addNote do, just add a comment?
My guess is that the above sets the time of the while loop coming next but not sure.
Regarding the first line, I do not know what ++ does. The structure of the second line is the same than the previous question I asked.
It seems that it finishes what Info<< "\nStarting time loop\n" << endl started but not sure.Your time is appreciated.
Thank you
Code:
argList::addNote
(
"Solver for two incompressible, isothermal immiscible fluids with"
" phase-change.\n"
"Uses VOF (volume of fluid) phase-fraction based interface capturing."
);
What does argList::addNote do, just add a comment?
Code:
Info<< "\nStarting time loop\n" << endl
My guess is that the above sets the time of the while loop coming next but not sure.
Code:
++runTime;
Info<< "Time = " << runTime.timeName() << nl << endl;
Regarding the first line, I do not know what ++ does. The structure of the second line is the same than the previous question I asked.
Code:
Info<< "End\n" << endl
It seems that it finishes what Info<< "\nStarting time loop\n" << endl started but not sure.Your time is appreciated.
Thank you