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

[IHFOAM] How can i compile ihFOAM?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2014, 06:18
Default How can i compile ihFOAM?
  #1
New Member
 
Premal Sheth
Join Date: Jun 2012
Location: Ahmadabad, Gujarat, India
Posts: 27
Rep Power: 13
premal is on a distinguished road
Send a message via Yahoo to premal Send a message via Skype™ to premal
Hello,

I downloaded ihFOAM. But i don't know how to compile new solver in existing OPENFOAM
I went through the steps given in Manual but it is not working when i do "git checkout"
it gives me error "fatal: Not a git repository (or any of the parent directories): .git"
i have already installed git in ubuntu 12.04
Can anyone please tell me how can i compile?

Thanks in advance
premal is offline   Reply With Quote

Old   July 30, 2014, 06:50
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Premal,

If you write the following line in the terminal:

Code:
git clone git://github.com/phicau/IHFOAM.git
you should obtain all the source code. If the git protocol does not work for you, you can download it using https (less efficient transfer, but not a big deal):

Code:
git clone https://github.com/phicau/IHFOAM.git
or you can download the zipped files from the github site, take a look at the bottom of the lateral bar. Then you just have to unzip it.

In any case you get a folder called IHFOAM, from which you can follow the instructions of the 2.3 section on the wiki:

http://openfoamwiki.net/index.php/Contrib/IHFOAM

Best,

Pablo
Phicau is offline   Reply With Quote

Old   July 30, 2014, 08:30
Default
  #3
New Member
 
Premal Sheth
Join Date: Jun 2012
Location: Ahmadabad, Gujarat, India
Posts: 27
Rep Power: 13
premal is on a distinguished road
Send a message via Yahoo to premal Send a message via Skype™ to premal
Thank you so much it is very useful.

can you please tell me is there any tutorial like another solvers?

i created 0 , Constant and system directories but i am not able to understand which files are useful and where IHwavesDict put.

if u had completed any tutorial so can you please send me link so i can understand how can i run the case?

Thanks in advance
premal is offline   Reply With Quote

Old   July 30, 2014, 08:34
Default
  #4
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Premal,

as far as I can see you have already registered in our web site:

http://ihfoam.ihcantabria.com/source-download/

You should have got an e-mail with the download link to the reference materials, including some tutorials. Please check your e-mail spam folder. If you didn't get anything send me a PM.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   July 30, 2014, 08:41
Default
  #5
New Member
 
Premal Sheth
Join Date: Jun 2012
Location: Ahmadabad, Gujarat, India
Posts: 27
Rep Power: 13
premal is on a distinguished road
Send a message via Yahoo to premal Send a message via Skype™ to premal
Dear Pablo,

I got link and i downloaded source.
But my confusion is IHWAVEDict where i put or in which directory?
and i just want to run simple case so can i do any change in constant and system Directories?

Thanks Pablo
premal is offline   Reply With Quote

Old   July 30, 2014, 08:50
Default
  #6
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Premal,

the source code and the reference materials are independent. If you got the e-mail you should have downloaded a file called IHFOAM_materials.zip, which includes a reference folder and a tutorials folder, as stated in the wiki page.

If you have any trouble downloading IHFOAM_materials.zip let me know by PM.

Pablo
Phicau is offline   Reply With Quote

Old   July 30, 2014, 09:37
Default
  #7
New Member
 
Premal Sheth
Join Date: Jun 2012
Location: Ahmadabad, Gujarat, India
Posts: 27
Rep Power: 13
premal is on a distinguished road
Send a message via Yahoo to premal Send a message via Skype™ to premal
Dear Pablo

Thanks a lot and i got all tutorials.
Now i am running the case
But when i run the case from the script runCase i got error

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/tsunami/OpenFOAM/tsunami-2.2.2/run/tutorials/multiphase/ihFOAM/tutorials/FE30_31/baseWaveFlume/0/p_rgh at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

what means of this error?

and another error comes in fvsolution file it says PIMPLE keyword is missing.

can you please tell me how can i resolve these errors?

Thanks a lot for your help



Regards,
Premal Sheth
premal is offline   Reply With Quote

