|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Mike Jäger
Join Date: Aug 2019
Posts: 7
Rep Power: 7 ![]() |
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 ? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Ed Hurst
Join Date: Jul 2020
Posts: 1
Rep Power: 0 ![]() |
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()); |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |