CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

boxTurb strange error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2016, 15:26
Question boxTurb strange error
  #1
New Member
 
Sudheer Reddy B
Join Date: Oct 2015
Location: San Antonio, Texas
Posts: 9
Rep Power: 11
sudheer717 is on a distinguished road
Send a message via Skype™ to sudheer717
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
When I run boxTurb, it throws me the following error.

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
I have read other posts about this utility, there the error was reported as the user had some grading in the mesh. So, I made the mesh uniform.

Any ideas on what I am missing or doing wrong ?

Thank you
Sudheer
sudheer717 is offline   Reply With Quote

Old   November 13, 2016, 15:52
Default
  #2
New Member
 
Sudheer Reddy B
Join Date: Oct 2015
Location: San Antonio, Texas
Posts: 9
Rep Power: 11
sudheer717 is on a distinguished road
Send a message via Skype™ to sudheer717
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.
sudheer717 is offline   Reply With Quote

Old   June 30, 2017, 16:33
Default boxturb
  #3
Member
 
Join Date: Feb 2014
Posts: 63
Rep Power: 13
Uyan is on a distinguished road
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.
Uyan is offline   Reply With Quote

Old   June 30, 2017, 17:16
Default
  #4
New Member
 
Sudheer Reddy B
Join Date: Oct 2015
Location: San Antonio, Texas
Posts: 9
Rep Power: 11
sudheer717 is on a distinguished road
Send a message via Skype™ to sudheer717
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.
sudheer717 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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


All times are GMT -4. The time now is 23:18.