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

Help compiling code (newbie)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 8, 2014, 17:34
Default
  #21
Senior Member
 
Robert
Join Date: Sep 2010
Posts: 158
Rep Power: 15
lordvon is on a distinguished road
Awesome!

Yes, once you want to view the results, 'paraFoam' will bring up a GUI, in which you can view the p and U fields, surface distributions, etc. It is pretty straightforward to use and there are a lot of good tutorials out there.

Keep in my mind you need to specify the frequency of writing out the results to be viewed. This is controlled in controlDict.

The simulation does not take long at all; should be about a few hours. BUT, the run time is highly variable according to the size of the mesh and the maximum Courant number. I think a high Courant number is set in the case files (30?), and the Courant number used in my validation runs was 2 (more accurate, smaller time step, higher overall run time). So in the beginning of the simulation, you may want to use the high Courant number, and when the force results settle, you can change it to a lower Courant number. You can simply change this in controlDict while the case is still running. On my computer (i7-2700 processor) it ran in a few hours, I think. I ran these back in November last year, so I don't remember exactly, but I know it never took more than a day.

Oh, and since this simulation is run in parallel, you should run 'reconstructPar -latestTime' before you view the latest time step in paraFoam.

Also, inside the 'parallel' script you should see that I specified it to run on 4 cores. If you want to use a different number, you should change this.

To view forces, 'chmod +x f' and run the file named f. If you changed the mesh or operating parameters, you should change them accordingly in the variables at the top of the 'f' script.
lordvon is offline   Reply With Quote

 


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
something wrong when compiling udf, however the code is correct when interpreting richard ben Fluent UDF and Scheme Programming 7 May 11, 2013 07:36
problem with compiling the source code michel1988 OpenFOAM Installation 1 April 17, 2013 17:19
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 12:30
Small 3-D code Zdravko Stojanovic Main CFD Forum 2 July 19, 2010 10:11
Newbie compiling source code for debugging unoder OpenFOAM Running, Solving & CFD 8 August 24, 2006 01:41


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