CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

chtMultiRegionSimpleFoam: modelling a heat source in a solid region

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2014, 15:31
Default chtMultiRegionSimpleFoam: modelling a heat source in a solid region
  #1
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 17
zfaraday will become famous soon enough
Hello all!

I'm working in a case with chtMultiRegionFoam where I have a solid that is generating heat power (knowing this power in W/m) surrounded by air. I need to know how to set up this heat generation in a solid. I have read (and tried) something about fvOptions. It's said that a source of the type semiImplicitSource would do it, but I haven't been able to set up anything properly.

===1===

Is is true that I can set up a heat source using fvOptions frame of the type semiImplicitSource? If so, which would be the correct set up of the source knowing the power in W/m?

===2===

Is there any other approach in order to set up a heat source the way I need it?


Many thanks in advance!

Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   May 19, 2014, 19:34
Default
  #2
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 162
Rep Power: 8
derekm is on a distinguished road
i have done
this see http://www.cfd-online.com/Forums/ope...rnal-void.html
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   May 19, 2014, 19:49
Default
  #3
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 17
zfaraday will become famous soon enough
I have thought of something like that aswell, but doing like you did I would need to define my generating zone as an external zone of my domain, wouldn't I? The point is that I'm not interested in having this zone defined as external because maybe I need to study what happens inside the heat source.

Thanks derekm for your quick answer!


Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   May 20, 2014, 04:16
Default
  #4
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 162
Rep Power: 8
derekm is on a distinguished road
In my case I needed a heater as the innermost region. The heater has no interface to outside of the domain.

To accomplish this a created a new region totally inside the heater region, called heaterInner..
The heat flux is across the enveloping patch of heaterInner to heater.

Thus heater increases in temperature and heaterInner decreases temperature because of the defined heat flux.

However this is a heat flux not volumetric heat generation. I will investigate semiImplicitSource further, thanks for bringing it to my attention.
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   May 20, 2014, 09:04
Default
  #5
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 17
zfaraday will become famous soon enough
You are welcome derekm!

Could you please upload your case in order to take a look into it? Because I still don't understand your approach. Otherwise you can upload an easier case if yours is too heavy to be uploaded here, I just want to se how you exactly set up what you explained.

Thanks a lot!
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   July 31, 2015, 09:07
Default Heat source from a file using fvOption
  #6
New Member
 
Bruce Clarke
Join Date: Jul 2015
Posts: 3
Rep Power: 6
BClarke352 is on a distinguished road
Hi,

I'm also trying to add a heat source to chtMultiRegionFoam using fvOptions. I've got a file in OpenFOAM format that gives the volumetric power in each cell in my geometry and would like to find out what the corresponding increase in temperature is when this cell is read and the effect on the temperature profile and flow distribution is. Could someone tell me a) how to read the file in with fvOptions and b) how to set fvOptions up for this purpose?
BClarke352 is offline   Reply With Quote

Old   August 31, 2015, 14:34
Default
  #7
New Member
 
Brandon Cordoba Noya
Join Date: Aug 2015
Posts: 2
Rep Power: 0
BrandonCN is on a distinguished road
Someone already solved how to put the heat source for the inner part?
BrandonCN is offline   Reply With Quote

Old   September 1, 2015, 03:17
Default E in radiationProperties or fvOptions
  #8
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 212
Rep Power: 13
fabian_roesler is on a distinguished road
Try using the large E in radiationProperties. This is some kind of source term for radiation. Though I never tried it for solids.
Another possibility would be to create a cellZone and creater a heat source within fvOptions. There you can fix temperature by a constraint or directly give a heat flux.
Check out the tutorials.

Cheers

Fabian
fabian_roesler is offline   Reply With Quote

Old   June 22, 2016, 10:24
Default
  #9
New Member
 
Vishesh
Join Date: Jun 2016
Posts: 10
Rep Power: 5
visheshkapoor06 is on a distinguished road
Hello All,

I am trying to run a case of chtMultiRegionSimpleFoam based on the multiRegionHeaterRadiation example. My case has 8 solid blocks inside air. The air and blocks are inside a metal cabinet, and also touch the cabinet. The cabinet is in the atmosphere.
When i run the case, the temperature diverges and an error comes up. I am not able to diagnose the error. Please help!

Time = 1


Solving for fluid region domain0
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.0156926, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.0130481, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.0180424, No Iterations 1
DILUPBiCG: Solving for h, Initial residual = 1, Final residual = 0.0671467, No Iterations 1
Min/max T:300 7709.26
GAMG: Solving for p_rgh, Initial residual = 0.88219, Final residual = 0.00738372, No Iterations 6
time step continuity errors : sum local = 21.78, global = -18.8129, cumulative = -18.8129
Min/max rho:0.2 1.15862

Solving for fluid region domain2
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 0.0184007, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 0.0246227, No Iterations 1
DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 0.0227786, No Iterations 1
[3]
[3]
[3] --> FOAM FATAL ERROR:
[3] Attempt to cast type compressible::turbulentTemperatureCoupledBaffleMix ed to type compressible::turbulentTemperatureRadCoupledMixed[0]
[3]
[3] From function refCast<To>(From&)
[3] in file /home/kav9kor/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude/typeInfo.H at line 114.
[3]
visheshkapoor06 is offline   Reply With Quote

Old   February 13, 2019, 05:32
Default
  #10
New Member
 
Kevin Habrock
Join Date: Oct 2018
Posts: 22
Rep Power: 3
Kevin.H is on a distinguished road
Dear Foamers,
I try to implement a volumetric heat source with fvOptions in a chtMultiRegionSimpleFoam case.

(I also used externalWallHeatFluxTemperature as a boundary condition and this works very well.)

Code:
energySource
{
    type            scalarSemiImplicitSource;
    active on; //to switch or not heat source 
    //timeStart 0;
    //duration  20;
    selectionMode cellZone;
    cellZone c0;
    scalarSemiImplicitSourceCoeffs
    {
        selectionMode   cellZone;
        cellZone        magnet;
    
        volumeMode      absolute;//specific;//
        injectionRateSuSp
        {
           h           (30 0); //   q in [W]; or in [W/m] if you use specific  mode
        }
    }
}
I have some questions about this:
1. " h (0 0.1);" why is it write as a vector? How can I implement for example 30W?

Edit2: Its a vector because of Source= Sc + Sp, So I think in this line my file is right.

2. I am pretty sure that I use fvOptions on the wrong way. I copied this file in the system and in the system/magnet Folder. But the temperature does not increas. Do anybody see what I have done wrong?
Thank u for your help!

Edit1: I use OF4.1 and have also noticed this threat: Adding temperature dependent heat source using fvOptions in chtMultiRegionSimpleFoam
but with the file of the user shaileshbg I get the same Problem. The temperature does not change.
Kevin.H is offline   Reply With Quote

Old   February 18, 2019, 15:17
Default
  #11
Senior Member
 
Join Date: Sep 2013
Posts: 228
Rep Power: 12
Bloerb is on a distinguished road
Most likely because the cellZone you specified does not exist. Try selectionMode all;
Bloerb is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, chtmultiregionsimplefoam, heat source

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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
Heat source in a particular region inside the fluid domain robingilbert OpenFOAM 7 September 2, 2010 15:39
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 10:02.