|
[Sponsors] |
October 22, 2009, 15:34 |
rhoPisoFoam with radiation
|
#1 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 |
Hi,
I am struggling a bit with the implementation of a radiation source for rhoPisoFoam. Basically, I added: #include "radiationModel.H" adjusted the options file with: -I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \ -lradiation \ and added a radition source to the enthalpy eqn: solve ( fvm::ddt(rho, h) + fvm::div(phi, h) - fvm::laplacian(turbulence->alphaEff(), h) == DpDt + radiation->Sh(thermo) ); thermo.correct(); radiation->correct(); Unfortunately, I get this error, which I do not understand: In file included from rhoPisoFoam.C:74: hEqn.H: In function int main(int, char**): hEqn.H:9: error: expected primary-expression before -> token hEqn.H:13: error: expected primary-expression before -> token Has anyone an idea, what this means? Thanks! Fabian |
|
October 23, 2009, 05:49 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Basically it means "I don't know this radiation object you are talking about". Have you created it? Have a look at the last lines of createFields.H of the buoyantRadiationFoam-solver for an example Bernhard |
||
October 23, 2009, 06:18 |
|
#3 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 |
Hallo Bernhard,
thanks for the explanation! Though it seems, that is not needed anymore in 1.6.x or maybe the object gets created in another way than in 1.5,where it is done with: Info<< "Creating radiation model\n" << endl; autoPtr<radiation::radiationModel> radiation ( radiation::radiationModel::New(T) ); Would be nice, if you have another suggestion. Fabian |
|
October 23, 2009, 07:23 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
#include "createRadiationModel.H" which does exactly the same thing Bernhard |
||
October 23, 2009, 12:01 |
|
#5 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19 |
Hi Bernhard,
thanks did not see this ... was always looking for radiation not Radiation :-( Fabian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface incident radiation | Pipiola | FLUENT | 0 | August 11, 2009 16:46 |
Multiphase radiation in CFX | Luk_Fiz | CFX | 5 | March 17, 2009 04:51 |
DO radiation model | jarno brunetti | FLUENT | 0 | January 21, 2006 16:52 |
Radiation: definitions | visatron | CFX | 7 | January 8, 2004 16:25 |
Fluent incident radiation problem | Michael Schwarz | Main CFD Forum | 0 | October 21, 1999 06:56 |