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

Adding a heat source at baffle in chtMultiRegionFoam

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

Like Tree1Likes
  • 1 Post By geth03

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2020, 11:21
Default Adding a heat source at baffle in chtMultiRegionFoam
  #1
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Hi to all FOAMers!

First of all thanks to everyone contributing to this forum. The posts helped me out for years and years!

This time my problem looks trivial, but I can't seem to solve it easily. To keep it simple, lets consider the case of a solid sphere within a tube and I only have to regions: The sphere (solid) and the fluid. Now I want to add a heat source to the interface between these two regions. Is there a simple way to do so? By now I often worked with fvOptions and scalarSemiImplicitSource to get a volumetric heat source within the sphere, but for my case a heat generation at the interface would be more realistic (heterogenous catalysis on the sphere surface).


Would be glad for any hints.
Cheers!
Kevin
DramaDrummer is offline   Reply With Quote

Old   November 12, 2020, 04:47
Default
  #2
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Searched a lot but still didn't get an answer to the question. I hoped that interRegionHeatTransferModel would work out, but as far as I see it is only for porous regions, were the structure is not simulated in detail, right? At least this fvOptions option is always used together with interRegionExplicitPorositySource.


I was thinking about a workaround like this: What I want is an heat source not directly at the baffle but within the cells in the fluid that have an interface with the solid (which are directly at the baffle). Is there a clever way to do so?

I was thinking about a cellZone that includes all of these cells and then use a volumetric heat source using scalarSemiImplicitSource. The problems are:
1. How do I get these cells in a cellZone?
2. Actually I need to implement the heat source not on the basis of the cell volume but on the basis of the area the cell shares with the solid. No way to do this without coding a ne sourceModel, right?


Thanks
Kevin
DramaDrummer is offline   Reply With Quote

Old   November 12, 2020, 05:47
Default
  #3
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
hi Kevin,

you can access the interface cells with topoSetDict, for that you need to define your solid-fluid boundary as patch, i do that with ansys mesher software, i don't know which software you use. as source write patchToFace and sourceInfo "nameOfThePatch".

afterwards you can access those cells within fvOptions.
you define the name of that area in topoSetDict.
then write your code for the heat source.

cheers
DramaDrummer likes this.
geth03 is offline   Reply With Quote

Old   November 14, 2020, 11:43
Default
  #4
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
You need a boundary condition to handle this. Yes, you could use a volumetric heat source and an fvOption but this will lead to mesh cell size dependence of your solution. You hence need to take the coupling boundary condition and add the external heat flux. Which should be pretty straightforward. The boundary condition on the interface states that Q_a=-Q_b. Heat flow exiting one domain enters the other. I have at some point in the past derived the boundary condition here in the forum which should make it easier to understand. You can easily program this in yourself. Just add a scalar to it on the right line. You might be able to hack this somehow without programming by turning on radiation in one domain and a set of boundary conditions but i haven't checked that.
Bloerb is offline   Reply With Quote

Old   November 17, 2020, 04:07
Default
  #5
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Quote:
Originally Posted by Bloerb View Post
You need a boundary condition to handle this. Yes, you could use a volumetric heat source and an fvOption but this will lead to mesh cell size dependence of your solution. You hence need to take the coupling boundary condition and add the external heat flux. Which should be pretty straightforward. The boundary condition on the interface states that Q_a=-Q_b. Heat flow exiting one domain enters the other. I have at some point in the past derived the boundary condition here in the forum which should make it easier to understand. You can easily program this in yourself. Just add a scalar to it on the right line. You might be able to hack this somehow without programming by turning on radiation in one domain and a set of boundary conditions but i haven't checked that.
Hi Bloerb,
thanks for the contribution! I also see the problem of volume dependent heat flux and I also thought that it should be quite straightforward to solve my problem by changing the BC to some extend. I searched thorugh the code and took a closer look at turbulentTemperatureCoupledBaffleMixedFvPatchScala rField.C, but unfortunately I'm not that good at C++ coding and didn't really see the part where I could add the heat source. Could you share the post where you derived the boundary condition or give a hint on where to look at exactly?
Best
Kevin
DramaDrummer 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
Adding temperature dependent heat source using fvOptions in chtMultiRegionSimpleFoam shaileshbg OpenFOAM Running, Solving & CFD 14 January 26, 2024 18:48
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17


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