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

acc

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 6, 2013, 23:22
Default acc
  #1
Member
 
Nick
Join Date: Nov 2011
Location: Daejeon, South Korea
Posts: 42
Rep Power: 3
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.

Thnx!!
nikesh
nikesh is offline   Reply With Quote

Old   March 7, 2013, 02:33
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 773
Rep Power: 11
Bernhard is on a distinguished road
You could either use the Doxygen files: http://www.openfoam.org/docs/cpp/ this brings you to: http://foam.sourceforge.net/docs/cpp...ce.html#l00173

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

Reply

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 0 June 18, 2012 13:46
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 09: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 09:02


All times are GMT -4. The time now is 18:04.