CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Initial conditions in physical space from energy spectrum

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2016, 00:51
Default Initial conditions in physical space from energy spectrum
  #1
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Hi,
For validation purpose, I want to simulate homogeneous isotropic turbulence using my code. Following literature, my initial conditions have a known one dimensional energy spectrum E(k). I need to give initial conditions in physical space, with N^3 grid points.
I have learnt that I have to proceed as follows.
  1. Generate a random velocity field (u_1,u_2,u_3) in the physical domain.
  2. Transform to wavenumber space.
  3. Impose incompressibility condition \hat{u}.\vec{k}=0, by projecting velocity vectors on plane normal to \vec{k}.
  4. Scale to the given spectrum \hat{u}\rightarrow\frac{\hat{u}}{|\hat{u}|}E(k).
  5. Transform back to physical space
I am using Matlab to generate the initial conditions, and steps 1 and 2 looks traightforward to me.
However in step 3, how will I do the orthogonalization process \hat{u}=\hat{u}-(\hat{u}.\vec{k})\vec{k}/k^2 with my FFT data? What is the wavenumber vector \vec{k}, when FFT data has wavenumbers in the range [1,N/2] in all 3 directions?
arunsmec is offline   Reply With Quote

Old   February 19, 2016, 04:06
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
have a look here

http://users.ictp.it/~krs/pdf/1993_008.pdf
FMDenaro is offline   Reply With Quote

Old   February 19, 2016, 05:58
Default Thank you
  #3
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Thank you for the response.
However, the document does not have any additional information than what I understand now. My problem is specific. I have the amplitude-wavenumber information (data) after transformation to Fourier space. With my limited knowledge, I don't know how to get \hat{u}.\vec{k} from this available data.
arunsmec is offline   Reply With Quote

Old   February 19, 2016, 15:32
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
using search function, you can find many posts in this forum about the initial conditions, for example:

http://www.cfd-online.com/Forums/mai...procedure.html
FMDenaro is offline   Reply With Quote

Reply

Tags
energy spectrum, fourier transform, matlab


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
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Why RNGkepsilon model gives floating error shipman OpenFOAM Running, Solving & CFD 3 September 7, 2013 08:00
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55


All times are GMT -4. The time now is 07:51.