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

rhoPisoFoam with radiation

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

Like Tree5Likes
  • 1 Post By braennstroem
  • 1 Post By gschaider
  • 1 Post By braennstroem
  • 1 Post By gschaider
  • 1 Post By braennstroem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2009, 15:34
Default rhoPisoFoam with radiation
  #1
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
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
Ramzy1990 likes this.
braennstroem is offline   Reply With Quote

Old   October 23, 2009, 05:49
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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
Ramzy1990 likes this.
gschaider is offline   Reply With Quote

Old   October 23, 2009, 06:18
Default
  #3
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
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
Ramzy1990 likes this.
braennstroem is offline   Reply With Quote

Old   October 23, 2009, 07:23
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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
Ramzy1990 likes this.
gschaider is offline   Reply With Quote

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

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

Fabian
Ramzy1990 likes this.
braennstroem is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:06.