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

Simple radiation validation problem

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2013, 08:36
Default Simple radiation validation problem
  #1
Member
 
Logan Page
Join Date: Sep 2010
Posts: 38
Rep Power: 15
Logan Page is on a distinguished road
Hi All

I am trying to solve a very simple radiation case in order to validate OpenFoam's radiation model/s, so far with little success.

The case I'm trying to solve is a 2D square enclosure (1m x 1m):
  • left wall: uniform T at 100K (black body - emission)
  • right, top and bottom walls: uniform T at 0 K (black body - absorption)
  • no convection or conduction (vacuum)
The analytical results for this are quite easy to calculate and are as follows:
  • Qr from the left wall: 5.67 W/m2
  • Qr into right wall: 2.3474 W/m2
    • 5.67 * ViewFactor = 5.67 * 0.414
  • Qr into top wall: 1.661 W/m2
    • 5.67 * ViewFactor = 5.67 * 0.293
  • Qr into bottom wall: 1.661 W/m2
    • 5.67 * ViewFactor = 5.67 * 0.293
For this I have tried the P1 and fvDOM radiation models, I have tried using the buoyanySimpleFoam solver as well as a custom solver I created and all give me more or less the same incorrect solution.

I have attached the following:

Qr on the leftWall should be uniform across the whole surface equal to 5.67, which I am able to get with the custom solver, but not with the buoyantSimpleFoam solver (for some reason the thermal conductivity in the energy equation has an effect on Qr).
Qr on the rightWall should give a area-weighted sum of 2.3474, in paraFoam I get an area-weighted sum of 0.6103. I am unable to get the correct Qr for the right, top and bottom surfaces.

I hoping that this is the case of me missing something fundamental so any comments / advice would be useful
Logan Page is offline   Reply With Quote

Old   August 19, 2013, 06:59
Default
  #2
Member
 
Logan Page
Join Date: Sep 2010
Posts: 38
Rep Power: 15
Logan Page is on a distinguished road
Can someone please explain to me how and where these coefficients (in the radiationProperties file) play a role in the radiation models:

Code:
absorptionEmissionModel constantAbsorptionEmission;

constantAbsorptionEmissionCoeffs
{
   absorptivity    absorptivity    [ 0 -1 0 0 0 0 0 ]  0;
   emissivity      emissivity      [ 0 -1 0 0 0 0 0 ]  0;
   E               E              [ 1 -1 -3 0 0 0 0 ] 0;
}
Because if I change the absorptivity and emissivity to 0 (as shown above) i get the exact analytical solution for this test case.
Logan Page is offline   Reply With Quote

Old   September 7, 2013, 13:23
Default
  #3
Senior Member
 
Zeppo's Avatar
 
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21
Zeppo will become famous soon enough
Quote:
Originally Posted by Logan Page View Post
Because if I change the absorptivity and emissivity to 0 (as shown above) i get the exact analytical solution for this test case.
Have you tried out ViewFactors radiation model?
Zeppo is offline   Reply With Quote

Old   September 30, 2013, 02:31
Default
  #4
Member
 
Artem Shaklein
Join Date: Feb 2010
Location: Russia, Izhevsk
Posts: 43
Rep Power: 16
ARTem is on a distinguished road
Hello, Logan Page.
The spherical harmonic approx. method (P1) gives me 8.47 [W/m2] and 2.79 [W/m2] for q_left and q_right correspondingly.
The discrete ordinates method gives me 5.67 [W/m2] and 2.31 [W/m2] for q_left and q_right correspondingly. This result is very close to theoretical one.
I haven't used viewFactors model yet.

If you're still interesting in this stuff, I can share test case here.
nick54 likes this.
ARTem is offline   Reply With Quote

Old   September 30, 2013, 03:52
Default
  #5
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

You can not use P1 model with an empty cavity, since P1 model is for optical thick media (a*l >1), with a= absorptivity and l = carac. length
DO and viewfactor method should work however.

