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

sonicFoam - simulation stop for negative temperature - are my parameters wrong ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2018, 18:08
Default sonicFoam - simulation stop for negative temperature - are my parameters wrong ?
  #1
New Member
 
Join Date: Nov 2018
Posts: 1
Rep Power: 0
Jad.L. is on a distinguished road
Dear Foamers,

I am using openFoam v.6 and the solver sonicFoam for k-omega SST simulation.
My simulation stops after few loop due to a negative temperature (in Kelvin ). I think I have a trouble with my parameters. Could someone please check it?

About the simulation :

A cylinder of 100 mm length and with a 50 mm diameter. There is one inlet and one outlet at each part of the cylinder. This cylinder is under vacuum 0.1 Pa. The inlet will release 1.5e7 Pa (150 bar) and the outlet does nothing for now.

alphat


alphat = thermal conductivity / heat capacity

For H2 , alphat = 0.18/14300 = 1.2587e-5
Code:
internalField   uniform 0.000012587;

boundaryField
{
    Inlet
    {
        type            calculated;
        value           uniform 0.000012587;
    }
    Outlet
    {
        type            calculated;
        value           uniform 0.000012587;
    }
    
    Pipe
    {
        type            compressible::alphatWallFunction;
        value           uniform 0.000012587;
    }
 }


k
For the kinematic energy k, I found 4.14e-22 ( I used k=3/2*Boltzman cst* Temperature ) But this result seems weird.

I assume to have supersonic flow, I should have a velocity around U=750 m.s-1

Then I used the formula k = 3/2 (U*I) from CFD wiki . k = 16537



Is it correct to assume U= 750 and sound Velocity = 300 for my case ?


Code:
internalField   uniform 1;

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform 16537;
    }
    Outlet
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }
    Pipe
    {
        type            kqRWallFunction;
        value           uniform 1;
    }
 }




nut
Code:
 internalField   uniform 0;

boundaryField
{
    Inlet
    {
        type            calculated;
        value           uniform 0;
    }
    Outlet
    {
        type            calculated;
        value           uniform 0;
    }
    Pipe
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
 }
omega


from the formula given in CFD wiki, omega =128/1.9e-4 =0.024

Code:
dimensions      [0 0 -1 0 0 0 0];

internalField   uniform 0.024;

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform 0.024;
    }
    Outlet
    {
        type            inletOutlet;
        inletValue      uniform 0.024;
        value           uniform 0.024;
    }
    Pipe
    {
        type            omegaWallFunction;
        value           uniform 0.024;
    }
 }



p
Code:
internalField   uniform 0.1;

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform 15000000;
    }

    Outlet
    {
        type            waveTransmissive;
        field           p;
        psi             thermo:psi;
        gamma           1.3;
        fieldInf        0.1;
        lInf            1;
        value           uniform 0.1;
    }
    Pipe
    {
        type            zeroGradient;
    }
 }
T
Code:
internalField   uniform 20;

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform 20;
    }

    Outlet
    {
        type            inletOutlet;
        inletValue      uniform 20;
        value           uniform 20;
    }
    Pipe
    {
        type            zeroGradient;
    }
 }
U
Code:
internalField   uniform (0 0 0);

boundaryField
{
    Inlet
    {
        type            fixedValue;
        value           uniform (750 0 0);
    }

    Outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
    Pipe
    {
        type            noSlip;
    }
}
Jad.L. 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
LES simulation parameters manju819 OpenFOAM Running, Solving & CFD 5 November 6, 2016 09:07
udf error srihari FLUENT 1 October 31, 2016 15:18
Temperature stratification simulation in CFX marble CFX 0 May 25, 2016 18:53
Unexpected large decrease in Total temperature across the shock using sonicFoam JLight OpenFOAM 0 December 16, 2010 12:46
Unexpected large decrease in Total temperature across the shock using sonicFoam JLight OpenFOAM Running, Solving & CFD 0 December 15, 2010 06:47


All times are GMT -4. The time now is 11:13.