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

Error in compiling solver: twoPhaseEulerFoam 2.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2015, 13:32
Smile Error in compiling solver: twoPhaseEulerFoam 2.2
  #1
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 2
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, 14:01
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 116
Rep Power: 12
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, 14:03
Default Thankyou Michael
  #3
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 2
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, 23:48
Default
  #4
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 2
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, 10:21
Default
  #5
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 13:18
OF 2.1.1 error in compiling modified solver anuragm OpenFOAM Programming & Development 2 November 28, 2014 10: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 12: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:52.