regards,
olivier
olivierG is offline   Reply With Quote

Old   September 30, 2013, 06:33
Default
  #6
Member
 
Logan Page
Join Date: Sep 2010
Posts: 38
Rep Power: 15
Logan Page is on a distinguished road
Hi

Thanks for the feedback.

I was able to get the theoretical results using the DO method by setting "absorptionEmissionModel" to "none" in the "radiationProperties" file.

I was also able to figure out the theory and 90% of the implementation thereof in OpenFOAM for the DO method through the use of the book by M. Modest (Radiative Heat Transfer, 3rd Edition)


However for the life of me I cannot figure out why there is an additional source radiation term implemented for the DO method in OpenFoam.
For a participating, non-scattering, medium the governing RTE is given by:


However in OpenFOAM there is an additional source term that has been added:
Code:
            IiEq =
            (
                fvm::div(Ji, ILambda_[lambdaI], "div(Ji,Ii_h)")   //<-- first term
              + fvm::Sp(k*omega_, ILambda_[lambdaI])              //<-- second term
            ==
                1.0/constant::mathematical::pi*omega_
              * (
                    k*blackBody_.bLambda(lambdaI)                 //<-- third term
                  + absorptionEmission_.ECont(lambdaI)/4          //<-- additional source ??
                )
            );
The first 3 terms implemented in OpenFOAM are 100% correct according to the theory, however I cannot find any theory / literature as to why there would be an additional source term in the RTE.

For a "constantAbsorptionEmission" model "ECont(lambdaI)" is simply the "E" value specified by the user in the "radiationProperties" file. For a "greyMeanAbsorptionEmission" model "ECont(lambdaI)" is "EhrrCoeff * dQ" where again "EhrrCoeff" is specified by the user in the "radiationProperties" file.
Attached Images
File Type: png Selection_004.png (10.0 KB, 2387 views)
Zhiheng Wang likes this.
Logan Page is offline   Reply With Quote

Old   February 18, 2014, 13:13
Default
  #7
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
Quote:
Originally Posted by ARTem View Post
Hello, Logan Page.
The spherical harmonic approx. method (P1) gives me 8.47 [W/m2] and 2.79 [W/m2] for q_left and q_right correspondingly.
The discrete ordinates method gives me 5.67 [W/m2] and 2.31 [W/m2] for q_left and q_right correspondingly. This result is very close to theoretical one.
I haven't used viewFactors model yet.

If you're still interesting in this stuff, I can share test case here.
Hello,

could you kindly share your test case ? I am facing the same problem and I want to learn a little about how to set up radiation from your case.

thank you very much.
wc34071209 is offline   Reply With Quote

Old   March 10, 2014, 18:05
Default
  #8
New Member
 
Dan
Join Date: Jan 2014
Location: Australia
Posts: 2
Rep Power: 0
scintilla is on a distinguished road
Quote:
Originally Posted by Logan Page View Post
Hi

Thanks for the feedback.

I was able to get the theoretical results using the DO method by setting "absorptionEmissionModel" to "none" in the "radiationProperties" file.

I was also able to figure out the theory and 90% of the implementation thereof in OpenFOAM for the DO method through the use of the book by M. Modest (Radiative Heat Transfer, 3rd Edition)


However for the life of me I cannot figure out why there is an additional source radiation term implemented for the DO method in OpenFoam.
For a participating, non-scattering, medium the governing RTE is given by:


However in OpenFOAM there is an additional source term that has been added:
Code:
            IiEq =
            (
                fvm::div(Ji, ILambda_[lambdaI], "div(Ji,Ii_h)")   //<-- first term
              + fvm::Sp(k*omega_, ILambda_[lambdaI])              //<-- second term
            ==
                1.0/constant::mathematical::pi*omega_
              * (
                    k*blackBody_.bLambda(lambdaI)                 //<-- third term
                  + absorptionEmission_.ECont(lambdaI)/4          //<-- additional source ??
                )
            );
