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

Modelling a flow around a square (with sharp edges)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2015, 07:27
Default Modelling a flow around a square (with sharp edges)
  #1
New Member
 
Join Date: Sep 2015
Posts: 1
Rep Power: 0
Andy_ilek is on a distinguished road
Hey,

I'm tring to model a 2D flow around a square. I used the following conditions:

- Solver: PisoFoam
- Turbulence Model: k-omega SST
- velocity uniform: 22m/s
- The square is 40m*40m (So i get really high Re-Number)


The input files are attached below. Does anybody already modelled a body with sharp edges and high Reynoldsnumber and has experience setting the boundary condition?

Is there something different than setting boundary conditions for an airfoil?

thanks already



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (22 0 0);

boundaryField
{
inlet
{
type freestream;
freestreamValue $internalField;
}

outlet
{
type freestream;
freestreamValue $internalField;
}
upanddown
{
type freestream;
freestreamValue $internalField;
}
body
{
type fixedValue;
value uniform (0 0 0);
}

frontandback
{
type empty;
}
}

// ************************************************** *********************** //

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 85796;

boundaryField
{
inlet
{
type freestreamPressure;
}

outlet
{
type freestreamPressure;
}

upanddown
{
type freestreamPressure;
}

body
{
type zeroGradient;
}

frontandback
{
type empty;
}
}

// ************************************************** *********************** //

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0.01;

boundaryField
{
inlet
{
type inletOutlet;
inletValue $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
}

upanddown
{
type inletOutlet;
inletValue $internalField;
}

body
{
type kqRWallFunction;
value uniform 0;
}

frontandback
{
type empty;
}
}

// ************************************************** *********************** //


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 -1 0 0 0 0];

internalField uniform 100;

boundaryField
{
inlet
{
type inletOutlet;
inletValue $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
}

upanddown
{
type inletOutlet;
inletValue $internalField;
}

body
{
type omegaWallFunction;
value uniform 0; // es bleibt allerdings durch die WallFunction nicht 0 !
}

frontandback
{
type empty;
}
}

// ************************************************** *********************** //

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0.14;

boundaryField
{
inlet
{
type freestream;
freestreamValue $internalField;
}

outlet
{
type freestream;
freestreamValue $internalField;
}

upanddown
{
type freestream;
freestreamValue $internalField;
}

body
{
type nutkWallFunction;
value uniform 0;
}

frontandback
{
type empty;
}
}

// ************************************************** *********************** //
Andy_ilek is offline   Reply With Quote

Old   September 28, 2015, 03:44
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
it seems OK for me , just some small questions:
1- did you check Mach number? is it incompressible flow (Mach < 0.3)?
2- you use incompressible solver pisoFoam, is there any reason you assign p = 85796 ? you could put it zero

3- if you are looking for steady state solution, then simpleFoam can be considered too
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply


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
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Advice on multi-phase flow modelling Martin Main CFD Forum 3 October 14, 2008 06:16
modelling slug flow with pressure inlet Azman FLUENT 0 May 29, 2006 07:45
Slug flow in square channel PaulC FLUENT 0 December 5, 2005 03:03
Compressible Flow Modelling? yeo FLUENT 4 March 7, 2003 08:08


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