Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's OpenFOAM page.

 

 

 

 

 

(OpenFOAM) OpenFoamExample18

 

./ToolOpenFoamExample18/About.txt

 

Originally copied from from C:\cfd\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\compressible\rhoSimplecFoam\squareBend
Changed shape and setup

 

 

 

 

 

./ToolOpenFoamExample18/case.foam

 

 

 

 

 

 

./ToolOpenFoamExample18/Clean.bat

 

del constant\polyMesh\boundary
del constant\polyMesh\cellZones
del constant\polyMesh\faces
del constant\polyMesh\neighbour
del constant\polyMesh\owner
del constant\polyMesh\points
del constant\polyMesh\sets\inlet
del constant\polyMesh\sets\outlet
rmdir constant\polyMesh\sets

 

 

 

 

 

./ToolOpenFoamExample18/CreateMesh.gnumeric

 

sOR]mo8B I{wxN p0uE$7I )Y^Vb]_dq+_Qy88m'O`v88~j,qx"Aԇ<vd(_4Ҽ\Zwu9(vT#x]'u;yOB)i2ZbwMj)m＀^Z-bPSmggqzE$ W}8 4XcC~49o8!['LTP VW_(ɐ'jWT빫
"Imu≳ŋHw޿:zdn[kwqvu#TB5Ws N$GUyAԏ>^`-gsJUnFzmtufЧn+yI E+EUgI׾h'-%m ㇵVkhȘ kU?VcMF4U{tV njzcUSn r4fݕO V(pn}t0A?f qԐ/Kc3:'0`_;S񴥥Co k+#.)zdL&{b$5r{2Mj hN5ʙgӤWh*$e ,Ogoo7ǧS^ .߈֛/(͛Лf7Ќș0K0)V1'hoHonk㇊ސɋ[֛&7oG˫ըAH{(|/:@ >%ӻBh O5)l$ ugztf-qcu6)aR0'c/w+\?{}7)Qv
ep)HX g(t!x+ĘroqㅔL־?$F!#0(#q!HXAġ(taqf0nq]JB[R0^8SniO>89F~g:!qLcK:Bp EO`m tϡi$yj Kơܛ'yĥ+W_O[d5P^TCE?@PgoF[,4@h R@s3?R$^ d`jEoɸDu:\TUm *Sޞ,z>`ACg9F1Ur3ޏ_8 C^=Hr$MRb!0q!6XC rc"`,E^~%g'OKzI:6Lle5')n-i7NNڈp [agMժi66Kohg,cCanϘS9ݰf43if%ikҬJҬN^Vf7ri]$ #$׌qF^Mf~3GTR2W~Z56i欆=Qgaxc%Kl9s&jm w{͝mu9ܩ!o"Ǟf=ׄ{9a5!˞gx1wqoqO3s Mز5CG·W%sdX#7 u{M},;{ˣ 87[9+?);d#(q>9^;.0':ᔔEX&2 M̊[%k^6feY\\dZl ZU#B g$VXQ+ȥ/$+0!5?1[o<-z-س۫`b6{kJ$MYk`c~9x<_"ٿA+ioIhK~6JHH%/Vuە)/2@vKʆ@7"]/t_GjU.g^ܒ%%-K* iQKڬ%]$ 'V7}7Q%tvK52;O@ac /D\{JHC0q@5 rtD^PKnh\f?+.!2*(KY)]d7t>z;WwRtIݩQyk.cYzHq'4>l<<QcӃ%"muVf
9+Sy ܕy%zd
,>$;wM[ðT--l[  lPcj@]1<H"gҽ$""/?0A{tLo# , T
W@'^=HSFR2e;N~Ċ2Kg@“\CN"X\So(+#-1u~` ǛRFTfneK- N*IJVTWj\8 ]TsH=ɏoU{3j/Q[땽 8<zhHF3;2Ly=`YDN2V%MuK^ڌ.Z2Q%|UrTXS}O5ɱL/."96hU6 l. Ӫ3ҕ9%&iY*P|ݺ{ŘIctWW''j?A0DW;%&iҚI뒶K.i:d/%{.EtI~u,9ܽ7]fL| LYv@Ed@dbToI<Od8ETUopn #mԒ6w/m] 8eojQFr讴xEdfFZf?l)gjj,e~\~߽6ZКQ7oVnE4;\NL ѩ"dNO=on?]ddaqз^z6ᐆ?!bZ_$Cv}.p(62D3*N)Mg:6)^̏ܘ̜DPMK:U&.9B1;)΅NdIn[z=gb
Aq"
%"9ȇ[JxsE|?.|;
V"ZEī-+Q"b l$%AÅD/)"/*$dn(-HJb)%QKRP.% 1!c!s uqeO E=?4}TJ&G
b3X왢RJPv],ٳ9CًŞIIP,$j`iX
W;.# jw_)ĕ=39eg}FRJIԀQCjW K]!&D#) Xf*(BXKC>61XJIRe*|͇!ٹ ESN)XuDvnN$tMD<DjZw^d9<E浶SJ$SJFOR·|Hڹ HH <sS"Rs_ SW^/1\B"?)C>o}9coadKь M>{1Z,t&-=4bm+&u_jG~S#G~ m~r|u-BtV#0duc#0߀uΦ316o/لjMzj6fj6fj6fjmBM斶VЉ%i1TA3o1?g|

 

 

 

 

 

./ToolOpenFoamExample18/Licence.txt

 

                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
[...]
  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

 

 

 

 

 

./ToolOpenFoamExample18/ToolOpenFoamExample18.bat

 

blockMesh.exe
checkMesh.exe
rhoSimplecFoam.exe
//paraFoam

 

 

 

 

 

./ToolOpenFoamExample18/system/controlDict

 

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

application     rhoSimplecFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         10.0;

deltaT          1.0;

writeControl    timeStep;

writeInterval   1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

graphFormat     raw;

runTimeModifiable true;


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

 

 

 

 

 

./ToolOpenFoamExample18/system/fvSchemes

 

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

ddtSchemes
{
    default             steadyState;
}

gradSchemes
{
    default             Gauss linear;
}

divSchemes
{
    default             none;

    div(phi,U)          Gauss upwind;
    div((muEff*dev2(T(grad(U)))))      Gauss linear;
    div(phi,h)          Gauss upwind;
    div(phi,epsilon)    Gauss upwind;
    div(phi,k)          Gauss upwind;

    div(phid,p)         Gauss upwind;
    div(phi,K)          Gauss upwind;

    //div((phi|interpolate(rho)),p)          Gauss upwind; //NEW
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
    UD              upwind phid;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p;
    pCorr;
}

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

 

 

 

 

 

./ToolOpenFoamExample18/system/fvSolution

 

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

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-08;
        relTol          0.1;
        smoother        GaussSeidel;
        nPreSweeps      0;
        nPostSweeps     2;
        nFinestSweeps   2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 20;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

    "(U|h|k|epsilon)"
    {
        solver          GAMG;
        tolerance       1e-08;
        relTol          0.1;
        smoother        GaussSeidel;
        nPreSweeps      0;
        nPostSweeps     2;
        nFinestSweeps   2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 20;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    rhoMin          rhoMin [1 -3 0 0 0] 0.1;
    rhoMax          rhoMax [1 -3 0 0 0] 1.0;
    transonic       yes;
    convergence     0.01;
}

relaxationFactors
{
    fields
    {
        p               1;
        rho             1;
    }
    equations
    {
        U               0.9;
        h               0.8;
        k               0.9;
        epsilon         0.9;
pEqn 0.3;
    }
}

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

 

 

 

 

 

./ToolOpenFoamExample18/constant/polyMesh/blockMeshDict

 

// The object is a bit like a hovercraft:
// high pressure is supplied at the top inlet tube,
// which then flows below the object

FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}

convertToMeters 1.0;

vertices
(
  ( 1  1  2) // 0
  ( 1 -1  2) // 1
  (-1 -1  2) // 2
  (-1  1  2) // 3

  ( 1  1  0) // 4
  ( 1 -1  0) // 5
  (-1 -1  0) // 6
  (-1  1  0) // 7

  ( 1  1 -1) // 8
  ( 1 -1 -1) // 9
  (-1 -1 -1) //10
  (-1  1 -1) //11

  ( 3  3  0) //12
  ( 3 -3  0) //13
  (-3 -3  0) //14
  (-3  3  0) //15
  ( 3  3 -1) //16
  ( 3 -3 -1) //17
  (-3 -3 -1) //18
  (-3  3 -1) //19
);

//Side:
//
//    +--+     top layer
//    |  |
// +--+--+--+  middle layer
// |  |  |  |
// +--------+  bottom layer
//
//Layers:
//
//Top layer:
//
//  
//  
//    +--+ The block below this section is called 'inlet'
//    |  |
//    |  |  
//    +--+  
//  
//  
//
//
//Middle layer:
//
// +--------+ The block above the middle section is called 'inlet'
// |\      /| The block below the middle section is called 'below inlet'
// | \    / | The block below the upper  section is called 'outlet back'
// |  +--+  | The block below the right  section is called 'outlet right'
// |  |  |  | The block below the bottom section is called 'outlet front'
// |  |  |  | The block below the left   section is called 'outlet left'
// |  +--+  |
// | /    \ |
// |/      \|
// +--------+
//
//Bottom layer:
//
// +--------+ The block above the middle section is called 'below inlet'
// |\      /| The block above the upper  section is called 'outlet back'
// | \    / | The block above the right  section is called 'outlet right'
// |  +--+  | The block above the bottom section is called 'outlet front'
// |  |  |  | The block above the left   section is called 'outlet left'
// |  |  |  |
// |  +--+  |
// | /    \ |
// |/      \|
// +--------+

blocks
(
    hex ( 6  5  4  7  2  1  0  3) (80 80 80) simpleGrading (1 1 1) //0: inlet
    hex (10  9  8 11  6  5  4  7) (80 80 80) simpleGrading (1 1 1) //1: below inlet
    hex (11  8 16 19  7  4 12 15) (80 80 80) simpleGrading (1 1 1) //2: outlet back
    hex ( 9 17 16  8  5 13 12  4) (80 80 80) simpleGrading (1 1 1) //3: outlet right
    hex (18 17  9 10 14 13  5  6) (80 80 80) simpleGrading (1 1 1) //4: outlet front
    hex (18 10 11 19 14  6  7 15) (80 80 80) simpleGrading (1 1 1) //5: outlet left
);

//No edges needed: all are automatically defined as lines in blocks
[...]
(6 7 15 14)
            //bottom of outlet back
(8 11 19 16)
            //bottom of outlet right
(8 16 17 9)
            //bottom of outlet front
(9 17 18 10)
            //bottom of outlet left
(10 18 19 11)
            //bottom of below inlet
(8 9 10 11)
        );
    }
    inlet
    {
        type patch;
        faces
        (
//Top
            (0 3 2 1)
//Bottom
//(4 7 6 5)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (12 13 17 16)
            (13 14 18 17)
        );
    }

    sides
    {
        type symmetryPlane;
//type wall;
        faces
        (
            (12 16 19 15)
            (14 15 19 18)
        );
    }
);

mergePatchPairs
(

);

 

 

 

 

 

./ToolOpenFoamExample18/0/alphat

 

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

internalField   uniform 0;

boundaryField
{
    Default_Boundary_Region
    {
        type            alphatWallFunction;
        Prt             0.85;
        value           uniform 0;
    }
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

./ToolOpenFoamExample18/0/cellToRegion

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       labelList;
    location    "0";
    object      cellToRegion;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


16000
(
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
[...]
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
)


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

 

 

 

 

 

./ToolOpenFoamExample18/0/epsilon

 

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

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

internalField   uniform 200;

boundaryField
{
    Default_Boundary_Region
    {
        type            compressible::epsilonWallFunction;
        Cmu             0.09;
        kappa           0.41;
        E               9.8;
        value           uniform 200;
    }
    inlet
    {
        type            compressible::turbulentMixingLengthDissipationRateInlet;
        mixingLength    0.005;
        value           uniform 200;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 200;
        value           uniform 200;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

./ToolOpenFoamExample18/0/k

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    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 1;

boundaryField
{
    Default_Boundary_Region
    {
        type            compressible::kqRWallFunction;
        value           uniform 1;
    }
    inlet
    {
        type            turbulentIntensityKineticEnergyInlet;
        intensity       0.05;
        value           uniform 1;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

./ToolOpenFoamExample18/0/mut

 

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

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

internalField   uniform 0;

boundaryField
{
    Default_Boundary_Region
    {
        type            mutkWallFunction;
        Cmu             0.09;
        kappa           0.41;
        E               9.8;
        value           uniform 0;
    }
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

./ToolOpenFoamExample18/0/p

 

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

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

internalField   uniform 100000;

boundaryField
{
    Default_Boundary_Region
    {
        type            zeroGradient;
    }
    inlet
    {
        //type            zeroGradient;
        type            mixed;
        refValue        uniform 500000;
        refGradient     uniform 0;
        valueFraction   uniform 0.3;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 100000;

        //type            mixed;
        //refValue        uniform 110000;
        //refGradient     uniform 0;
        //valueFraction   uniform 1;
        //type            transonicOutletPressure;
        //U               U;
        //phi             phi;
        //gamma           1.4;
        //psi             psi;
        //pInf            uniform 110000;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

./ToolOpenFoamExample18/0/T

 

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

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 1000;

boundaryField
{
    Default_Boundary_Region
    {
        type            zeroGradient;
    }

    inlet
    {
        type            fixedValue;
        value           uniform 1000;
    }

    outlet
    {
        type            inletOutlet;
        //type            zeroGradient;
        value           uniform 1000;
        inletValue      uniform 1000;
    }
    //Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}

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

 

 

 

 

 

./ToolOpenFoamExample18/0/U

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    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 (0 0 0);

boundaryField
{
    Default_Boundary_Region
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    inlet
    {
        type            flowRateInletVelocity;
        flowRate        constant 0.5; //0.75;
        value           uniform (0 0 0);
    }
    outlet
    {
        type            inletOutlet;
        value           uniform (0 0 0);
        inletValue      uniform (0 0 0);
    }
//Modified by Richel Bilderbeek
    sides
    {
        type            symmetryPlane;
    }
}


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

 

 

 

 

 

Go back to Richel Bilderbeek's OpenFOAM page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml