CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Error in compiling solver: twoPhaseEulerFoam 2.2 (https://www.cfd-online.com/Forums/openfoam-programming-development/149187-error-compiling-solver-twophaseeulerfoam-2-2-a.html)

ARUN K RAJ February 27, 2015 12:32

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:

mprinkey February 27, 2015 13:01

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.

ARUN K RAJ February 27, 2015 13:03

Thankyou Michael
 
Sure i would take a look into the other solvers where the energy equations are added. And thanks for the details :)

ARUN K RAJ February 27, 2015 22:48

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.

nimasam February 28, 2015 09:21

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.