|
[Sponsors] |
How to calculate energy spectrum for a HIT at specific time in a rectangular shape? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7 ![]() |
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()) ); Thanks, Farzad Quote:
|
||
![]() |
![]() |
![]() |
Tags |
hit, power spectrum, rectangular |
|
|
![]() |
||||
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 |