|
[Sponsors] |
November 19, 2015, 01:46 |
|
#61 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi Alex,
Thank you for your explanation. I have been trying (desperately) to code a mixed boundary condition using groovyBC and have not had any success with it. I was hoping to do it wuth mixed boundary condition. Could you take a look at my post and suggest any ideas that you have about implementing a mixed BC on a vector field. http://www.cfd-online.com/Forums/ope...groovy-bc.html Thanks again for the help. Saurabh |
|
March 7, 2016, 03:19 |
Implementing groovyBC for vectors
|
#62 | |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Quote:
Hi I am trying to implement the groovyBC for a vector field instead of a scalar field. When I put in the fractionExpression term in my code it starts to give me a weird solution. Could you explain the implementation of the fractionExpression term for vector? P.S. I would specifically like to know If groovyBC turns the scalar value of fractionExperssion in to a vector on implementation? Does fraction expression affect only the diagonal coefficients of the final coefficient matrix or the non-diagonal coefficients as well? Thank you. Saurabh |
||
January 12, 2017, 13:03 |
Summary
|
#63 | |
Member
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15 |
Quote:
Firstly, try to understand the treatment given in the "Basic convection". Then, compare the terms of Eq. (5) to the terms of the equation given here. After this, relate these terms with the Usage of the mixed BC. So, I think this is the answer: Code:
type mixed; refValue <T_inf> refGradient <0> valueFraction <f (from the Basic Convection link - note that f is mesh dependent, which might be a problem) >;
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam. Last edited by thiagopl; January 13, 2017 at 06:54. Reason: English :) |
||
January 12, 2017, 13:57 |
|
#64 |
Member
Saurabh Tandon
Join Date: Nov 2015
Location: Austin
Posts: 43
Rep Power: 11 |
Hi Thiago
You could use the Swak4FOAM and groovyBC library for accessing mesh properties while using mixed Boundary conditions. f <valuefraction > could be mesh dependent. Swak4FOAM library has some functions that allow one to access mesh properties while setting boundary conditions. You could also use refCast to extract mesh based values and the update the BC later in the code. Hope it helps. Saurabh |
|
January 13, 2017, 05:55 |
|
#65 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi guys,
I just want to inform you that if you want to implement something like that, you can check out my laserConvectionBC and the documentation. There you will find the derivation of the equation and in the source code you can follow how to implement all the stuff. More information about that can be found here: https://bitbucket.org/shor-ty/laserconvectionbc
__________________
Keep foaming, Tobias Holzmann |
|
February 7, 2019, 10:57 |
|
#66 |
New Member
Nilay Kulkarni
Join Date: May 2018
Posts: 24
Rep Power: 8 |
Hello,
I am trying to apply mixed boundary condition for volScalarField H2O to simulate absorption based on partition coefficients at a wall. I am trying to apply the boundary condition attached in the image below.Attachment 68209 Inorder to implement this I used the following BC: Code:
BOTTOM { type groovyBC; value uniform 1; variables "Dmuc=4.3e-6;Dmem=1.4e-6;tmem=1e- 4;kow=200;liq{BOTTOM}=T;"; //variables "Dmuc=1;Dmem=0.1;tmem=1e-4;kow=200;"; valueExpression "liq"; gradientExpression "0"; fractionExpression "1"; evaluateDuringConstruction 1; Is there a way to implement this type of groovyBC? Thank you Nilay |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat transfer coefficient - what is waht | Stan | FLUENT | 28 | December 29, 2021 17:29 |
Convective / Conductive Heat Transfer in Hypersonic flows | enigma | Main CFD Forum | 2 | November 1, 2009 23:53 |
How can I increase Heat Transfer at Domain Interf? | B.Simon | CFX | 3 | October 28, 2008 19:53 |
CFX Heat Transfer | RJamison | CFX | 0 | July 24, 2008 13:11 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |