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

An observation in interFoam code

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2005, 23:53
Default The source code: ....... in
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
The source code:
.......
int main(int argc, char *argv[])
{

# include "setRootCase.H"
# include "createTime.H"
# include "createMovingMesh.H"
# include "readEnvironmentalProperties.H"
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "setInitialDeltaT.H"
# include "correctPhi.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Info<< "\nStarting time loop\n" << endl;

while (runTime.run())
{
# include "readPISOControls.H"
# include "readTimeControls.H"

.......

Here, these two includes are not necessary because they have already been included before. Not a sever bug though.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   May 28, 2005, 03:18
Default Hmmm... Not a bug at all in
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Hmmm...

Not a bug at all in fact.

They are included in the while-loop to allow for
varying the piso and time controls.

but if you feel like keeping them constant they can be excluded.

N
niklas is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterFoam in parallel sara OpenFOAM Running, Solving & CFD 3 April 19, 2011 06:05
InterFoam floooo OpenFOAM Running, Solving & CFD 0 November 3, 2008 12:00
An observation CFD Rookie Main CFD Forum 1 March 11, 2004 20:55
An intresting observation about SIMPLE Scheme Abhijit Tilak Main CFD Forum 12 March 14, 2003 12:48
an interesting observation!!!! mahesh prakash Main CFD Forum 1 October 26, 1999 11:49


All times are GMT -4. The time now is 13:23.