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

Adding a source term to k and epsilon equation for buoyancy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2012, 09:53
Default Adding a source term to k and epsilon equation for buoyancy
  #1
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 25
Rep Power: 17
rajeshkunwar is on a distinguished road
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....
rajeshkunwar is offline   Reply With Quote

Old   May 15, 2014, 13:41
Default
  #2
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
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?
__________________
Regards,

Srivaths
Sherlock_1812 is offline   Reply With Quote

Old   April 19, 2019, 07:41
Default
  #3
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 7
calf.Z is on a distinguished road
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.
calf.Z 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
What's the source term in this turbulent momentum equation? lyes43 Main CFD Forum 2 December 1, 2012 11:19
Source Term on Scalar Transport Equation - crashing simulation alessio.nz OpenFOAM 19 February 8, 2011 07:38
The effect of E term in the EPSILON equation Valdemir G. Ferreira Main CFD Forum 6 June 7, 2000 02:37
Extra term in Epsilon equation Valdemir G. Ferreira Main CFD Forum 0 April 30, 2000 08:57
bouyancy term in epsilon equation Michael Main CFD Forum 1 June 25, 1999 10:20


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