|
[Sponsors] |
November 19, 2014, 11:11 |
OpenFoam combustion model
|
#1 |
New Member
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13 |
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? |
|
November 19, 2014, 13:19 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 15:32 |
the difference of species transport and non-premixed combustion model | Messi | FLUENT | 0 | June 30, 2014 05: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 19:37 |
combustion model | Hennie van der Westhuizen | Siemens | 7 | February 27, 2002 03:10 |