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

Error in computing Energy equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2017, 14:04
Default Error in computing Energy equation
  #1
Member
 
fouad abi
Join Date: Nov 2015
Location: Geneva, Switzerland
Posts: 42
Rep Power: 11
faab is on a distinguished road
Send a message via Skype™ to faab
Dear all,

I am building a new solver using the version 2.3.x of OF, and I have an issue with compiling this solver rising from the energy equation. The equation looks like:
fvScalarMatrix EEqn
(
fvm::ddt(rho, hi) + fvc::ddt(rho, e)
+ fvm::div(rho*U, hi) + fvc::div(rho*U, e)
+ fvm::div(p, U) - fvm::laplacian(kEff, T)
);

hi being the internal energy of the fluid and e the specific energy, kEff the effective conductivity and U and rho obviously the velocity and fluid density.
However the solver returns the following error:
error: no matching function for call to ‘div(Foam::tmp<Foam::GeometricField<Foam::Vector<d ouble>, Foam::fvPatchField, Foam::volMesh> >, Foam::volScalarField&)’
+ fvm::div(rho*U, hi) + fvc::div(rho*U, e)

Same error which logically comes back for every 'div' statement in the equation. I understand from the log that openfoam complains about me trying to compute the divergence of a geometric field double and a volscalarfield as arguments, but then how can I compute this equation ??

Thanks a lot for your help !!
Faab
faab 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
Pyrolisis energy equation yaqb OpenFOAM Programming & Development 0 May 22, 2014 18:25
error message cuteapathy CFX 14 March 20, 2012 07:45
energy equation in rhoCentralFoam nakul OpenFOAM 0 October 10, 2010 16:07
SIMPLE and energy equation convergence Fabio Main CFD Forum 0 June 1, 2007 07:06


All times are GMT -4. The time now is 05:24.