CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adding a source term to k and epsilon equation for buoyancy (http://www.cfd-online.com/Forums/openfoam-solving/110300-adding-source-term-k-epsilon-equation-buoyancy.html)

rajeshkunwar December 7, 2012 10:53

Adding a source term to k and epsilon equation for buoyancy
 
Hi..

I am adding a term which is a function of density gradient and gravitational acceleration (g) to k and epsilon equation of compressible k-epsilon model. while compiling my new k-epsilon model, error comes as


In file included from mykEpsilon.C:268:0:
/home/rajesh/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:1:5: error: ‘Info’ does not name a type
/home/rajesh/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:2:5: error: ‘uniformDimensionedVectorField’ does not name a type
mykEpsilon.C: In member function ‘virtual void Foam::compressible::RASModels::mykEpsilon::correct ()’:
mykEpsilon.C:297:29: error: ‘g’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/mykEpsilon.o] Error 1
rajesh@rajesh-OptiPlex-990:~/OpenFOAM/rajesh-2.1.1/src/turbulenceModels/compressible/RAS/mykEpsilon$


Pls help....

Sherlock_1812 May 15, 2014 13:41

Hi,

It seems that there is some error in your readgravitationalacceleration.H file. The second error in your .C file also points to not being able to read properly. Make sure that the contents of the above mentioned .H file are correct.

I am also working on buoyancy driven flows. May I know how you are adding the source term for buoyancy to the k-equation?


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