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

Gas in tank

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2010, 07:51
Default Gas in tank
  #1
New Member
 
Gleb
Join Date: Jul 2010
Posts: 1
Rep Power: 0
therazer is on a distinguished road
Hi all! Sorry for bad english.
So i have Rectangular paralleleriped. Bottom flate is heated to T=600K. Another plane`s T is 300K. Inside is an air.


Controldict and transportProperties are from example cavity (/run/tutorials/icoFoam/cavity/)
So i set Boundary conditions and generate mesh. What`s now? I think i need now fvSolve fvSchemes files. Plz help, i dont know what this files must contain.
constant/polyMesh/blockMeshDict
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.01;

vertices        
(
    (0 0 0)
    (2 0 0)
    (2 1 0)
    (0 1 0)
    (0 0 1)
    (2 0 1)
    (2 1 1)
    (0 1 1)
);

edges           
(
);

blocks
(
    hex (0 1 2 3 4 5 6 7) 
    (20 20 20) 
    simpleGrading (5 1 1)
);

patches         
(

    wall fixedWalls
    (
        (0 4 7 3)
        (2 6 5 1)
        (1 5 4 0)
    (2 3 7 6)
    (4 5 6 7)
    )
    wall fixedWallbottom
    (
    (0 3 2 1)
    )
);

// ************************************************************************* //
0/p
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://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 0;

boundaryField
{
   fixedWallbottom
    {
        type            zeroGradient;
    }

    fixedWalls
    {
        type            zeroGradient;
    }
}

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

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

internalField   uniform 0;

boundaryField
{
    fixedWalls
    {
        type            fixedValue;
        value           uniform 0;
    }

   fixedWallbottom
   {
        type            fixedValue;
        value           uniform 0;
   }
}

// ************************************************************************* //
O/T
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://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 0;

boundaryField
{
    fixedWallbottom
    {
        type                fixedValue;
        value               uniform 594;
    }

    fixedWalls
    {
        type                fixedValue;
        value               uniform 297;
}

Last edited by therazer; July 19, 2010 at 09:23.
therazer 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Gas discharge from tank to tank through a pipe Arno FLUENT 4 December 28, 2010 09:52
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Gas flow profiles in mixing tank srinivas FLUENT 0 November 8, 2006 04:52
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02


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