|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7 ![]() |
Hi,
My goal is to apply the weighted average of the temperature at an outlet to an inlet as a fixedValue. So, this should work : "inlet.*" { type exprFixedValue; value uniform 793.15; variables ( "Tave{outlet_sec_1} = weightAverage(T)" ); valueExpr "Tave"; } And indeed, it works but if it is a multi-region case, patches of another region are not recognized and this cannot be done. The value "Tave{outlet_sec_1} = weightAverage(T)" can also be calculated by a function object. My current workaround involves a bash script that retrieves the value in /postProcessing/"region" etc... , writes it in /system/"region"/changeDictionary and executes changeDictionary -region etc... every N iterations. This is very dirty and innapropriate. Is there any simpler workaround ? |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionFoam speed up | qwertz | OpenFOAM Running, Solving & CFD | 8 | September 18, 2021 06:16 |
Error when solving p_rgh | bob94 | OpenFOAM | 0 | March 17, 2020 08:12 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
[snappyHexMesh] Multi Region Meshing | bruce | OpenFOAM Meshing & Mesh Conversion | 12 | July 31, 2013 10:09 |
[snappyHexMesh] multi region | laplacian | OpenFOAM Meshing & Mesh Conversion | 1 | July 20, 2012 06:49 |