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

Test filter

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2011, 07:03
Default Test filter
  #1
Member
 
longamon's Avatar
 
David Aljure
Join Date: Mar 2011
Location: CTTC Universidad Politécnica de Catalunya. Spain
Posts: 38
Rep Power: 15
longamon is on a distinguished road
Hello

I'm trying to implement a Wale model for which I need to use a test filter.

this model is implemented using a VMS approach where the scales are divided into large, small and unresolved. The original filter separates the unresolved scales, the second filter separates the Large and small scales in the following manner:

f'=f_bar-f_hat

where f' is the small scale, f_bar the original filtered and f_hat the large scale.

The way I'm trying to implement this is by creating a new vector field like this:

volVectorField up = U()-(filter_(U()));

however i'm not sure how to make it so the filter size is twice the original filter.

thanks in advance.
longamon is offline   Reply With Quote

Old   May 26, 2011, 01:12
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Look at how the filter operation is defined in the filter function, or in the dynLocOneEqEddy model, which uses double filtering, to have a better idea of how it works :-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 26, 2011, 07:16
Default
  #3
Member
 
longamon's Avatar
 
David Aljure
Join Date: Mar 2011
Location: CTTC Universidad Politécnica de Catalunya. Spain
Posts: 38
Rep Power: 15
longamon is on a distinguished road
Hi

I can see in locDynOneEqEddy that a second filter is defined using the line

simpleFilter simpleFilter_;

however, I'm still not sure where the filter lenght is defined.
longamon is offline   Reply With Quote

Old   February 3, 2012, 13:46
Default
  #4
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
Hey David. Were you able to successfully implement the WALE model? And was it the incompressible version? I am currently trying to implement it.

Cheers,
Deji
deji is offline   Reply With Quote

Old   March 29, 2012, 10:37
Default
  #5
Member
 
longamon's Avatar
 
David Aljure
Join Date: Mar 2011
Location: CTTC Universidad Politécnica de Catalunya. Spain
Posts: 38
Rep Power: 15
longamon is on a distinguished road
Hi deji, I did implement the WALE model, I based the code on the dyn smagorinsky model and modified it accordingly, however i didn't implement the VSM approach on the model.
longamon is offline   Reply With Quote

Old   March 29, 2012, 10:40
Default
  #6
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
Oh really. Can I have a copy of the code? I implemented it as well, but not the way yours was coded.


Cheers,
Deji
deji is offline   Reply With Quote

Old   February 4, 2013, 11:33
Default LES WALE incompressible model
  #7
New Member
 
M K Singh
Join Date: Sep 2009
Posts: 19
Rep Power: 16
mksingh is on a distinguished road
Dear Deji,
Could you please send me your LES WALE incompressible model? I would like to see the impact of LES WALE predictions for my wall bounded flows.
Regards.
M K


Quote:
Originally Posted by deji View Post
Oh really. Can I have a copy of the code? I implemented it as well, but not the way yours was coded.


Cheers,
Deji
mksingh is offline   Reply With Quote

Old   February 4, 2013, 11:36
Default
  #8
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
Dear Deji,
Could you please send me your LES WALE incompressible model? I would like to see the impact of LES WALE predictions for my wall bounded flows.
Regards.
M K

Hello MK. The code is on the forum somewhere, just do a search for WALE model. I did upload the code on one of the threads and if you cannot find, I can send you another.

Cheers,
Deji
deji is offline   Reply With Quote

Old   February 4, 2013, 11:44
Default
  #9
New Member
 
M K Singh
Join Date: Sep 2009
Posts: 19
Rep Power: 16
mksingh is on a distinguished road
Hi Deji,
I can see that you have mentioned in your post that it is compressible. I am wondering if it is also suitable for incompressible.
M K
mksingh is offline   Reply With Quote

Old   February 4, 2013, 11:51
Default
  #10
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
It's essentially the same code, you just have to make some minor changes to the code. For example, we use mu_sgs but your your code will have nu_sgs; therefore, go through the code and make the appropriate changes. If you have anymore questions, kindly inform me.

Cheers,
Deji
deji is offline   Reply With Quote

Reply

Tags
les, test filter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Accumulating Dust on a Filter Cartridge WalterW CFX 21 May 26, 2020 06:23
calculation of test filter quantites for desired parameters(equations) in les mrn FLUENT 0 July 15, 2010 05:04
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Filter lifetime aszbestos FLUENT 0 February 13, 2002 07:59


All times are GMT -4. The time now is 19:47.