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

velocity BC, function of heat flux, using groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 18:58
Default velocity BC, function of heat flux, using groovyBC
  #1
ET3
New Member
 
Erik T
Join Date: Jun 2022
Posts: 8
Rep Power: 4
ET3 is on a distinguished road
Hi,


I am trying to write a velocity boundary condition as a function of heat flux. The goal is to couple heat and mass flux for a pyrolysis model.



The BC looks like:
Vy = k*DT_Dy / (rho*DeltaHvap.)


I am fairly new to OF and I cant figure out how to get thermal conductivity and temperature gradient into the boundary condition.


Right now I have:


bottom2
{
type groovyBC;
valueExpression "vector(0, Qdot/(rho*1234.5),0)";
value uniform (0 0 0);
}


where Qdot is actually a reaction source term (it's the wrong units and not the term I seek, just wanted to prove to myself that I can access a field using groovyBC).



My main question is how does one access these terms? I have tried defining a wallHeatFunction in controlDict. This gives an answer in postprocessing but I was unsuccessful in accessing the result through groovyBC .

Is it necessary to create a field for k and DT_Dy like is done in createFields.H? Or can heat flux be calculated through a function in controlDict and read by groovyBC?


If you are aware of examples, I'd appreciate it.



Thank you.

Last edited by ET3; August 16, 2022 at 13:57.
ET3 is offline   Reply With Quote

Reply

Tags
accessing fields, groovybc


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
Heat flux as a function of temperature Laplace FLUENT 2 February 6, 2021 16:12
Accessing heat flux in velocity BC turinturambar OpenFOAM Programming & Development 1 July 20, 2020 20:27
Measure of Heat Flux on a surface MathieuCrslt FLUENT 0 October 10, 2018 06:58
Non-constant heat flux (as a function of wall temperature)) Laplace CFX 1 February 23, 2014 17:56


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