|March 7, 2013, 00:22||
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82Rep Power: 5
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.
|March 7, 2013, 03:33||
Join Date: Sep 2009
Posts: 790Rep Power: 13
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)
|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|