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

Compiling buoyantPisoRadiationFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2010, 04:52
Default Compiling buoyantPisoRadiationFoam
  #1
Member
 
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17
maruthamuthu_venkatraman is on a distinguished road
Hello Foamers,
I am quite new to compile the solvers in OpenFoam for new applications. So if there is any flaws in my compilation let me know. I tried to make a copy of BuoyantPisoFoam in my user directory and include radiation for the same.The application is created with two warnings. Give me your comments.

Thanks.

Compilation Message
Making dependency list for source file buoyantPisoFoam.C
SOURCE=buoyantPisoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasin
g -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRep
ository -ftemplate-depth-40 -I../buoyantPisoFoam -I/usr/local/OpenFOAM/OpenFOAM-
1.6.x/src/thermophysicalModels/basic/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.
6.x/src/thermophysicalModels/radiation/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-
1.6.x/src/turbulenceModels/compressible/turbulenceModel -I/usr/local/OpenFOAM/Op
enFOAM-1.6.x/src/finiteVolume/cfdTools -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/
finiteVolume/lnInclude -IlnInclude -I. -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/
OpenFOAM/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnI
nclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantPisoFoam.o
/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/readPISOControls.H
: In function ‘int main(int, char**)’:
/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/readPISOControls.H
:11: warning: unused variable ‘transonic’
/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/readPISOControls.H
:14: warning: unused variable ‘nOuterCorr’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parame
ter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40
-I../buoyantPisoFoam -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalMode
ls/basic/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels
/radiation/lnInclude -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/turbulenceModels/c
ompressible/turbulenceModel -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolum
e/cfdTools -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -IlnI
nclude -I. -I/usr/local/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/usr/lo
cal/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64G
ccDPOpt/buoyantPisoFoam.o -L/usr/local/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPO
pt \
-lmeshTools -lbasicThermophysicalModels -lspecie -lradiation -lcomp
ressibleRASModels -lcompressibleLESModels -lfiniteVolume -lOpenFOAM -liberty -ld
l -lm -o /home/muthu/OpenFOAM/muthu-1.6.x/applications/bin/linux64GccDPOpt/buo
yantPisoRadiationFoam

---------------------------------------------------------------------------------------------------



Changes made
h.Eqn.H
{
fvScalarMatrix hEqn
(
fvm::ddt(rho, h)
+ fvm::div(phi, h)
- fvm::laplacian(turbulence->alphaEff(), h)
==
DpDt
+ radiation->Sh(thermo) // added by me
);
hEqn.relax();
hEqn.solve();
thermo.correct();
radiation->correct();
}

buoyantPisoFoam.C

\*---------------------------------------------------------------------------*/
#include "fvCFD.H"
#include "basicRhoThermo.H"
#include "turbulenceModel.H"
#include "fixedGradientFvPatchFields.H"
#include "radiationModel.H" // added by me
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "readGravitationalAcceleration.H"
#include "createFields.H"
#include "createRadiationModel.H" // added by me
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info<< "\nStarting time loop\n" << endl;
while (runTime.run())
{
#include "readTimeControls.H"
#include "readPISOControls.H"
#include "compressibleCourantNo.H"
#include "setDeltaT.H"
runTime++;
Info<< "Time = " << runTime.timeName() << nl << endl;
#include "rhoEqn.H"
#include "UEqn.H"
#include "hEqn.H"
// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
{
#include "pEqn.H"
}
turbulence->correct();
rho = thermo.rho();
runTime.write();
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}
Info<< "End\n" << endl;
return 0;
}

// ************************************************** *********************** //
Option file :

EXE_INC = \
-I../buoyantPisoFoam \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \
-lmeshTools \
-lbasicThermophysicalModels \
-lspecie \
-lradiation \
-lcompressibleRASModels \
-lcompressibleLESModels \
-lfiniteVolume
//
maruthamuthu_venkatraman is offline   Reply With Quote

Old   February 9, 2010, 07:11
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 maruthamuthu_venkatraman,

I remember seeing those two warnings when we build the original version, so it's nothing new there. They just mean that those two variables are defined but never used.

As for the modification, I can't say anything about it, since I don't have experience in merging solvers

Best regards,
Bruno Santos
wyldckat is offline   Reply With Quote

Old   February 9, 2010, 10:46
Default
  #3
Member
 
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17
maruthamuthu_venkatraman is on a distinguished road
Thank You!

The solver runs without any problems. However i need to make some more validations before to say anything. I want to check the wallHeatFlux but i dont know how to use that utility in OpenFOAM 1.6.

Regards
maruthamuthu_venkatraman 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
error msg when compiling user fortran Ollimarc CFX 0 March 13, 2008 19:16
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 sponiar OpenFOAM Running, Solving & CFD 3 February 26, 2008 07:31
Problem compiling OpenFOAM on AIX 53 haunschmid OpenFOAM Installation 1 October 17, 2006 13:58
some problem about compiling Nektar ztdep Main CFD Forum 0 July 30, 2005 10:43
Discussing UDF and C++ Compiling Big Stone FLUENT 9 April 12, 2004 16:07


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