CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to set the initial values of a simulation of flow around cylinder?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2014, 22:50
Question How to set the initial values of a simulation of flow around cylinder?
  #1
New Member
 
Wen Yuan
Join Date: Apr 2014
Posts: 10
Rep Power: 12
WenY is on a distinguished road
Hi
I wanna simulate flow around cylinder, But I am confused by the settings of the initial values in constant/0 file.Could anyone can help me?Here is my model.
WenY is offline   Reply With Quote

Old   May 11, 2014, 23:01
Default
  #2
New Member
 
Wen Yuan
Join Date: Apr 2014
Posts: 10
Rep Power: 12
WenY is on a distinguished road
Here is my boundary settings code
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
 6
(
    cylinder
    {
        type            wall;
        inGroups        1(wall);
        nFaces          260;
        startFace       38500;
    }
    down
    {
        type            wall;
        inGroups        1(wall);
        nFaces          90;
        startFace       38760;
    }
    up
    {
        type            wall;
        inGroups        1(wall);
        nFaces          90;
        startFace       38850;
    }
    outlet
    {
        type            patch;
        nFaces          40;
        startFace       38940;
    }
    inlet
    {
        type            patch;
        nFaces          40;
        startFace       38980;
    }
    frontAndBackPlanes
    {
        type            empty;
        inGroups        1(empty);
        nFaces          38760;
        startFace       39020;
    }
)
 // ************************************************************************* //
WenY is offline   Reply With Quote

Old   May 12, 2014, 09:22
Default
  #3
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

You might want to try the cylinder tutorial of potentialFoam.

Hope this helps,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   May 12, 2014, 22:09
Default
  #4
New Member
 
Wen Yuan
Join Date: Apr 2014
Posts: 10
Rep Power: 12
WenY is on a distinguished road
Quote:
Originally Posted by fumiya View Post
Hi,

You might want to try the cylinder tutorial of potentialFoam.

Hope this helps,
Fumiya
Thanks for your help! I've already solve the problem. I've made a mistake on the boundary condition located in constant/0 file.

Best regards,
WenY
WenY is offline   Reply With Quote

Reply

Tags
initial values


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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
rhoSimplecFoam Mach0.8 no pressure values CFDnewbie147 OpenFOAM Running, Solving & CFD 16 November 23, 2013 06:58
Low Mach number Compressible jet flow using LES ankgupta8um OpenFOAM Running, Solving & CFD 7 January 15, 2011 14:38
Negative value of k causing simulation to stop velan OpenFOAM Running, Solving & CFD 1 October 17, 2008 06:36


All times are GMT -4. The time now is 08:49.