CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adding a source term to k and epsilon equation for buoyancy (https://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 14: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?

calf.Z April 19, 2019 08:41

I am also wondering how I can add buoyancy term into K and epsilon.

I found Gcoef in buoyantKEpsilon and I am trying to use it.


All times are GMT -4. The time now is 18:43.