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

chtMultiRegionTwoPhaseEulerFoam mixed bc's.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2021, 08:37
Default chtMultiRegionTwoPhaseEulerFoam mixed bc's.
  #1
New Member
 
Yaron Rosenstein
Join Date: Apr 2013
Location: Israel
Posts: 2
Blog Entries: 1
Rep Power: 0
ryaron is on a distinguished road
hello, how do i enter a Robin's boundary condition between fluid and solid regions of the form:
k\nabla T=h(T-Tinf)+q
Tinf is initial temperature which equals ambient temperature.

where q is a fixed heat flux.
i am referring to the solver in the title only.
thx in advance
__________________
My website: https://sites.google.com/site/rosensteincfd/
ryaron is offline   Reply With Quote

Old   July 7, 2021, 09:57
Default
  #2
jmt
Member
 
Julian
Join Date: Sep 2019
Posts: 32
Rep Power: 7
jmt is on a distinguished road
Hello,

The stock boundary conditions for the OF CHT solver are implemented as Robin boundary conditions in software.

That is, the code for turbulentTemperatureCoupledBaffleMixed inherits from a mixed BC or the combination of a value and its derivative at the interface.

Notice that in the code (here), the gradient portion of this BC is set to zero (this->refGrad() = 0).

This leaves just a weighted average of the wall-adjacent cell-center temperatures to calculate the interface temperature. The average is weighted by the thermal conductivities of the neighboring reigons.

I hope this gives you a starting point for modifying the code to use Robin BCs.
jmt is offline   Reply With Quote

Old   July 7, 2021, 10:00
Default
  #3
jmt
Member
 
Julian
Join Date: Sep 2019
Posts: 32
Rep Power: 7
jmt is on a distinguished road
OH and I see that OpenFOAM already provides this convective BC. See here:

https://cpp.openfoam.org/v8/external...8H_source.html
jmt 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
How to set BCs programmatically incompressible OpenFOAM Programming & Development 6 November 20, 2017 02:47
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Dealing with BC's in OF 1.6 vkrastev OpenFOAM Running, Solving & CFD 5 September 4, 2012 11:58
Mixed Convection BCs deji OpenFOAM 1 August 20, 2012 16:09


All times are GMT -4. The time now is 18:05.