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

FFT with non-uniformly distributed data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2013, 00:31
Default FFT with non-uniformly distributed data
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 134
Rep Power: 13
kkpal is on a distinguished road
hi everyone
I'm using the adjustTimeStep in pimpleFoam to do my simulation, so my timestep is not uniform. After the calculation I need to get the frequency of the lift force, but as the force data is not evenly distributed, it seems difficult to do this. I tried using linear interpolation to convert the data into uniform one, but there seems to be some discrepancy.
does anyone have any idea on how to do this?
kkpal is offline   Reply With Quote

Old   May 20, 2013, 21:17
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
Quote:
Originally Posted by kkpal View Post
hi everyone
I'm using the adjustTimeStep in pimpleFoam to do my simulation, so my timestep is not uniform. After the calculation I need to get the frequency of the lift force, but as the force data is not evenly distributed, it seems difficult to do this. I tried using linear interpolation to convert the data into uniform one, but there seems to be some discrepancy.
does anyone have any idea on how to do this?
Matlab recommends using interpolation:

http://www.mathworks.com/support/sol...lution=1-15NDN

Not sure what kind of discrepancy you're seeing...You could always change the way the time steps are written to force them to be uniform and that would solve your problem.
kmooney is offline   Reply With Quote

Old   May 21, 2013, 02:35
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 134
Rep Power: 13
kkpal is on a distinguished road
thanks Kyle.
kkpal 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
Parallel run with distributed data: How? eskila OpenFOAM Pre-Processing 8 September 27, 2021 06:44
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
Complex FFT for real data Hisham Main CFD Forum 0 November 12, 2011 14:53
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27
Which is faster, distributed or shared data? Cho Siemens 2 June 17, 2004 16:36


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