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

rhoPimpleFoam - Pressure cyclic fluctuations

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By sjohn2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2019, 14:48
Default rhoPimpleFoam - Pressure cyclic fluctuations
  #1
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
Hi,

I am trying to simulate a nozzle flow of water/steam, using rhoPimpleFoam solver.
I am getting cyclic fluctuations in pressure i.e pressure fields alternates every 3-4 times steps between the 2 figures. Basically the pressure does not converge.

phigh.jpg

plow.jpg

However the velocity fields looks OK

vel.jpg

PHP Code:
My boundary conditions are:
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
volScalarField;
    
object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Pin   248000;
Pout   127000;

dimensions      [--2 0 0];

internalField   uniform $Pout;

boundaryField
{
    
INLET
    
{
   
      
type          totalPressure;
       
p0           uniform $Pin;
    }

    
OUTLET
    
{
      
type          fixedValue;
      
value         uniform $Pout;
     
    }

    
WALL
    
{
        
type            zeroGradient;
    }

    
SYMM
    
{
        
type            symmetry;
    }
    
    
SIDE1
    
{
        
type            empty;
    }
    
    
SIDE2
    
{
        
type            empty;
    } 

PHP Code:
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
volVectorField;
    
object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
   
dimensions      [0 1 -1 0 0];

internalField   uniform (5.97 0 0);

boundaryField
{
    
INLET
    
{
        
        
type            pressureInletVelocity;
        
value           $internalField;

    }

    
OUTLET
    
{
        
type        zeroGradient;
    }

    
WALL
    
{
        
type            noSlip;
    }

    
SYMM
    
{
        
type            symmetry;
    }
    
    
SIDE1
    
{
        
type            empty;
    }
    
    
SIDE2
    
{
        
type            empty;
    }   
        

Thermohysical properties are
PHP Code:
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
dictionary;
    
location    "constant";
    
object      thermodynamicProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType
{
    
type            heRhoThermo;
    
mixture         pureMixture;
    
properties      liquid;
    
energy          sensibleInternalEnergy;
}

mixture
{
    
H2O;

I am out of idea, what can be the possible problem Any suggestions?

Last edited by sjohn2; July 2, 2019 at 14:17.
sjohn2 is offline   Reply With Quote

Old   July 1, 2019, 19:06
Default Update!
  #2
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
I tried solving the same problem using rhoSimpleFoam; which uses the Simple algorithm to solve for pressure field, with the same boundary conditions and the pressure field problem vanishes.

I get the pressure field as:
p.jpg

and the velocity field as:

v.jpg

The problem I need to use cavitatingFoam which is based on PIMPLE algorithm and I need to get PIMPLE running,

Any suggestions?
sjohn2 is offline   Reply With Quote

Old   July 2, 2019, 14:15
Default
  #3
Member
 
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7
sjohn2 is on a distinguished road
Hi,

I got the solution to work finally, the change that I made to the fvsolution file in the PIMPLE part is turn on transonic. Now the pressure plot looks like this,

p.jpg

and the velocity plot is,

vel.jpg


Does anyone have any feedback/advice in the settings for transonic/supersonic flows?

Here is my fv solution
PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  [url]https://openfoam.org[/url]
    \\  /    A nd           | Version:  6
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
dictionary;
    
location    "system";
    
object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    
rho
    
{
        
solver          PCG;
        
preconditioner  DIC;
        
tolerance       1e-5;
        
relTol          0.1;
    }

    
rhoFinal
    
{
        
$rho;
        
tolerance       1e-5;
        
relTol          0;
    }

    
"p.*"
    
{
        
solver          GAMG;
        
smoother        GaussSeidel;

        
tolerance       1e-7;
        
relTol          0;
    }

    
"(U|e|k|epsilon).*"
    
{
        
solver          PBiCGStab;
        
preconditioner  DILU;

        
tolerance       1e-7;
        
relTol          0;
    }
}

PIMPLE
{
    
momentumPredictor   yes;
    
transonic           yes;
    
nOuterCorrectors    3;
    
nCorrectors         1;
    
nNonOrthogonalCorrectors 0;

    
pMaxFactor          1.2;
    
pMinFactor          0.8;
    
   
residualControl
    
{
        
U   1e-5;
 
        
p  5e-7;
 
     }
}

relaxationFactors
{
    
fields
    
{
        
p      0.3;
        
pFinal   1;
    }
    
    
equations
    
{
        
".*"            0.8;
    }
}

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

and fvschemes file:

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

ddtSchemes
{
    default             
Euler;
}

gradSchemes
{
    default             
Gauss linear;

    
limited             cellLimited Gauss linear 1;
}

divSchemes
{
    default             
none;

    
div(phi,U)          Gauss linearUpwind limited;
    
div(phi,e)          Gauss linearUpwind limited;
    
div(phi,epsilon)    Gauss linearUpwind limited;
    
div(phi,k)          Gauss linearUpwind limited;
    
div(phi,K)          Gauss linearUpwind limited;
    
div(phiv,p)         Gauss linearUpwind limited;
    
div(phid,p)         Gauss linearUpwind limited;

    
div(((rho*nuEff)*dev2(T(grad(U)))))      Gauss linear;
}

laplacianSchemes
{
    default         
Gauss linear corrected;
}

interpolationSchemes
{
    default         
linear;
}

snGradSchemes
{
    default         
corrected;
}


// ************************************************************************* // 
jfolio and uckmhnds like this.
sjohn2 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
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 16:36
rhoPimpleFoam Initial Setup Queries for a Flow Generated due to Pressure B.C umer.chaudrey OpenFOAM 1 October 4, 2011 03:52
Pressure reference in cyclic interFoam AlmostSurelyRob OpenFOAM 7 February 16, 2011 09:58
About Pressure Field with Cyclic Boundary Conditio Jiaying Xu Siemens 2 October 4, 2001 09:11


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