The first 3 terms implemented in OpenFOAM are 100% correct according to the theory, however I cannot find any theory / literature as to why there would be an additional source term in the RTE.

For a "constantAbsorptionEmission" model "ECont(lambdaI)" is simply the "E" value specified by the user in the "radiationProperties" file. For a "greyMeanAbsorptionEmission" model "ECont(lambdaI)" is "EhrrCoeff * dQ" where again "EhrrCoeff" is specified by the user in the "radiationProperties" file.
Hi Logan,

I was a bit confused by this when I first saw it too -- as you correctly say, only the first three terms appear in the theoretical RTE. However this is a numerical implementation and I believe the reason for the E parameter in the absorptionEmissionModel is to allow the user the choice of defining the emissive power of the gas directly (W/m3), rather than via the gray gas relation (emissivity * planck function). This would be useful if one wanted to apply a radiative source term that does not vary in proportion to the Planck function.

S
scintilla is offline   Reply With Quote

Old   March 10, 2014, 20:32
Default I Need Help
  #9
New Member
 
Join Date: Mar 2014
Posts: 23
Rep Power: 12
Majed is on a distinguished road
Hello all,

I am new to this forum. I really need your help to solve my problems in running openfoam. attached is my geometry. There are 5 rows of vanes in front of an intake channel. I have produced my geometry, but I think it is not correct. Does any body know, how I can define the water surface in my geometry? I want to consider it as rigid lid. Then my flow in the channel in turbulent, and I want to use k-epsilon turbulent model for the simulations.

Any help is really appreciated.
Attached Images
File Type: jpg Untitled2.jpg (41.4 KB, 325 views)
Majed is offline   Reply With Quote

Old   October 11, 2014, 16:28
Default
  #10
Member
 
JuNNioR
Join Date: Feb 2014
Location: Brazil
Posts: 44
Rep Power: 12
jrsilvio_ver is on a distinguished road
Dear Friends,
In the example of validation discussed, as you would to include the ViewFactor model? What files should include?
I appreciate everyone's attention.
jrsilvio_ver is offline   Reply With Quote

Old   October 13, 2014, 04:49
Default
  #11
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
Quote:
Originally Posted by jrsilvio_ver View Post
Dear Friends,
In the example of validation discussed, as you would to include the ViewFactor model? What files should include?
I appreciate everyone's attention.
Hi,

I am eager to know as well.
wc34071209 is offline   Reply With Quote

Old   March 2, 2015, 05:37
Default
  #12
New Member
 
Amit Dhage
Join Date: Sep 2013
Location: India
Posts: 15
Rep Power: 12
Amit-1911 is on a distinguished road
Dear Logan page,

I am new to the OpenFOAM and hence may sound stupid!
Could you pls tell me how did you manage to set up your problem with no convection and conduction ( Conduction i can understand as no solid body present).
and if I want to consider convection with radiation what necessary changes i have to make??

Thanks in advance!

Regards,
Amit Dhage
Amit-1911 is offline   Reply With Quote

Old   May 22, 2015, 08:03
Default
  #13
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
Astrodan is on a distinguished road
Quote:
Originally Posted by Amit-1911 View Post
Could you pls tell me how did you manage to set up your problem with no convection and conduction ( Conduction i can understand as no solid body present).
I assume you can prevent convection by setting an initial velocity field of 0, and deactivating any graviational effects, so that the fluid should have no reason at all o move.
However, I'm not sure conduction really is deactivated, since the thermophysicalProperties values give mu and Pr, which I assume are used für thermal conductivity. Anyway, this should be quite small and probably has little influence on the solution (maybe the reason vor ARTems deviation from the exact soluton).

Quote:
Originally Posted by Logan Page View Post
However for the life of me I cannot figure out why there is an additional source radiation term implemented for the DO method in OpenFoam.
For a participating, non-scattering, medium the governing RTE is given by:


