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


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

LinkBack Thread Tools Display Modes
Old   March 7, 2013, 00:22
Default acc
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 6
nikesh is an unknown quantity at this point
Hi all,

It sometimes gets me confused whether I'm at the right place for my questions. However, here it goes....

I need to access the source code of SIMPLE algorithm in OpenFOAM. Where do I look?
Secondly, after going into the source code, I'll need to understand one of the functions used there. For eg, there's a piece of code that reads as::

eqnResidual = solve ( UEqn() == -fvc::grad(p) ).initialResidual();

Now, I need to find out how initialResidual is determined/calculated inopenFOAM (simpleFoam),how and where do I look for it ??

Is there any command that I can use in the terminal that'll direct me where that particular function is located?

Any heads up highly appreciated.

nikesh is offline   Reply With Quote

Old   March 7, 2013, 03:33
Senior Member
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 15
Bernhard is on a distinguished road
You could either use the Doxygen files: this brings you to:

Or you could use grep and find from the src directory
grep initialResidual $(find -name \*.C -or -name \*.H)
Bernhard 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
Adding graviational acc. to turbulence model fertinaz OpenFOAM Programming & Development 5 March 13, 2015 07:26
vortex induced vibration Simon Wang FLUENT 3 June 17, 2012 05:22
OpenFOAM vs Fluent for cylinder at Re%3d150 lr103476 OpenFOAM Running, Solving & CFD 40 December 18, 2008 10:09
Differences OpenFOAM12 and OpenFOAM13 lr103476 OpenFOAM Running, Solving & CFD 43 July 22, 2008 16:46
Accessing the angle of a cyclicPolyPatch make OpenFOAM Running, Solving & CFD 0 February 5, 2008 10:02

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