Error in compiling solver: twoPhaseEulerFoam 2.2
Hi Members ;)
I'm trying to add certain enthalpy equations to twoPhaseEulerFoam 2.2 version. I am getting an error like this as given below TEqns.H:14:32: error: no matching function for call to ‘ddt(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >)’ Similarly an error related with div scheme also. The error is associated with fvm schemes i added in the TEqn.H file. But what does it refer to ? any valuable suggestions?? The energy equation is smthng like this: ddt(rho1*u1*cp1*T1)+ div(rho1*u1*v*cp1*T1)= laplacian(k*T) k thermal conductivity I have rather not much knowledge with openfoam and the coding stuffs :confused: |
ddt, div, and laplacian exist in (at least) two namespaces. fvc::laplacian does the explicit finite volume calculation (hence fvc) and produces a field. fvm::laplacian creates a linear system (matrix A and right-hand-side vector b) involving the laplacian of the variable. (fvm is "finite volume matrix.")
There are plenty of examples of energy equations in other openfoam solvers. I suggest that you study those. |
Thankyou Michael
Sure i would take a look into the other solvers where the energy equations are added. And thanks for the details :)
|
Could somebody explain me more about thermo.(). It is related with thermophysical properties bt hw can i define it onto a solver. what is the proper format for it.
|
Dear ARUN
i suggest you to get familiar to C++ programming at first, specially how to work with classes :), then you can easily find answers for all your simple questions :) |
All times are GMT -4. The time now is 23:12. |