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

Divergent with rhoSimpleFoam and the boundary condition problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2016, 20:31
Default Divergent with rhoSimpleFoam and the boundary condition problems
  #1
Member
 
Janry
Join Date: Oct 2015
Posts: 46
Rep Power: 10
qjh888 is on a distinguished road
Hi Foamers,

I'm fresh man in OpenFoam.
When I try to adding the temperature field into an 1/12 cylinder mesh, the problems occuring.

The following picture is my mesh:
In the right side is inlet, letf side is outlet. the other sides are wall. The middle one is ggi interface.

Here's my p:
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0.98e5;

boundaryField
{
    OF_inlet_00
    {
        //type            zeroGradient;
        type            fixedValue;
        value           uniform 1.0e5;
   }
    OF_outlet_00
    {
        type            ggi;
    }
    OF_wall_00
    {
        type            cyclicGgi;
    }
    OF_wall_01
    {
        type            cyclicGgi;
    }
    OF_wall_02
    {
        type            zeroGradient;
    }
    OF_wall_03
    {
        type            zeroGradient;
    }
    OF_inlet_10
    {
        type            ggi;
    }
    OF_outlet_10
    {
        type            zeroGradient;
        //type            fixedValue;
        //value           uniform 9900;
    }
    OF_wall_10
    {
        type            cyclicGgi;
    }
    OF_wall_11
    {
        type            cyclicGgi;
    }
    OF_wall_12
    {
        type            zeroGradient;
    }
    OF_wall_13
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //
And here's my T:
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 300.0;


boundaryField
{
    OF_inlet_00
    {
        //type             totalTemperature;
        //T0              uniform 300.0;
        //gamma           1.4;
        type            fixedValue;
        //value           uniform 300;
        value           $internalField;
    }
    OF_outlet_00
    {
        type            ggi;
    }
    OF_wall_00
    {
        type            cyclicGgi;
        //value           uniform (0 0 0);
    }
    OF_wall_01
    {
        type            cyclicGgi;
       // value           uniform (0 0 0);
    }
    OF_wall_02
    {
        type            zeroGradient;
    }
    OF_wall_03
    {
        type            zeroGradient;
    }
    OF_inlet_10
    {
        type            ggi;
    }
    OF_outlet_10
    {
        type            inletOutlet;
        value           $internalField;
        inletValue      $internalField;
    }
    OF_wall_10
    {
        type            cyclicGgi;
        //value           uniform (0 0 0);
    }
    OF_wall_11
    {
        type            cyclicGgi;
       // value           uniform (0 0 0);
    }
    OF_wall_12
    {
        type            zeroGradient;
    }
    OF_wall_13
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //
And here's my U:

Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);


boundaryField
{
    OF_inlet_00
    {
        type            zeroGradient;
    }
    OF_outlet_00
    {
        type            ggi;
    }
    OF_wall_00
    {
        type           cyclicGgi;
        //value           uniform (0 0 0);
    }
    OF_wall_01
    {
        type           cyclicGgi;
       // value           uniform (0 0 0);
    }
    OF_wall_02
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    OF_wall_03
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    OF_inlet_10
    {
        type            ggi;
    }
    OF_outlet_10
    {
        type            inletOutlet;
        value           uniform (0 0 0);
        inletValue    uniform (0 0 0);
    }
    OF_wall_10
    {
        type            cyclicGgi;
        //value           uniform (0 0 0);
    }
    OF_wall_11
    {
        type            cyclicGgi;
       // value           uniform (0 0 0);
    }
    OF_wall_12
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    OF_wall_13
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}

// ************************************************************************* //
When I run rhoSimpleFoam, the temperature and the pressure always increase crazy.
May I ask how to choose a suitable boundary condition for the simulation case?

Could you please point me out of the question?
Thanks a lot in advance.

Janry
qjh888 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



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