|
[Sponsors] |
September 21, 2013, 00:52 |
Pcg
|
#1 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13 |
Hi,
line below is from PCG.C source code: Code:
register label nCells = psi.size(); Regards, Hassan Last edited by luckycfd; September 22, 2013 at 01:38. |
|
September 22, 2013, 02:33 |
|
#2 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13 |
I need a highly annotated version of the PCG.C source code in openFoam,
please help me in this way. regards, Hassan |
|
September 22, 2013, 02:58 |
|
#3 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
Dear Hasan
Quote:
Quote:
and extra comment , post your question just one place at forum (another similar post is:http://www.cfd-online.com/Forums/ope...tml#post452938) Best Regards
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|||
September 22, 2013, 03:11 |
|
#4 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13 |
Hi,
According to part of PCG.C code that shown below; Code:
register label nCells = psi.size(); scalar* __restrict__ psiPtr = psi.begin(); scalarField pA(nCells); scalar* __restrict__ pAPtr = pA.begin(); scalarField wA(nCells); scalar* __restrict__ wAPtr = wA.begin(); scalar wArA = solverPerf.great_; scalar wArAold = wArA; Regards, Hassan Last edited by luckycfd; September 23, 2013 at 09:42. |
|
September 23, 2013, 09:40 |
|
#5 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13 |
Post changed.
|
|
September 23, 2013, 11:46 |
|
#6 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
Dear Hassan!
as you pointed, its a function , you should look at the definition of that function
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 23, 2013, 13:24 |
|
#7 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 13 |
Dear Nima,
wow... now how ca I access to their definition? Thanks |
|
September 23, 2013, 15:47 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Hassan:
If you haven't studied C++ yet, you can start here: http://www.cplusplus.com/doc/tutorial/ As for other ways of investigating where the code comes from: http://openfoamwiki.net/index.php/Ho...M_with_Eclipse Best regards, Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating point exception error | Alan | OpenFOAM Running, Solving & CFD | 11 | July 1, 2021 21:51 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 13:40 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 13:52 |
Do residuals mean the same in PCG and AMG? | santiagomarquezd | OpenFOAM Programming & Development | 1 | August 31, 2012 17:46 |
Dynamic moving mesh | Pei-Ying Hsieh (Hsieh) | OpenFOAM Running, Solving & CFD | 64 | June 7, 2012 10:04 |