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

OpenFoam combustion model

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

Like Tree1Likes
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Display Modes
Old   November 19, 2014, 11:11
Default OpenFoam combustion model
  #1
New Member
 
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 6
yaqb is on a distinguished road
Hi All!

I am to add the combustion into the multi region solver and I have few problems connected with this. The main idea was to use the approach from different solvers (reactingFoam fireFoam ) into chtMultiRegionFoam.
I tried to add the combustion library into transport equation just by adding :
{
fvScalarMatrix hEqn
(
fvm::ddt(rho, h)
+ fvm::div(phi, h)
- fvm::laplacian(turb.alphaEff(), h)
==
dpdt
- (fvc::ddt(rho, K) + fvc::div(phi, K))
+ combustion->Sh()
+ rad.Sh(thermo)
);


This however always turns out the error:

fluid/hEqn.H:10:9: error: ‘combustion’ was not declared in this scope
+ combustion->Sh()


This means that the function "combustion" is not understandable for the program so it has to be somehow initialise. I done it by simply adding
#include "psiChemistryCombustionModel.H"
into main .C file but it does not fix the problem.

And here is the question - probably very simple - where can I find the function "combustion" within OpenFoam libraries? And why it is not psiChemistryCombustionModel.H ?

Can anybody of you help?
yaqb is offline   Reply With Quote

Old   November 19, 2014, 13:19
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 716
Rep Power: 21
mturcios777 will become famous soon enough
Have you declared a combustion model variable? Have a look in createFields.H and you will see that combustion is a pointer to the combustion model, so that combustion is not a function but an object and you are trying to access the member function of an object that hasn't been declared.
wenxu likes this.
mturcios777 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
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
the difference of species transport and non-premixed combustion model Messi FLUENT 0 June 30, 2014 04:30
the combustion model problem hanshandiaoke STAR-CD 7 December 2, 2011 04:47
Combustion model for CAI/HCCI in AVL FIRE stoodent Main CFD Forum 0 July 19, 2009 18:37
combustion model Hennie van der Westhuizen Siemens 7 February 27, 2002 03:10


All times are GMT -4. The time now is 20:41.