CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Transport Equation for temperature variance

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

LinkBack Thread Tools Display Modes
Old   December 5, 2008, 02:16
Default Dear OpenFOAM users. I am
New Member
Ameya Durve
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 8
ameya is on a distinguished road
Dear OpenFOAM users.

I am using OpenFOam-1.5 I wanted to solve the transport equation for temperature variance for my research purpose. I have added Temperature equation and Trms equation in the simpleFoam code for the same purpose.( I have replaced buoyantSimpleRadiation code with SimpleFOam code since my original simpleFoam code is running with some other modifications in energy equation)

My TEqn.H file reads as

alphaEff = alpha + turbulence->nut()/Prt;

fvm::div(phi, T)
- fvm::laplacian(alphaEff, T)
eqnResidual() = solve(TEqn()).intialResidual();
maxResidual = max(eqnResidual, maxResidual);

My TrmsEqn.H file reads as

alphavariance = alpha + (0.13*(turbulence->k()*turbulence->k()/turbulence->epsilon()));

fvm::div(phi, Trms)
-fvm::laplacian(alphavariance, Trms)
+fvm::Sp(fvc::div(alphaEff, T), Trms)
eqnResidual = solve(TrmsEqn()).initialResidual();
maxResidual = max(eqnResidual, maxResidual);

On compilation i get following error

Ameya@Ameya:~/OpenFOAM/OpenFOAM-1.5/applications/solvers/heatTransfer/buoyantSimpleRadiatio nFoam> wclean
Ameya@Ameya:~/OpenFOAM/OpenFOAM-1.5/applications/solvers/heatTransfer/buoyantSimpleRadiatio nFoam> wmake
Making dependency list for source file buoyantSimpleRadiationFoam.C
SOURCE=buoyantSimpleRadiationFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/Ameya/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/Ameya/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels/RAS -I/home/Ameya/OpenFOAM/OpenFOAM-1.5/src/transportModels -IlnInclude -I. -I/home/Ameya/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/Ameya/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/buoyantSimpleRadiationFoam.o
In file included from buoyantSimpleRadiationFoam.C:72:
TrmsEqn.H: In function 'int main(int, char**)':
TrmsEqn.H:8: error: no matching function for call to 'div(Foam::volScalarField&, Foam::volScalarField&)'
make: *** [Make/linuxGccDPOpt/buoyantSimpleRadiationFoam.o] Error 1

Any ideas on what the error actually means????
I know there is some mistake in the way in which the source term of Trms equation is written but i am not able to find out what and exactly how that term should be written. Can anyone please help me?????????
ameya is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Poisson equation combined with transport equation Se-Hee CFX 0 December 27, 2007 02:00
Transport equation using UDF wassim FLUENT 5 February 14, 2007 23:56
transport equation CMB CD-adapco 2 July 9, 2004 05:19
transport equation for SGS scalar variance chinthakindi Main CFD Forum 0 April 27, 2004 09:26
Dissipation of temperature variance Fabian Main CFD Forum 2 December 11, 2000 12:19

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