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

reactingFOAM with fvOptions for gravity ERROR in energy equation

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

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2019, 13:33
Default reactingFOAM with fvOptions for gravity ERROR in energy equation
  #1
New Member
 
Join Date: Jan 2017
Posts: 24
Rep Power: 9
er99 is on a distinguished road
Hi,

I want to use reactingFoam in OpenFOAM 4.x while accounting for the effects of gravity. To do this, I have chosen to include the source terms offered by fvOptions buyoancyForce and buoyancyEnergy.

Example usage for the buyoancyForce option is:
fields (U); // Name of velocity field

Example usage for the buyoancyEnergy option is:
fields (h); // Name of energy field

I used U for the velocity field and he for the energy field. The latter was chosen because in reactingFoam's energy equation (EEqn.H) you see an extra fvOptions term with rho and he: + fvOptions(rho, he).

However, when running the code, I got this error message in the logfile:

--> FOAM Warning :
From function virtual void Foam::fv:: option::checkApplied() const
in file cfdTools/general/fvOptions/fvOption.C at line 118
Source gravityEnergyEqtn defined for field he but never used



The code ran to the end but since I got the above error message, I'm assuming this means that the gravitational term in the energy equation has not been solved for and therefore my results are not the ones I need.

I also tried with field "e" but this gave me the same error message. However, when I use the field "h" it works. This is confusing to me as reactingFoam's energy equation has the line:
he.name() == "e"


Can someone help me understand why it works when "h" is selected as the field?

Thanks in advance!

Last edited by er99; June 1, 2019 at 14:15. Reason: better explanation!
er99 is offline   Reply With Quote

Old   June 3, 2019, 11:08
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,665
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
he is not a valid field. You'll find he in solvers because the energy equation can be written in h or e. If you dig deeper into the codes you'll find condition statements that handle cases when the fieldname is h or e.

Go to constant/thermophysialProperties dict and check the entry for energy. If it says sensiblEnthalpy then you are using an energy equation based on h. If it says sensibleInternalEnergy then you can use e.
er99 likes this.
LuckyTran is offline   Reply With Quote

Reply

Tags
energy, fvoptions, gravity, reactingfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in energy equation of reactingFoam (openfoam 6) Benben OpenFOAM Running, Solving & CFD 3 January 14, 2019 07:38
Comparing residuals of momentum and energy equation skarma FLUENT 4 November 25, 2017 22:03
Error in computing Energy equation faab OpenFOAM Running, Solving & CFD 0 February 3, 2017 13:04
Question regarding Energy equation in reactingFoam Dan1788 OpenFOAM Programming & Development 6 August 5, 2014 00:22
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 13:22


All times are GMT -4. The time now is 02:16.