|
[Sponsors] |
reactingFOAM with fvOptions for gravity ERROR in energy equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 1, 2019, 14:33 |
reactingFOAM with fvOptions for gravity ERROR in energy equation
|
#1 |
New Member
Join Date: Jan 2017
Posts: 24
Rep Power: 9 |
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 15:15. Reason: better explanation! |
|
June 3, 2019, 12:08 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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. |
|
Tags |
energy, fvoptions, gravity, reactingfoam |
|
|
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 08:38 |
Comparing residuals of momentum and energy equation | skarma | FLUENT | 4 | November 25, 2017 23:03 |
Error in computing Energy equation | faab | OpenFOAM Running, Solving & CFD | 0 | February 3, 2017 14:04 |
Question regarding Energy equation in reactingFoam | Dan1788 | OpenFOAM Programming & Development | 6 | August 5, 2014 01:22 |
Why FVM for high-Re flows? | Zhong Lei | Main CFD Forum | 23 | May 14, 1999 14:22 |