CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Top-hat filter for LES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2021, 03:07
Question Top-hat filter for LES
  #1
New Member
 
Join Date: Mar 2021
Posts: 8
Rep Power: 5
Shevin W. is on a distinguished road
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!
Shevin W. is offline   Reply With Quote

Old   March 21, 2021, 20:05
Default
  #2
New Member
 
Join Date: Mar 2021
Posts: 8
Rep Power: 5
Shevin W. is on a distinguished road
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.
Shevin W. is offline   Reply With Quote

Reply

Tags
filter fuction for les


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
dynLagrangian SGS model tidal_Tom OpenFOAM Running, Solving & CFD 43 November 16, 2022 05:13
Accumulating Dust on a Filter Cartridge WalterW CFX 21 May 26, 2020 06:23
how can use the LES filter? (laplace filter and anistropic filter) ethan oh OpenFOAM Running, Solving & CFD 11 December 26, 2018 02:37
LES Filter in Smagorinsky model on inhomogenous grids Ivan Main CFD Forum 1 October 25, 2012 11:30
Filter lifetime aszbestos FLUENT 0 February 13, 2002 07:59


All times are GMT -4. The time now is 10:27.