|
[Sponsors] |
reactingFOAM with fvOptions for gravity ERROR in energy equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 1, 2019, 13: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 14:15. Reason: better explanation! |
|
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 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 |