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

Error in compiling solver: twoPhaseEulerFoam 2.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2015, 12:32
Smile Error in compiling solver: twoPhaseEulerFoam 2.2
  #1
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
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
ARUN K RAJ is offline   Reply With Quote

Old   February 27, 2015, 13:01
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
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.
mprinkey is offline   Reply With Quote

Old   February 27, 2015, 13:03
Default Thankyou Michael
  #3
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
Sure i would take a look into the other solvers where the energy equations are added. And thanks for the details
ARUN K RAJ is offline   Reply With Quote

Old   February 27, 2015, 22:48
Default
  #4
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
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.
ARUN K RAJ is offline   Reply With Quote

Old   February 28, 2015, 09:21
Default
  #5
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam 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
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


All times are GMT -4. The time now is 19:12.