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

CHT +viewfactor model

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By peterhess
  • 1 Post By peterhess
  • 1 Post By peterhess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2019, 18:38
Default CHT +viewfactor model
  #1
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
I am working on CHT tutorial with the radiation view factor model.
I am trying to what differences there are in terms of temperature inside the fluid, but the results are equal.
It seems that radiation is not seen by the fluid.

could you help me?
condensatoalcioccolato is offline   Reply With Quote

Old   November 24, 2019, 20:36
Default
  #2
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Hello!
the viewFactor model calculate the radiation exchange between the surfaces.
The rays that are passing the fluid does not affect the fluid, cause it suppose "vacuum" inside the fluid!
If the fluid to be affected by the radiation, then you need to use the DoM (Discrate Ordinate Method).

More information could be found here:

Adding Radiations in chtMultiRegionSimpleFoam

Regards

Peter

Last edited by peterhess; December 3, 2019 at 16:32.
peterhess is offline   Reply With Quote

Old   November 25, 2019, 03:52
Default
  #3
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
firstly, thank you for your answer.
fvDom need other things with the radiation properties? Because I tested fvDom, but the results are equal, without variation.
I the discussion that you linked to me I saw the relaxation factor, but it doesn't affect the result.
condensatoalcioccolato is offline   Reply With Quote

Old   November 25, 2019, 11:39
Default
  #4
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Well, if you have a fixed wall temperatures, then the radiation will not affect the wall temperatures but the total heat flux through the surface (wall).

Like that the fluid has always the same walls temperatures if radiation is turned on or not.

which boundary conditions are you using. Or simply post the case.

Regards

Peter
peterhess is offline   Reply With Quote

Old   November 25, 2019, 14:09
Default
  #5
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
Quote:
Originally Posted by peterhess View Post
Well, if you have a fixed wall temperatures, then the radiation will not affect the wall temperatures but the total heat flux through the surface (wall).

Like that the fluid has always the same walls temperatures if radiation is turned on or not.

which boundary conditions are you using. Or simply post the case.

Regards

Peter
These are the files. I set up the plane2d tutorial file and I am trying to modify it.


https://polimi365-my.sharepoint.com/...SB2CA?e=CwjUsj
condensatoalcioccolato is offline   Reply With Quote

Old   November 25, 2019, 14:53
Default
  #6
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
I will check up the case and give you later a feedback.

Anyway, the qr for topAir and bottomAir is:

greyDiffusiveRadiationViewFactor

it must be:

greyDiffusiveRadiation

cause the radiation model is DoM!

Regards

Peter
peterhess is offline   Reply With Quote

Old   November 25, 2019, 15:28
Default
  #7
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
thank you for your feedback. now I lunch another simulation with the correction
condensatoalcioccolato is offline   Reply With Quote

Old   November 25, 2019, 20:43
Default
  #8
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Hello!

I made many changes in the case and I am not able to list those changes, cause they are many as I said.

The case after making the changes is uploaded here.

See the case attached.

The case has been made for OF7.0!

If you are using an older version, then you need to replace radiationProperties in the case with the originals in yours to make it work, cause the syntex of the code has been changed in OF7.0!

If there are any questions, then please post it.

If you are not able to run the case, then please tell me the version of OF you are using.

Regards

Peter

PS: I am not sure that DoM is applicable if there is a symmetry BC
Attached Files
File Type: zip planeWall2D_fvDom_update.zip (26.4 KB, 42 views)
peterhess is offline   Reply With Quote

Old   November 26, 2019, 01:50
Default
  #9
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
thank you very much.
I saw the common surface between regions have a different type of BC and a different description. Also, radiation properties have different coefficients

I am running now the simulations

Thank you again
condensatoalcioccolato is offline   Reply With Quote

Old   November 26, 2019, 15:38
Default
  #10
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
ok, I tried to run a simulation but it takes a very long time, so I still waiting.

My starting questions are:

1) you add in control dict maxDi and the adjustment of time step. What is maxDi and why i need to adjust my time step? Is that the reason for the huge time taken?

2) is not possible solving fos Simple instead of Pimple?
condensatoalcioccolato is offline   Reply With Quote

Old   November 27, 2019, 12:38
Default
  #11
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Quote:
Originally Posted by condensatoalcioccolato View Post

1) you add in control dict maxDi and the adjustment of time step. What is maxDi and why i need to adjust my time step? Is that the reason for the huge time taken?
maxDi is the maximum diffusivity!

If the simulation is transient, you could need it to limite the diffusivity.

That helps if you have difficulties covergence...

