|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
|
Hello Foamers,
I am trying to use boxTurb utility to create turbulence field in my domain. I have generated an uniform mesh with 101 nodes in each direction. So my total number of cells as reported by checkMesh are 1000000 which is what I wanted. This is the output from checkMesh: Code:
Mesh stats points: 1030301 faces: 3030000 internal faces: 2970000 cells: 1000000 faces per cell: 6 boundary patches: 7 point zones: 0 face zones: 1 cell zones: 1 Overall number of cells of each type: hexahedra: 1000000 prisms: 0 wedges: 0 pyramids: 0 tet wedges: 0 tetrahedra: 0 polyhedra: 0 Code:
Create mesh for time = 0 Reading field U Reading boxTurbDict --> FOAM FATAL ERROR: number of elements in direction 0 is not a power of 2 Number of elements in each direction = 3{100} From function fft::transform(complexField&, const labelList&, transformDirection) in file fft/fft.C at line 58. FOAM aborting Any ideas on what I am missing or doing wrong ? Thank you Sudheer |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
|
My bad, I misread the information given in the error message. I thought the number of elements should be of form N^2 while it expects them to be of form 2^n.
Now it is clear and resolved. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 13 ![]() |
sudheer,
Do you know what are Ek and k0 , in boxturb utility really means. I need to make a decaying turbulence in a box with certain integral length scales, how do i relate my known length scales to Ek and k0? Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
|
Hi Uyan,
The constants in the boxturb are Ea and k0. They are used inside Ek.H to evaluate the Turbulence Energy spectra with respect to the wavenumber k. Ek.H is in OpenFOAM-x.x.x/src/randomProcesses/turbulence/Ek.H I would recommend you to look at this paper: Martinez, D.O., Chen, S., Doolen, G.D., Kraichnan, R.H., Wang, L.P. and Zhou, Y., 1997. Energy spectrum in the dissipation range of fluid turbulence. Journal of plasma physics, 57(1), pp.195-201. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
Compile calcMassFlowC | aurore | OpenFOAM Programming & Development | 13 | March 23, 2018 07:43 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
How to get the max value of the whole field | waynezw0618 | OpenFOAM Running, Solving & CFD | 4 | June 17, 2008 05:07 |