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

acc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2013, 00:22
Default acc
  #1
Member
 
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 13
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, 03:33
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
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


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
Adding graviational acc. to turbulence model fertinaz OpenFOAM Programming & Development 6 December 12, 2020 01:04
vortex induced vibration Simon Wang FLUENT 4 December 25, 2017 04:23
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 17: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 07:45.