CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

how run a DNS for ZPG turbulent boundary layer on a plate with OpenFOAM?

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

Like Tree1Likes
  • 1 Post By anon_a

Reply
 
LinkBack Thread Tools Display Modes
Old   March 17, 2012, 11:56
Exclamation how run a DNS for ZPG turbulent boundary layer on a plate with OpenFOAM?
  #1
New Member
 
ashkan
Join Date: Jul 2011
Posts: 6
Rep Power: 6
dictatore_bozorg is on a distinguished road
Hello
i need to run a direct numerical simulation for my research on Zero Pressure Gradient (ZPG) Turbulent Boundary Layer (TBL) on a plate.
i find that perhaps i can do this with dnsFoam in OpenFOAM.
but i am beginner in OpenFOAM, i run dnsfoam from tutorial but when i want change the mesh size from 16*16*16 to for example 32*32*32 and run the solver by type dnsFoam in terminal below error appeared.

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec   : dnsFoam
Date   : Mar 17 2012
Time   : 18:52:22
Host   : "ubuntu"
PID    : 5381
Case   : /home/ashkan/OpenFOAM/ashkan-2.1.0/run/DNS/dnsFoam/boxTurb16
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh, no clear-out for time = 0

Reading transportProperties

Reading field p

Reading field U



--> FOAM FATAL IO ERROR: 
size 4096 is not equal to the given value of 32768

file: /home/ashkan/OpenFOAM/ashkan-2.1.0/run/DNS/dnsFoam/boxTurb16/0/U from line 18 to line 4146.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/Field.C at line 236.

FOAM exiting
please help me and if possible tell me what can i do?
dictatore_bozorg is offline   Reply With Quote

Old   March 17, 2012, 12:29
Default
  #2
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
anon_a is on a distinguished road
Quote:
--> FOAM FATAL IO ERROR:
size 4096 is not equal to the given value of 32768

file: /home/ashkan/OpenFOAM/ashkan-2.1.0/run/DNS/dnsFoam/boxTurb16/0/U from line 18 to line 4146.
If you look at this file (where you see the boundary and initial conditions for U), you will see 4096 (16x16x16) initial values for U. Since the mesh is changed, the fields will have to be adjusted to this modification. You need to use the utility mapFields (you should find information in this forum but also in the manual if I am not mistaken, in the cavity example).

And read the manual again. :-)
dictatore_bozorg likes this.
anon_a is offline   Reply With Quote

Old   May 15, 2012, 05:09
Default Solution
  #3
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Posts: 124
Rep Power: 8
anishtain4 is on a distinguished road
anon_a's diagnosis was right, but there is a really easier way to solve it. This case is being initialized with boxTurb, not by mapFields or else.

Go to root/0 directory, open U file and change the internalField nonuniform bla bla to internalField uniform (0 0 0); then run the boxTurb utility and you're good to go
anishtain4 is offline   Reply With Quote

Reply

Tags
dns, dnsfoam, tbl, zpg

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundary Layer of Laminar Flow over a Flat Plate Blasius_Pohlhausen_Crocco Main CFD Forum 12 September 30, 2013 17:35
Help: Fluid Flow Over a Horizontal Flat Plate by Boundary Layer Eq. egemen Main CFD Forum 0 May 20, 2011 04:57
Turbulent boundary layer on a flat plate seb62 OpenFOAM Running, Solving & CFD 0 January 16, 2009 10:30
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18
errors Fahad Main CFD Forum 0 March 23, 2004 14:20


All times are GMT -4. The time now is 04:50.