|
[Sponsors] |
[swak4Foam] groovyBC and access to alpha field of other patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 19, 2014, 04:31 |
groovyBC and access to alpha field of other patch
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi all,
I want to get access from alpha field from patch1 to use it in patch2. The problem is that my alpha field does not exist? Code:
type groovyBC; variables "alphaFromPatch1{patch1}=alpha.liquid;"; valueExpression "alphaFromPatch1";
But always I get an error that this variable does not exist or is of wrong type. Does anyone have some idea? Additionall question: Is it possible to get velocity field U from patch1 and use it for patch2 not in an averaged value?
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] codedMixed instead of groovyBC | GerHan | OpenFOAM Community Contributions | 3 | February 20, 2019 11:08 |
[swak4Foam] access field variables in groovyBC | mehtab | OpenFOAM Community Contributions | 11 | February 4, 2019 12:08 |
[swak4Foam] groovyBC and access to fields of other Regions | ancolli | OpenFOAM Community Contributions | 0 | July 29, 2017 08:41 |
[swak4Foam] whats the trick to access to second layer of patch neighbors in groovyBC? | immortality | OpenFOAM Community Contributions | 6 | July 9, 2013 12:01 |
[swak4Foam] Can groovyBC access dimensionedScalar? | argonaut | OpenFOAM Community Contributions | 1 | May 24, 2012 09:04 |