However in OpenFOAM there is an additional source term that has been added:
Code:
            IiEq =
            (
                fvm::div(Ji, ILambda_[lambdaI], "div(Ji,Ii_h)")   //<-- first term
              + fvm::Sp(k*omega_, ILambda_[lambdaI])              //<-- second term
            ==
                1.0/constant::mathematical::pi*omega_
              * (
                    k*blackBody_.bLambda(lambdaI)                 //<-- third term
                  + absorptionEmission_.ECont(lambdaI)/4          //<-- additional source ??
                )
            );
After we disscused the fourth term in the equation, I'd like to figure out why there is the omega/pi term present? This seems to be some weighting dependend on the solid angle, but I would expect it to be omega/(4*pi), i.e. the fraction of the complete solid angle that this ray covers. Can anyone explain to me what I'm missing? I also have the book by Modest (2nd Ed.), but I can't find the factor there either.
Astrodan is offline   Reply With Quote

Old   May 26, 2015, 10:39
Default
  #14
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
Quote:
Originally Posted by Astrodan View Post
I assume you can prevent convection by setting an initial velocity field of 0, and deactivating any graviational effects, so that the fluid should have no reason at all o move.
However, I'm not sure conduction really is deactivated, since the thermophysicalProperties values give mu and Pr, which I assume are used für thermal conductivity. Anyway, this should be quite small and probably has little influence on the solution (maybe the reason vor ARTems deviation from the exact soluton).
To get a zero velocity field, you should use a very small timestep in a transient solver combined with the conditions you mentioned. In the limit of small times the forces can't accelerate the fluid to meaningful speeds. Another method would be to simply remove the equations from the solver.
chriss85 is offline   Reply With Quote

Old   August 4, 2016, 04:48
Default
  #15
New Member
 
Joris C.
Join Date: Jan 2013
Posts: 29
Rep Power: 13
Coris is on a distinguished road
I've also used simple case above to start with radiation and am able to get the analytically expected results with fvDoM (see first post). However, I run into problems when changing the boundary conditions over time.

Any change in BC temperature (which is a fixedValue) is not fully reflected in the radiation model. This concerns me because any transient evolution in boundary temperature will not give correct radiation results.

I have tested this with the square enclosure case, no conduction and no convection. Also, the bottom and top walls are not taking part in the radiation procedure (0 emissivity and absorption), but this should not matter. The left wall starts at 100 K and the right wall at 200 K. After advancing 250s with chtMultiRegionFoam, I get correct results. When I write out these results and change the BC at the right wall to 0K (practically, 0.001 K), the right wall is still radiating to the left wall at 500s.

I have tried various settings of the fvDom solver, but no results. Any thoughts?

Note: The case can be found at https://www.dropbox.com/s/1esjyufcrd...nTest.zip?dl=0, for OF 3. The left and right walls are called Inlet and Outlet in this case. Running sh postProcess.sh shows the radiation balance and input for the relevant surfaces. See the first post for the expected results.
Coris is offline   Reply With Quote

Old   August 11, 2016, 03:21
Default
  #16
New Member
 
Joris C.
Join Date: Jan 2013
Posts: 29
Rep Power: 13
Coris is on a distinguished road
FYI, I posted the problem above, in a slight modified form, on the OF bug tracker:
http://bugs.openfoam.org/view.php?id=2185

I have also found another fundamental issue with fvDoM when cacheDiv = false:
http://bugs.openfoam.org/view.php?id=2182
Coris is offline   Reply With Quote

Old   January 25, 2017, 03:02
Default Could you make the case available again?
  #17
New Member
 
Join Date: Feb 2015
Posts: 1
Rep Power: 0
valikang is on a distinguished road
Quote:
Originally Posted by Coris View Post
I've also used simple case above to start with radiation and am able to get the analytically expected results with fvDoM (see first post). However, I run into problems when changing the boundary conditions over time.

Any change in BC temperature (which is a fixedValue) is not fully reflected in the radiation model. This concerns me because any transient evolution in boundary temperature will not give correct radiation results.

