|
[Sponsors] |
velocity BC, function of heat flux, using groovyBC |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Erik T
Join Date: Jun 2022
Posts: 8
Rep Power: 4 ![]() |
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 12:57. |
|
![]() |
![]() |
![]() |
Tags |
accessing fields, groovybc |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 17:22 |
Heat flux as a function of temperature | Laplace | FLUENT | 2 | February 6, 2021 15:12 |
Accessing heat flux in velocity BC | turinturambar | OpenFOAM Programming & Development | 1 | July 20, 2020 19:27 |
Measure of Heat Flux on a surface | MathieuCrslt | FLUENT | 0 | October 10, 2018 05:58 |
Non-constant heat flux (as a function of wall temperature)) | Laplace | CFX | 1 | February 23, 2014 16:56 |