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

cannot open fvCFD.H file

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By dlahaye
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2021, 19:10
Default cannot open fvCFD.H file
  #1
New Member
 
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5
Devin063 is on a distinguished road
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!
Devin063 is offline   Reply With Quote

Old   June 20, 2021, 12:38
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 770
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
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.
Devin063 likes this.
dlahaye is offline   Reply With Quote

Old   June 20, 2021, 23:47
Default
  #3
New Member
 
ON
Join Date: Jun 2021
Posts: 6
Rep Power: 5
Devin063 is on a distinguished road
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.
Devin063 is offline   Reply With Quote

Old   June 21, 2021, 04:54
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27
Yann will become famous soon enough
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
If you are using windows to navigate through the OpenFOAM directory, you might also have issues with some files due to the fact windows is not case-sensitive, contrary to Linux.

Yann
Devin063 likes this.
Yann is offline   Reply With Quote

Reply

Tags
source code


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
[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


All times are GMT -4. The time now is 20:42.