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

How to calculate energy spectrum for a HIT at specific time in a rectangular shape?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By farzadmech

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2023, 23:01
Default How to calculate energy spectrum for a HIT at specific time in a rectangular shape?
  #1
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
How to calculate energy spectrum for a Homogenous Isotropic turbulence (HIT) at specific time in a rectangular shape?

Hello all
I have two questions;
1- First of all, is it possible to generate HIT inside a rectangle? If so, it is called HIT again?
2- if Nx=Nz but Ny is different, How can I calculate power spectrum?
when Nx=Ny=Nz, it is possible to use below openfoam algorithm;https://www.openfoam.com/documentati...8C_source.html
but in my case Nx=Nz =/ Ny
Thanks,
Farzad
farzadmech is offline   Reply With Quote

Old   January 13, 2023, 19:45
Default
  #2
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
There was a bug in the original functionObject "energySpectrum.c" in line 167;

Code:
 N_ = Vector<int>
    (
        round(nCellXYZ.x()),
        round(nCellXYZ.z()), //round(nCellXYZ.y()) is the correct one
        round(nCellXYZ.z())
    );
Now, if the mesh size remain constant(no expansion ratio), code calculates powerSpectrum but when it is Nx=Ny=Nz it is totally different from when it is Dx=Dy=Dz. see below figure.


Thanks,
Farzad

Quote:
Originally Posted by farzadmech View Post
How to calculate energy spectrum for a Homogenous Isotropic turbulence (HIT) at specific time in a rectangular shape?

Hello all
I have two questions;
1- First of all, is it possible to generate HIT inside a rectangle? If so, it is called HIT again?
2- if Nx=Nz but Ny is different, How can I calculate power spectrum?
when Nx=Ny=Nz, it is possible to use below openfoam algorithm;https://www.openfoam.com/documentati...8C_source.html
but in my case Nx=Nz =/ Ny
Thanks,
Farzad
Attached Images
File Type: jpg aa.jpg (73.6 KB, 15 views)
enricodl likes this.
farzadmech is offline   Reply With Quote

Reply

Tags
hit, power spectrum, rectangular


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 7, 2024 23:17
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
2.1.1 on ubuntu 11.10 ollebapur OpenFOAM Installation 2 January 17, 2014 04:18
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58


All times are GMT -4. The time now is 21:36.