|
[Sponsors] |
July 31, 2013, 03:35 |
Problem with wmake:Header file not found
|
#1 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Hi All,
I am a newbie to Openfoam. I made few changes in laplacian foam and wanted to compile it. But while compiling it gave me an error saying header file simpleControl.H was not found. It is not there in dependency list too. What could be the reason for this? I have left the contents of Make folder unchanged. Thanks. Hrushi |
|
July 31, 2013, 07:53 |
|
#2 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
Could you provide some more details as to how you went about compiling the new solver? There could be numerous reasons for the dependencies being missing. Have you followed this or something similar:
http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam ? |
|
July 31, 2013, 08:10 |
|
#3 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Thanks for the reply Artur.
I am solving allen-cahn equation. My openfoam is installed in /opt folder, so I copied laplacianfoam solver from there into my home folder. Then I made the changes to the equation that I wish to solve. There was no .dep file earlier in the folder when I copied it. After changing name of the .C file in 'files' file in Make directory as mentioned in the tutorial, I simply ran wmake. It gives me error saying simpleControl.H not found and I can't see it even in .dep file. Later I tried including path to simpleControl.H in the options file in Make folder, but it still gave same error. Does it help or do I have to upload the files? I will be able to upload them a bit later as I am in office right now and not at home. |
|
July 31, 2013, 08:17 |
|
#4 |
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20 |
I just recompiled laplacian foam to check it and it works fine. Here's what I've done:
1. copy the solver to $HOME/OpenFOAM/artur-2.2.0/applications 2. rename the laplacianFoam.C to mylaplacianFoam.C 3. change the name of the file in make/files to mylaplacianFoam.C 4. change the solver name to mylaplacianFoam in files 5. change the directory to FOAM_USER_APPBIN from FOAM_APPBIN 6. wmake it find the attached compressed solver. Hope this helps. Not really sure what you were doing wrong though, perhaps it will be worth posting here for others to look at if you figure it out. |
|
July 31, 2013, 08:29 |
|
#5 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Thank you Artur. I will surely post the files when I go back home from office.
|
|
July 31, 2013, 11:34 |
|
#6 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Hey, I found the mistake. I had two Openfoam versions installed and I took two files from two different versions... unknowingly... now it is working fine
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] converting Fluent mesh to openfoam standard mesh | deepesh | OpenFOAM Meshing & Mesh Conversion | 31 | March 29, 2017 06:59 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |