|
[Sponsors] |
[swak4Foam] Calculate variable at different heights with GroovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 7, 2016, 10:26 |
Calculate variable at different heights with GroovyBC
|
#1 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hello,
I would like to ask you if you have ever used GroovyBC in this way. I want to replicate a BC given by the author of my test case, where it computes a variable at different heights of a patch, which corresponds to the heights of the different cells. And once this variable is given, the gradient of the same in function of the height is calculated. The use of the gradient is not a mistery, but I have no idea on how to compute for each face of my patch the indicated value. There is an attached sketch. The dashed lines (at different heights) are the lines where I have to compute the variable. Thanks for your attention! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 04:30 |
UDF for time based variable to calculate velocity | longhuandu | Fluent UDF and Scheme Programming | 1 | January 21, 2013 07:38 |
Condensation as an additional variable | Clark Griswold | CFX | 2 | April 21, 2012 08:20 |
[OpenFOAM] How to calculate flux across the patch | unit | ParaView | 0 | October 23, 2008 17:02 |
Calculate variable div zero | braennstroem | OpenFOAM Post-Processing | 8 | January 28, 2008 11:02 |