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

[Other] 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 Search this Thread 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: 14
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
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
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, 06:09
Default Solution
  #3
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 17
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

Old   October 9, 2015, 06:08
Default Boundary Layer DNS using dnsFoam?
  #4
New Member
 
Malik
Join Date: Oct 2015
Posts: 1
Rep Power: 0
malik.mdb is on a distinguished road
Did you modify the code dnsFoam for zpg boundary layer flow? dnsFoam is for isotropic turbulence.
malik.mdb is offline   Reply With Quote

Reply

Tags
dns, dnsfoam, tbl, zpg

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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 16:15
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Developed turbulent boundary layer simulation on flat plate Turbulent CFX 3 June 8, 2015 20:46
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
errors Fahad Main CFD Forum 0 March 23, 2004 14:20


All times are GMT -4. The time now is 10:20.