|
[Sponsors] |
October 31, 2022, 17:36 |
|
#41 | |
Senior Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 133
Rep Power: 6 |
Quote:
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; } } // ************************************************************************* // |
||
|
|