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

Looking for icoFoam source code in OpenFOAM

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2014, 07:43
Default Looking for icoFoam source code in OpenFOAM
  #1
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 12
bchakra is on a distinguished road
Hi All,

I am new to Open FOAM. I want to couple energy equation with the in-compressible solvers. I am not able to locate where are source codes situated for icoFoam ?

Kindly Help.
bchakra is offline   Reply With Quote

Old   July 3, 2014, 08:06
Default
  #2
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
A very detailed explanation is available on Wiki. I think you should refer to that, it clearly explains how the thermal energy equation can be coupled in icoFoam.

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Follow the instructions carefully.

Cheers
Tushar@cfd is offline   Reply With Quote

Old   July 5, 2014, 02:49
Default ource code in OpenFOAM
  #3
New Member
 
Join Date: Jan 2014
Posts: 5
Rep Power: 12
bchakra is on a distinguished road
Thank u for your kind reply, but the issue still persists when I enter the following command line.

wmake

It shows this message:

Making dependency list for source file my_icoFoam.c
SOURCE=my_icoFoam.c ; gcc -m64 -Dlinux64 -DWM_DP -Wall -O3 -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/my_icoFoam.o
In file included from /opt/openfoam230/src/OpenFOAM/lnInclude/labelList.H:47:0,
from /opt/openfoam230/src/OpenFOAM/lnInclude/UPstream.H:42,
from /opt/openfoam230/src/OpenFOAM/lnInclude/Pstream.H:42,
from /opt/openfoam230/src/OpenFOAM/lnInclude/parRun.H:35,
from /opt/openfoam230/src/finiteVolume/lnInclude/fvCFD.H:4,
from my_icoFoam.c:32:
/opt/openfoam230/src/OpenFOAM/lnInclude/label.H:38:19: fatal error: climits: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/my_icoFoam.o] Error 1[/B]


Kindly help..

Last edited by bchakra; July 5, 2014 at 05:53.
bchakra is offline   Reply With Quote

Old   July 6, 2014, 02:33
Default
  #4
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Why don't you download the files available on wiki and check your case.

Check these on the same page of wiki:
Your case should run and display the usual information in the window.
The solution for time-step 0.5 should look like this:

Media:CaseFile.tar.gz --Media:My_icoFoam_cavity_OF-1.7.0.tar.gz case according OpenFoam-1.7.0
Media:SolverSource.tar.gz --Mike Jaworski 06:49, 25 February 2008 (CET)


That will solve your problem.

Please excuse for the same, I have other important assignments.

-
Best Luck!
Tushar@cfd is offline   Reply With Quote

Old   July 6, 2014, 06:02
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@bchakra: You need to install in your system the necessary packages for compiling software. That is why you got the error indicating that "climits" is missing.
If you are using Ubuntu, run:
Code:
sudo apt-get install build-essential flex bison zlib1g-dev
A complete list of necessary packages for compiling source code on Ubuntu, openSUSE and RHEL is given in the "System Requirements" section on this page: http://www.openfoam.org/download/source.php

Best regards,
Bruno
mizzou likes this.
__________________
wyldckat 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
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 13:14
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


All times are GMT -4. The time now is 04:10.