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

Gaussian filter in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2016, 03:21
Default Gaussian filter in OpenFoam
  #1
New Member
 
Martin Pietsch
Join Date: Aug 2016
Posts: 2
Rep Power: 0
snoopyMP is on a distinguished road
Hi guys,

I want to implement a gaussian filter for my research project in OpenFoam 4.0. I have a volScalarField and want to execute a gaussian filter on it. The sigma-range should be of 3 or 4 element-sizes.

Did anyone ever implemented this? My problem is that the simple-filter use only one element-size range and do not include the neighbourhood.

It would be greate, if anyone can help me.

Best regards,
Martin
snoopyMP is offline   Reply With Quote

Old   September 22, 2016, 17:35
Default
  #2
Senior Member
 
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by snoopyMP View Post
Hi guys,

I want to implement a gaussian filter for my research project in OpenFoam 4.0. I have a volScalarField and want to execute a gaussian filter on it. The sigma-range should be of 3 or 4 element-sizes.

Did anyone ever implemented this? My problem is that the simple-filter use only one element-size range and do not include the neighbourhood.

It would be greate, if anyone can help me.

Best regards,
Martin
Hi Martin,

I suppose that simple filter uses two adjacent neighbour cells, is that otherwise??

Syavash
syavash is offline   Reply With Quote

Old   June 22, 2017, 04:50
Default
  #3
Member
 
Mahdi
Join Date: Jul 2012
Posts: 53
Rep Power: 13
Mahdi2010 is on a distinguished road
Quote:
Originally Posted by syavash View Post
Hi Martin,

I suppose that simple filter uses two adjacent neighbour cells, is that otherwise??

Syavash
I would also assume this is the case, but looking at the source code, no adjacent cell is seen. Is it
true?


tmp<volScalarField> filteredField = fvc::surfaceSum
(
mesh().magSf()*fvc::interpolate(unFilteredField)
)/fvc::surfaceSum(mesh().magSf());

unFilteredField.clear();
Mahdi2010 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
Accumulating Dust on a Filter Cartridge WalterW CFX 21 May 26, 2020 06:23
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
LES filter in OpenFOAM openfoammaofnepo OpenFOAM Programming & Development 1 October 23, 2014 07:27
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 18:45.