CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] groovyBC and access to alpha field of other patch

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By Tobi
  • 2 Post By gschaider

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 19, 2014, 04:31
Default groovyBC and access to alpha field of other patch
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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";
Additionally I tried with:
  • alpha
  • alpha1
  • alpha2
  • alpha.liquid
  • alpha.air


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?
nimasam and Bana like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:12.