|
[Sponsors] |
March 7, 2013, 00:22 |
acc
|
#1 |
Member
Nikesh Bhattarai
Join Date: Nov 2011
Location: Sacheon, South Korea
Posts: 82
Rep Power: 13 |
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 |
|
March 7, 2013, 03:33 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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) |
|
|
|
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 |