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

rhoPisoFoam with radiation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 22, 2009, 14:34
Default rhoPisoFoam with radiation
  #1
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
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
braennstroem is offline   Reply With Quote

Old   October 23, 2009, 04:49
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by braennstroem View Post
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?
Hi Fabian. You probably figured out by now, but I'll tell it anyway.

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
gschaider is offline   Reply With Quote

Old   October 23, 2009, 05:18
Default
  #3
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
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
braennstroem is offline   Reply With Quote

Old   October 23, 2009, 06:23
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by braennstroem View Post
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.
I have. If you look at the C-file of that solver in 1.6 you'll see the line

#include "createRadiationModel.H"

which does exactly the same thing

Bernhard
gschaider is offline   Reply With Quote

Old   October 23, 2009, 11:01
Default
  #5
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
Hi Bernhard,

thanks did not see this ... was always looking for radiation not Radiation :-(

Fabian
braennstroem 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
Surface incident radiation Pipiola FLUENT 0 August 11, 2009 15: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 05:56


All times are GMT -4. The time now is 14:38.