|
[Sponsors] |
March 19, 2021, 04:07 |
Top-hat filter for LES
|
#1 |
New Member
Join Date: Mar 2021
Posts: 8
Rep Power: 5 |
Hello, everyone!
I wanna realize a nonlinear subgrid scale model for LES utilizing UDF. However, the filter function troubles me for a long time. In some papers, the Top-hat (or box) filter is adopted to conduct the test filter.In Openfoam, this filter for variable u is conducted as follows: test filter(u) = sum(u*cell face area)/sum(cell face area) How can i realize this filter by UDF? Moreover, many varibles are yet to be filtered. Is there a code which filters any inputted varible? Thanks very much! |
|
March 21, 2021, 21:05 |
|
#2 |
New Member
Join Date: Mar 2021
Posts: 8
Rep Power: 5 |
I have solved this problem by the following method.
The variable over the cell surface was caculated by utilizing the variable value and its gradient in the center of the cell: Variable over the cell surface = value in the center of the cell + variable gradient * the distance between the surface and the center And the sum operation of variable utilized the macro: c_face_loop. |
|
Tags |
filter fuction for les |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dynLagrangian SGS model | tidal_Tom | OpenFOAM Running, Solving & CFD | 43 | November 16, 2022 06:13 |
Accumulating Dust on a Filter Cartridge | WalterW | CFX | 21 | May 26, 2020 07:23 |
how can use the LES filter? (laplace filter and anistropic filter) | ethan oh | OpenFOAM Running, Solving & CFD | 11 | December 26, 2018 03:37 |
LES Filter in Smagorinsky model on inhomogenous grids | Ivan | Main CFD Forum | 1 | October 25, 2012 12:30 |
Filter lifetime | aszbestos | FLUENT | 0 | February 13, 2002 08:59 |