decay 2d turbulence - the initial field
I've seen some videos that demonstrates the process of 2d turbulence decay. Here are some of them:
http://www.youtube.com/watch?v=boWeyfYs2EQ http://www.youtube.com/watch?v=pNCst5-zPEQ http://www.youtube.com/watch?v=-fDwnyi_EkM I want to simulate this process by using the Euler system of equations. For this goal, I must have the initial field (rho, u, w, p). Does anyone give me some ideas about this? Thanks for helping! |
Quote:
just to say that if you use the inviscid flow equation, you have no decay due to dissipation. Furthermore, in 2D you can have some inverse cascade as well as you can see small vortical structures forming bigger ones (e.g., the vortex merging) |
Can you give me the link to that book you sad?
I know that there is no decay due to physical dissipation in inviscid flow, but it's impossible to neglect the grid viscosity which is mesh-dependent factor. I don't know what kind of the final field will be, I'm interested in generating the initial field to initialize the test case. Thanks for replying! |
|
OK, that book explains the theory of turbulence very good and fully. But I still need particular specifically formulas for generating the initial field to initialize a simulation case. In the book I can't find out them.
|
see also:
http://onlinelibrary.wiley.com/doi/1...d.613/abstract in the references you will find a paper of Lesiuer describing the details |
Can you tell the name of Lesiuer's paper describing the details of turbulence initial field for numerical simulations?
I couldn't download the journal. |
Lesieur, M. Staquet C, Le Roy P, Comte P. The mixing layer and its coherence examined from the point of
view of two-dimensional turbulence. Journal of Fluid Mechanics 1986; 192:511–534. you cna find the case of the initialization for a 2D micing layer |
Do you know that I don't need an initial field for 2D shear layer. I need an initial field for the exactly given above examples: decay of 2D turbulence flow with vortices. I've found out some articles, which describe the initial field for some different kind of Euler equations. They used the vortex-velocity transport equations to solve the problem. With that kind of Euler equations it's possible to define the exact field for all the vortices. I use the Euler equations in FV method to solve the problem, I need the initial state for all components of the velocity. This is my problem!
Thanks for helping! |
Quote:
if you want to simulate only the homogeneous/isotropic decay, you can simply work in the x,y plane by using the initial 1D distribution (extended in the homogeneous 2D meaning and adjusting the coefficients to satisfy the continuity contraint) described here: On the application of congruent upwind discretizations for large eddy simulations Authors Andrea Aprovitola, Filippo Maria Denaro Publication date 2004/2/10 Journal name Journal of Computational Physics Volume 194 Issue 1 Pages 329-343 Publisher Academic Press |
I want to solve the problem in the x,y plane, with the limited space [LxL] and periodic boundary conditions. I need the initial with vorticies like in the above videos. But I can't find out some formulas for this purpose. I've read the article you sad, but it didn't help me.
I think that in the videos, the vortex-velocity form of the Euler equations was used. It's possible to give the exact values of vorticies at the cell centers. I use the FV approach to solve the the Euler system of equations. It's no need to have a vorticity field at the beginning time. But I need the beginning values for the velocity components. I have read many works, but I can't find out some of them helpful for me! |
@mp121209 did you have any luck with your simulation?
|
I don't know if you are still interested in this or not, but you can find an initial velocity field for homogenous turbulence in the following paper:
Numerical Experiments in Homogeneous Turbulence, by Robert S. Rogallo It is a very old NASA report and a very good reference for DNS codes, so it is available on many sites. Just google the title and you should be able to get it. I can't remember which page :-p but it was near the end of the paper. It uses Fourier transform though, so you should be prepared to take inverse FFT of a spectral distribution, just a heads up :-) Good luck. |
Hello
Thank you for the information on Rogallo's code. I would be thankful if you could tell me how can I modify the code to generate a 2D field instead of the 3D field that the code is supposed to generate. Thank you ! |
Why two-dimensional? Turbulence is intrinsically three-dimensional.
Anyhow, if you want a 2D initial field, you can either generate a 3D field and apply any averaging operator on the third dimension, or just generate the 2D spectral distribution first (Rogallo's distribution makes sure, for example, continuity is satisfied, so when modifying the equations, do not just remove the third component. You'll probably need to change the remaining two components as well) and then perform a two-dimensional IFFT. It has been very long since last I saw that paper. Let us know if you have any specific problems converting it to 2D and I might be able to help. At the end, again, I have to emphasize the inherent three-dimensionality of turbulence. |
Thank you for your response.
I agree that turbulence is 3-D in nature. However, there are few numerical tests conducted on the decay of 2-D turbulence. I just wanted to verify a 2-D code and thus required the field. I will try what you suggested and would let you know in case it works. Thank you again for your prompt response. Best ! |
Hello Reza
I modified the code to generate a 2D field that satisfies the continuity equation in wavenumber space, i.e. kx*ux + ky*uy = 0; The field is indeed isotropic and divergence free (to machine precision, set to 10-8) in this case. However, on taking the inverse FFT of this field, the physical fields that results is not divergence free at all. I am making a mistake in using the inverse FFT (I use MATLAB's iffn(symmetric) ). I would be thankful if you could help me with this. To generate the 2D field I used: u = a*ky*(1/k) i - a*kx*(1/k) j where, sqrt( kx^2 + ky^2 ) = k, i and j are the x and y unit vectors, u here is defined in wavenumber space. This definition of u satisfies continuity as ux/uy = -ky/kx. Also, a is a function of the desired energy spectrum as used by Rogallo. I use a = ( E(k) / 2*pi*k)^(0.5) * e^(iota*phi) Thank you. Regards Dhruv |
Hello
Thank you for the explanation. As advised, I will go through some notes on FFT. Regards |
Yeah, as I mentioned, you need to make sure the frequency-domain field that you are generating is as MATLAB describes it "conjugate symmetric". Here is an octave code that I was able to dig from my archives that makes sure the field is symmetric:
Code:
for i = 1:M Hope this helps. |
Thank you !
I will try to run it :) |
Hello Reza
I had another question regarding the 3D field generated with Rogallo's code and would be very thankful if you could help me. The spectrum of the velocity field that the code generates is not matching the spectrum that the velocity field is expected to have, which is also an input to the code for generating the velocity field. There is a dampening of the spectrum by a large factor, especially at low wavenumbers. I was wondering if you would know why is this happening. I checked my code and could not find anything wrong in the formulae that I use. Thank you. Regards |
I don't remember such a difference. How are you calculating the spectrum? At higher frequencies because of aliasing you might get a bit higher energy, but can't think of a reason for a difference in lower frequencies. It was a long time ago when I was playing with DNS.
|
Hello Reza
I tried using the code that you gave me. It does indeed help make enforce the conjugate symmetry. However, I noticed that using ifftn (in MATLAB) with 'symmetric' defining the type of ifft, also delivers the same result. With that done, I have a big problem. Although the velocity field is divergence free in wavenumber space, it loses its solenoidal character when the ifft is used to convert it into physical space. Would you know why this happens or if there is a way of correcting this? Thank you ! Kind regards Dhruv |
How do you compute divergence in physical space ? using finite differences will not be accurate. You have to take divergence of the spectral interpolation of the velocity field, which should then give you zero divergence upto machine precision, since it is constructed to be solenoidal in fourier space.
|
yes, this problem is quite usual .... just think about a simulation performend in the physical space, for example an exact projection with second order discretization. You will have a diverge-free solution up to machine precision but only when the divergence of the velocity is computed on the compact stencil with central second order formula. If you try to compute the divergence using different discretizations (even higher order discretizations) you have no longer a divergence-free results.
This example explains why when the solution is divergence-free in wavenumber space you can not ensure the same result (in discrete sense) in physical space. You can try different formulas of various accuracy but you have to accept some tolerance. |
Quote:
Hello Praveen Thank you for your reply. However, I still did not understand whether it converting Rogallo's spectral field into a divergence free field in physical space is possible or not. I did get zero divergence in spectral space using kx*u + ky*v + kz*w, you mean that is all I can get? Thanks again ! Regards Dhruv |
They are mathematically equal. So divergence free-ness in physical space, means kx ux+ky uy+kz uz = 0 in the Fourier space. But this doesn't mean they are numerically the same. For example, if you calculate du/dx in physical space by central difference with a grid size of h, then the equivalent wave-form will have a k of sin(kh)/h. So, if you want your physical space to be divergence-free with central difference, then you should have:
sin(k_x h)/h u_x+sin(k_y h)/h u_y+sin(k_z h)/h u_z=0 in Fourier space. |
Thank you very much :)
I will try to edit the code to satisfy the 'sine' condition you mentioned. |
That is a work-around though. And it just converts your spectral code to a central finite difference code.
|
So, I can use the velocity field generated with Rogallo's code after converting it to physical space for a normal simulation?
I would then expect the field to readjust itself (to a possibly lower values of divergence) in physical space after a few turnover times after evolving in accordance with the navier stokes equation? |
I see. So you are not using a spectral code to solve the problem, and just need an initial velocity for your non-sectral method? If that is the case, then you can use the sine relation I gave above to get the physical velocity field that better satisfies the continuity. But you need to change the velocity field given by Rogallo as it won't be divergence-free in the sense that you are after.
|
Yes, I have started changing the code to satisfy
sum( sin(h*kx)/h * ux ) = 0 and obtain u,v,w in spectral space. Then I will convert these into physical space for my simulations. I know it is weird to use a physical space code for LES, but I am working with energy-conserving schemes. Thank you again for helping me with this :) |
All times are GMT -4. The time now is 16:26. |