I have tested this with the square enclosure case, no conduction and no convection. Also, the bottom and top walls are not taking part in the radiation procedure (0 emissivity and absorption), but this should not matter. The left wall starts at 100 K and the right wall at 200 K. After advancing 250s with chtMultiRegionFoam, I get correct results. When I write out these results and change the BC at the right wall to 0K (practically, 0.001 K), the right wall is still radiating to the left wall at 500s.

I have tried various settings of the fvDom solver, but no results. Any thoughts?

Note: The case can be found at https://www.dropbox.com/s/1esjyufcrd...nTest.zip?dl=0, for OF 3. The left and right walls are called Inlet and Outlet in this case. Running sh postProcess.sh shows the radiation balance and input for the relevant surfaces. See the first post for the expected results.
Could you make the case available again. I am looking for a closed enclosure radiation validation case for a conjugate heat transfer problem solved with chtMultiRegionFoam.

-Turo
valikang is offline   Reply With Quote

Old   April 16, 2017, 16:26
Default
  #18
Senior Member
 
Yuehan
Join Date: Nov 2012
Posts: 142
Rep Power: 13
wc34071209 is on a distinguished road
Quote:
Originally Posted by Logan Page View Post
Can someone please explain to me how and where these coefficients (in the radiationProperties file) play a role in the radiation models:

Code:
absorptionEmissionModel constantAbsorptionEmission;

constantAbsorptionEmissionCoeffs
{
   absorptivity    absorptivity    [ 0 -1 0 0 0 0 0 ]  0;
   emissivity      emissivity      [ 0 -1 0 0 0 0 0 ]  0;
   E               E              [ 1 -1 -3 0 0 0 0 ] 0;
}
Because if I change the absorptivity and emissivity to 0 (as shown above) i get the exact analytical solution for this test case.

Hi,

I think these properties are the properties of air. So if you set all of them zero, then they don't play a role in the radiation and therefore it works like a vacuum and therefore you get exact analytical solutions.

Or you can also do it like this
Code:
absorptionEmissionModel none;
I think both ways work the same.
wc34071209 is offline   Reply With Quote

Old   March 13, 2018, 00:24
Post
  #19
Member
 
Jung da yoon
Join Date: Nov 2017
Posts: 53
Rep Power: 8
kane is on a distinguished road
It was a old thread.
But I want to ask something.

why the term(1.0/constant::mathematical:i*omega_) is added???
kane is offline   Reply With Quote

Old   April 27, 2018, 07:19
Default
  #20
New Member
 
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9
ankur_garg is on a distinguished road
[It was a old thread.
But I want to ask something.

why the term(1.0/constant::mathematical:i*omega_) is added??? ]

If you remember the radiative transfer equation, on the right hand side, we have (kappa*sigma*pow(T,4)/pi), out of which (sigma*pow(T,4)) is calculated using the following part:
blackBody_.bLambda(lambdaI)

Now, kappa (Absorption coefficient) is multiplied using the following part:
(k - absorptionEmission_.aDisp(lambdaI))
where absorptionEmission_.aDisp(lambdaI) remains mostly zero. The only term left is pi which needs to be divided in the right hand side, that's the reason, it is added.

Let me know if you have any other doubt.

Thank you very much.

Regards,
Shreesh likes this.
__________________
Ankur Garg
ankur_garg is offline   Reply With Quote

Reply

Tags
fvdom, openfoam, radiation, vacuum, validation


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
Simple mathematical problem? Frank Wedburn Main CFD Forum 8 March 23, 2012 17:26
Radiation problem for car model aero FLUENT 1 February 3, 2007 23:30
radiation/ conduction problem brian jackson FLUENT 1 December 4, 2006 05:23
radiation problem for square cavity using fluent john Main CFD Forum 0 September 30, 2005 07:40
? Simple CFD problem Davy Main CFD Forum 0 August 21, 1998 06:19


All times are GMT -4. The time now is 12:28.