|
[Sponsors] |
February 15, 2022, 15:31 |
Calculating average velocity Umean on a line
|
#1 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
Hello dear foamers,
I observe Ux (x component of velocity U) over a line during my 2d, transient analysis by this script within my controldict. Code:
functions{ myLinefunction{ type sets; libs ("libsampling.so"); interpolationScheme cellPoint; setFormat raw; writeControl timeStep; writeInterval 1; sets ( data { type uniform; axis xyz; start (0.349493 -0.357075 0.0); end (0.349493 0.357075 0.0); nPoints 200; } ); fields (U); } } umean.png Regards |
|
February 16, 2022, 04:22 |
|
#2 |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5 |
Without modifying the code, you could average the entire U field using fieldAverage, to get a field `UMean'. Then as a post-processing step you can calculate UMeanx over this line by changing "U" in fields to "UMean".
|
|
February 20, 2022, 13:42 |
|
#3 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
||
Tags |
average velocity, umean |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import .csv - velocity profile - error | eSKa | CFX | 9 | April 3, 2021 14:38 |
kindly help me .. i have and error at line number 147.. | m zubair | Fluent UDF and Scheme Programming | 0 | February 10, 2019 12:25 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 15, 2003 00:19 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |