|
[Sponsors] |
A quick question about the directory complaint |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 6, 2017, 12:32 |
A quick question about the directory complaint
|
#1 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
Dear Foamers,
I have a quick question about the directory complaint. Currently, I am trying to compile my own solver based on 'interMixingFoam'. Some problems are raised in directory problem.During the compilation of my solver, the system complaints like ‘could not open file correctPhi.H for source file MLB.C due to No such file or directory‘. Hence, I reach the ../Make/options files, the shortcut path is written like:’$(LIB_SRC)’. However, my question is when I command ‘echo $LIB_SRC’ in the terminal, it seems like there is no such a path being able to be recognized. I am not sure the reason for that. Can you please give me some comment about this error? The directory seems like an easy-solving bug but cannot recognise it. Have read about all the former post about the directory problem but seems not work for my case. Really appreciate any help! Thanks, Linyan |
|
February 6, 2017, 12:35 |
|
#2 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
The directory in ../Make/options is wroten like this.
|
|
February 7, 2017, 04:03 |
|
#3 | |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
Quote:
When you call wmake, you execute a script, which eventually looks at your Make/files and Make/options file. Before doing so, it sources this file: Code:
(...)/OpenFOAM-4.0/wmake/makefiles/general Code:
LIB_SRC = $(WM_PROJECT_DIR)/src ------ The file "correctPhi.H" is not part of OpenFoam's source tree. Rather, it is part of the interFoam solver. So my guess is, when you based your solver on interMixingFoam, you only copied interMixingFoam, whereas you should have copied the parent directory (interFoam) as well. That's why in Make/options you see "-I.. ". |
||
February 7, 2017, 15:05 |
|
#4 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
Thanks! Kevin. You've made my day. Like what you comment, the reason for system's 'Could not find such a file or directory'complaint is partly copying the interMixingFoam solver instead of the whole interFoam package. As it complaints, the CorrectPhi.H is one of the header files for interFoam instead of the OpenFoam's source tree. Hence, the header file should be copied along with the to-be-modified solver.
Again, thanks for Kevin's help. Regards, Linyan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quick Question on Calculation Time | Davitt | COMSOL | 0 | January 14, 2016 14:16 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 04:43 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 15:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 09:50 |