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

groovyBC with chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2020, 16:12
Default groovyBC with chtMultiRegionFoam
  #1
New Member
 
Mike Jäger
Join Date: Aug 2019
Posts: 7
Rep Power: 6
mikejaeger is on a distinguished road
Hello people,


I know the usage of groovyBC in terms of using scalar or vector fields of other patches within the simulation domain.


But I have the case that I want to use a scalar field from another region. For example I want to set a wall boundary condition of SOLID1 with the average temperature of another wall in region SOLID2 (The walls are not connected!). Does anyone know such function? I can't find anything about this kind of usage.


Or does someone know another solution for that problem beyond groovyBC ?
mikejaeger is offline   Reply With Quote

Old   November 13, 2023, 06:24
Default GroovyBC Using DIfferent Regions
  #2
New Member
 
Ed Hurst
Join Date: Jul 2020
Posts: 1
Rep Power: 0
edhurst is on a distinguished road
In response to this question, I found a resource that talks about how to do what you want:

https://openfoamwiki.net/images/1/1e...dSwak4Foam.pdf

It says do this:
varName{parserType’name/regionName}=expression;

So you would do something like this
Treg2{patch'name-of-patch/region2}=sum(T*area())/sum(area());
edhurst is offline   Reply With Quote

Reply


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
Error in thermophysical properties (chtMultiRegionFoam) mukut OpenFOAM Pre-Processing 28 November 23, 2021 06:34
[swak4Foam] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 07:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 06:46
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 03:30
[swak4Foam] Heat Flux boundary conditions with groovyBC for chtMultiRegionFoam with solids only Kumudu OpenFOAM Community Contributions 7 August 23, 2014 14:33


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