|
[Sponsors] |
May 2, 2019, 12:48 |
Advice on BC implementation
|
#1 |
New Member
Join Date: Mar 2019
Posts: 4
Rep Power: 7 |
EDIT - in true rubber duck style, I thought of a way to do this immediately after hitting post!
I plan to modify the mixed BC code to change the way the updateCoeffs operation works. ====== Hi all, I'm hoping someone can offer me some advice on how to implement the following mixed boundary condition in code (it's based on a chemical reaction rate occurring at a surface): Code:
(DT/delta)*(C_P - C_b) = k * (C_b)^a I can easily work out the answer for a=1, as the problem reduces to: Code:
C_b = ( (DT/delta) / (k + DT/delta) )*C_P Code:
refValue=0.0; refGradient=0.0; valueFraction=1-( (DT/delta) / (k + DT/delta) ); For a != 1, I'm completely stumped! C_b will end up being some strange polynomial in C_P and I have no idea how I should implement that in my code. Any advice would be greatly appreciated. I'm assuming no such BC already exists in OF (at least, I can't find one that seems to be equivalent). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation Models in General and the P1 implementation | Tobi | OpenFOAM Running, Solving & CFD | 8 | September 21, 2021 06:59 |
Issues in FGM combustion model implementation | Lisandro Maders | OpenFOAM Programming & Development | 15 | April 22, 2020 20:18 |
a little confused with the implementation of compressibleInterFoam | su_junwei | OpenFOAM Running, Solving & CFD | 2 | May 7, 2014 18:33 |
Implementation issues of fvSchemes / laplacianScheme, in particular gaussLaplacianSch | thomek | OpenFOAM Programming & Development | 0 | October 18, 2010 06:10 |
Please explain the implementation of species transport Eqn in reactingFoam | kallipygian | OpenFOAM Running, Solving & CFD | 0 | October 13, 2008 08:29 |