You can delete it...

You adjust the time step to keep the maxDi and maxCo under there limite!

If you turn it off, then the time step will not modified by need (to keep maxDi and maxCo under there values).


Quote:
Originally Posted by condensatoalcioccolato View Post

2) is not possible solving fos Simple instead of Pimple?
As I know chtMultiRegionFoam just work with PIMPLE. I could be wrong here...

To make the simulation steadyState just replace ddt from Euler to steadyState for all regions in fvSchemes.

Anyway, if you want to use SIMPLE, then you need to use an older Version with chtMultiRegionSimpleFoam.

But making SteadyState with PIMPLE delivers good results.

The simulation (steady state) run fast. See residuals.

Regards

Peter
Attached Images
File Type: png Residuals.png (55.6 KB, 42 views)
Attached Files
File Type: gz planeWall2D_fvDom_update_SS.tar.gz (63.0 KB, 24 views)

Last edited by peterhess; November 27, 2019 at 16:32.
peterhess is offline   Reply With Quote

Old   December 3, 2019, 12:58
Default
  #12
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
Thank you! I switched it in SIMPLE in order to reduce the time.
Now it took all yesterday to solve.

But I still have qr and qin equal to 0. Is that normal? I think they must be different from zero if I wanna have radiative heat flux. It is correct?
condensatoalcioccolato is offline   Reply With Quote

Old   December 3, 2019, 16:10
Default
  #13
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Well, in the last simulation I uploaded, the simulation converges in 2 minutes on 4 cores processor.

And the residuals are very pretty...

The qin and qr are none zeros!

Upload your actual case please to take a look.

By the way, I made many changes in the boundaries in the cases I uploaded compared with the one you posted earlier.

Especially at the outlets I replaced zeroGradient with inletOutlet.

Regards

Peter

PS Which OF version are you using?
peterhess is offline   Reply With Quote

Old   December 3, 2019, 17:56
Default
  #14
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
I am using version 5, but with your question, I switch on version 7 and now it seems to work. It takes more than 2 minutes (now is running from 20 minutes and it is still to 100). with 4 cores.
condensatoalcioccolato is offline   Reply With Quote

Old   December 3, 2019, 18:42
Default
  #15
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
The last simulation I uploaded is convergating in about 300 iteration and needs about 335 seconds (less than 6 minutes)!

Actually the 0,0001 residuals is reached in about 150 iterations and running the simulation further is just to be sure that nothing wrong happends later...

Regards

Peter
Attached Images
File Type: jpg log.jpg (164.8 KB, 33 views)
File Type: png Residuals.png (41.0 KB, 34 views)
peterhess is offline   Reply With Quote

Old   December 3, 2019, 21:02
Default
  #16
New Member
 
ivan lonati
Join Date: Nov 2017
Posts: 11
Rep Power: 9
condensatoalcioccolato is on a distinguished road
I downloaded your last simulation, extracted and lunched.
it is still going.

I attached the picture and the file that I am running. I really don't know why.
Attached Images
File Type: png Schermata da 2019-12-03 17-00-27.png (33.6 KB, 28 views)
Attached Files
File Type: gz simulation.tar.gz (6.6 KB, 23 views)
condensatoalcioccolato is offline   Reply With Quote

Old   December 4, 2019, 13:17
Default
  #17
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
Well, the timeStep in the simulation I uploaded is 0.1!

That means u need to calculate just 30 seconds or 300 itterations as I mentioned before...

And the execution time is still less than 6 minutes!

In the image you uploaded you already calculated 3000 timeSteps!

That why you need 10 times more calculation time

Just copy the file I attach here in the case and run:

gnuplot Plot.txt

In a new terminal to see the residuals progress..

Regards

Peter

PS: after installing gnuplot!!!
Attached Files
File Type: txt Plot.txt (740 Bytes, 11 views)

Last edited by peterhess; December 4, 2019 at 15:36.
peterhess is offline   Reply With Quote

Reply

Tags
chtmultiregionsimpefoam, view factor model


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
Efficiency of centrifugal compressor - Adiabatic walls vs CHT Burken CFX 0 May 11, 2018 13:53
Problem in CHT simulation with high heat capacity fluid Fole FLUENT 1 September 26, 2017 09:42
CHT with a moving solid TCosta CONVERGE 5 August 30, 2016 16:52
vof with cht klilla OpenFOAM Programming & Development 2 July 29, 2015 06:30
Expert-param:: Cht diffusion scheme PCFD CFX 4 July 12, 2010 14:49


All times are GMT -4. The time now is 01:39.