CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Adding a source term to k and epsilon equation for buoyancy

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 7, 2012, 10:53
Default Adding a source term to k and epsilon equation for buoyancy
  #1
New Member
 
Rajesh Kumar
Join Date: Apr 2009
Posts: 23
Rep Power: 7
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, 14:41
Default
  #2
Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 99
Rep Power: 3
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

Reply

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
What's the source term in this turbulent momentum equation? lyes43 Main CFD Forum 2 December 1, 2012 12:19
Source Term on Scalar Transport Equation - crashing simulation alessio.nz OpenFOAM 19 February 8, 2011 08:38
The effect of E term in the EPSILON equation Valdemir G. Ferreira Main CFD Forum 6 June 7, 2000 03:37
Extra term in Epsilon equation Valdemir G. Ferreira Main CFD Forum 0 April 30, 2000 09:57
bouyancy term in epsilon equation Michael Main CFD Forum 1 June 25, 1999 11:20


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