|
[Sponsors] |
February 3, 2017, 14:04 |
Error in computing Energy equation
|
#1 |
Member
|
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 |
|
|
|
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 |