|
[Sponsors] |
Error in compiling solver: twoPhaseEulerFoam 2.2 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 27, 2015, 12:32 |
Error in compiling solver: twoPhaseEulerFoam 2.2
|
#1 |
New Member
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11 |
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 |
|
February 27, 2015, 13:01 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
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. |
|
February 27, 2015, 13:03 |
Thankyou Michael
|
#3 |
New Member
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11 |
Sure i would take a look into the other solvers where the energy equations are added. And thanks for the details
|
|
February 27, 2015, 22:48 |
|
#4 |
New Member
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11 |
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.
|
|
February 28, 2015, 09:21 |
|
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 25 |
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
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3d simulation of bubblefoam case with twophaseeulerfoam solver | Hamzeh_Mirab | OpenFOAM | 0 | January 10, 2015 12:18 |
OF 2.1.1 error in compiling modified solver | anuragm | OpenFOAM Programming & Development | 2 | November 28, 2014 09:37 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 00:01 |
OF2.2.2 in Mac 10.9_error of compiling new solver | Ran Sui | OpenFOAM Programming & Development | 2 | January 25, 2014 11:00 |
Error while compiling solver | umar82088 | OpenFOAM Programming & Development | 3 | July 8, 2013 02:23 |