Old   July 30, 2014, 11:15
Default
  #8
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
From your working route I can see that you are using OpenFOAM 2.2.2, please run the tutorials of version 2.2.2 only: OF222
Phicau is offline   Reply With Quote

Old   July 30, 2014, 11:31
Default
  #9
New Member
 
Premal Sheth
Join Date: Jun 2012
Location: Ahmadabad, Gujarat, India
Posts: 27
Rep Power: 13
premal is on a distinguished road
Send a message via Yahoo to premal Send a message via Skype™ to premal
Yes i am using OpenFOAM2.2.2
Thanks a lot for help
premal is offline   Reply With Quote

Old   November 6, 2014, 05:36
Default error run tutorial baseWaveFlume
  #10
New Member
 
Tomas Fernandez
Join Date: Oct 2014
Posts: 1
Rep Power: 0
tomasfm is on a distinguished road
Hi,

I download and compile IHFOAM without any apparent error. I am using OF2.3.0 version, when I try to run baseWaveFlume tutorial from OF222 I get the error

--> FOAM FATAL IO ERROR:
Unknown patchField type buoyantPressure for patch type patch

could you help me to solve, there is a cross version problem?

Thanks in advance


Quote:
Originally Posted by Phicau View Post
From your working route I can see that you are using OpenFOAM 2.2.2, please run the tutorials of version 2.2.2 only: OF222
tomasfm is offline   Reply With Quote

Old   November 6, 2014, 05:44
Default
  #11
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Tomás,

Note that we do not officially support version 2.3 due to the problems with pressure calculations, as noted in the IHFOAM wiki. That is also why we do not provide a porous solver, only interFoam with the BCs linked.

There are a number of changes between versions 2.2 and 2.3. One of them is the pressure BC at the walls, which used to be called buoyantPressure and in the latest version is fixedFluxPressure.

If you wish to use 2.3 I suggest you to adapt the 2.2 cases, comparing the changes between the both versions of the damBreak tutorial provided by OpenFOAM (openfoam222/tutorials/multiphase/interFoam/laminar/damBreak), easily found online. It shouldn't be too difficult.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 6, 2016, 09:28
Default erroe in compiling ihFoam
  #12
New Member
 
kasra karimi
Join Date: Jan 2016
Location: Tehran
Posts: 10
Rep Power: 10
kasra karimi is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Premal,

If you write the following line in the terminal:

Code:
git clone git://github.com/phicau/IHFOAM.git
you should obtain all the source code. If the git protocol does not work for you, you can download it using https (less efficient transfer, but not a big deal):

Code:
git clone https://github.com/phicau/IHFOAM.git
or you can download the zipped files from the github site, take a look at the bottom of the lateral bar. Then you just have to unzip it.

In any case you get a folder called IHFOAM, from which you can follow the instructions of the 2.3 section on the wiki:

http://openfoamwiki.net/index.php/Contrib/IHFOAM

Best,

Pablo

Dear Pablo
Im very new to the openFOAM and i start it with 2.4.0 windows version. for compiling ihFoam and ihDyMFoam i followed the above steps, but when i type ./allMake command in genAbs folder and also solvers folder, openfoam shows me some failures error as below. can you help me with this problem?
thanks a lot
kasra karimi is offline   Reply With Quote

Old   January 6, 2016, 09:44
Default
  #13
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear Kasra,

I am not familiar with OpenFOAM for Windows, I have never tried it myself, but for the error messages it appears to me like you have problems with the write permissions. Sorry for not being more specific or helpful.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 6, 2016, 09:52
Default
  #14
New Member
 
kasra karimi
Join Date: Jan 2016
Location: Tehran
Posts: 10
Rep Power: 10
kasra karimi is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Dear Kasra,

I am not familiar with OpenFOAM for Windows, I have never tried it myself, but for the error messages it appears to me like you have problems with the write permissions. Sorry for not being more specific or helpful.

Best,

Pablo
No problem my friend, i would try it on Ubuntu later....thank you for your quick reply
kasra karimi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
[IHFOAM] Error with IHFOAM version OF2300 in Mac androso OpenFOAM Community Contributions 3 February 7, 2017 14:06
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 21:30.