CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problem with wmake:Header file not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2013, 03:35
Default Problem with wmake:Header file not found
  #1
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
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
hrushi.397 is offline   Reply With Quote

Old   July 31, 2013, 07:53
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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

?
Artur is offline   Reply With Quote

Old   July 31, 2013, 08:10
Default
  #3
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
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.
hrushi.397 is offline   Reply With Quote

Old   July 31, 2013, 08:17
Default
  #4
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
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.
Attached Files
File Type: gz mylaplacianFoam.tar.gz (1.6 KB, 4 views)
Artur is offline   Reply With Quote

Old   July 31, 2013, 08:29
Default
  #5
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
Thank you Artur. I will surely post the files when I go back home from office.
hrushi.397 is offline   Reply With Quote

Old   July 31, 2013, 11:34
Default
  #6
Member
 
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13
hrushi.397 is on a distinguished road
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
hrushi.397 is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 23:57.