|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5 ![]() |
Hi foamers,
I am new to OpenFoam. I am reading source codes of pisoFoam.C to learn how it works, which has #include "fvCFD.H". FvCFD.H file is in OpenFOAM-8\src\finiteVolume\lnInclude folder, but I found that I could not open it to see. So what was wrong? Any suggestion to help understand what happend? Thank you! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Not sure what is valuable input here.
However, one way to proceed is to: 1/ go to the OpenFoam source directory using e.g. the "src" bash command 2/ use find to find the file using e.g. find . -name fvCFD.H 3/ open the file using your favorite editor using e.g. more ./finiteVolume/lnInclude/fvCFD.H Alternatively, you should be able to view the file on Github. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5 ![]() |
I use notepad++ editor to open fvCFD.H, but failed. But it can open other .H files and .C files, like icoFoam.C. Only .H files and .C files in some folders I cannot open.
I dont know the reason. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27 ![]() |
From which OS are you trying to open the files? Linux or Windows?
the lnInclude directories only contain links (ln) and windows does not deal very well with these links so you cannot open it. If you use the "find" command suggested by Domenico you will see the original fvCFD.H file is located here: Code:
src/finiteVolume/cfdTools/general/include/fvCFD.H Yann |
|
![]() |
![]() |
![]() |
Tags |
source code |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 03:50 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 17:34 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |