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

pressureInletOutletVelocity

Register Blogs Community New Posts Updated Threads Search

Like Tree48Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2022, 16:36
Default
  #41
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
Quote:
Originally Posted by calim_cfd View Post


hi
pressureinletoutletvelocity (in) bcs are to be used with inletoutlet (out) bcs for the u field

and you use totalpressure(in) and fixedvalue(out) for the p field

these bcs guarantee a well-posed problem in case the user has only pressure measures and backflow expected

try that
l8r and gl

Hi ,


Sorry for messeging to an old thread

i am simulating a compressor blade and i need to required apply total pressure,static pressure for "p" and total temperature for "T" .

my simulation shows a tendency to converge but after around 2000 iterations it diverges.
i attached p ,U codes and BC values, i would really appriciate if you could comment on them whether it is correct or wrong. i need desperately need help.


p file,


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


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

internalField   uniform 97251;

boundaryField
{
    INLET
    {
        //type            freestreamPressure;
        //freestreamValue uniform $pOut;

        type            totalPressure;
        p0                uniform 115775;
        value           uniform 115775;
    
        //type            fixedValue;
        //value           uniform 84636.34;
    }

    OUTLET
    {
         //type            freestreamPressure;
        //freestreamValue $internalField;    
            
        type            fixedValue;
        value           uniform 97251;
    }

    CASCADE
    {
        type            zeroGradient;
    }

    "(TOP|BOTTOM)"
    {
        type            cyclicAMI;
    }

    frontAndBackPlanes
    {
        type            empty;
    }
}


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

U file,


Code:
/*--------------------------------*- C++ -*----------------------------------* \
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     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
{
    INLET
    {
        //type            pressureInletOutletVelocity;
        //value           uniform $Uinlet;

        //type            freestreamVelocity;
        //freestreamValue uniform $Uinlet;
        //value           uniform $Uinlet;
    
        //type            fixedValue;
        //value           uniform (232.43 20.34 0);
        
        type pressureDirectedInletVelocity;
        inletDirection uniform (0.631623456 -0.775275312 0);
        value uniform (0 0 0);
    }

    OUTLET
    {
    
        /*
        type            pressureDirectedInletOutletVelocity;
        phi             phi;
        rho             rho;
        inletDirection  uniform (0.631623456 -0.775275312 0);
        value           uniform 0;
        */
        
        //type           inletOutlet;
        //inletValue    uniform (0 0 0);
        //value         $internalField;

        //type            zeroGradient;
    }

    CASCADE
    {
        type            noSlip;
    }
    
    "(TOP|BOTTOM)"
    {
        type            cyclicAMI;
    }

    frontAndBackPlanes
    {
        type            empty;
    }

    
}


// ************************************************************************* //
Attached Images
File Type: png BC values.PNG (39.8 KB, 11 views)
Sakun 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 22:22.