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

exprFixedValuein multi region cases

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2024, 05:27
Default exprFixedValuein multi region cases
  #1
New Member
 
Fab
Join Date: Apr 2019
Posts: 27
Rep Power: 7
Rotidpor is on a distinguished road
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 ?
Rotidpor 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
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


All times are GMT -4. The time now is 20:00.