CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Looking for icoFoam source code in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-programming-development/138396-looking-icofoam-source-code-openfoam.html)

bchakra July 3, 2014 07:43

Looking for icoFoam source code in OpenFOAM
 
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.

Tushar@cfd July 3, 2014 08:06

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 :)

bchakra July 5, 2014 02:49

ource code in OpenFOAM
 
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..

Tushar@cfd July 6, 2014 02:33

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!

wyldckat July 6, 2014 06:02

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


All times are GMT -4. The time now is 03:47.