|
[Sponsors] |
adjusting fvSchemes and fvSolution to correct for drag discrepancy |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2015, 15:42 |
adjusting fvSchemes and fvSolution to correct for drag discrepancy
|
#1 |
New Member
Join Date: Dec 2015
Location: texas
Posts: 3
Rep Power: 10 |
I am running a 2D airfoil simulation of a NACA23012 section using simpleFoam as a solver.
The CL vs alpha seems to be in the ballpark with experimental results, but the drag is way too high. I understand that this is a common problem with turbulence model simulations. Right now I am using the native OpenFOAM SpalartAllmaras turbulence model with the default parameters. After browsing through several posts on the subject, I am led to believe that the adjustments to the drag solution can be made through the fvScheme and fvSolution files. However, I have no idea how to tweak them. Is there an online tutorial anywhere that can point me to a solution? If not, what is the best way to proceed in this situation? |
|
February 5, 2017, 08:54 |
|
#2 |
New Member
Join Date: Mar 2014
Location: Czech Republic
Posts: 29
Rep Power: 14 |
Hi,
did you solve the problem? |
|
June 25, 2021, 11:44 |
|
#3 |
Senior Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 133
Rep Power: 6 |
im also stuck here
|
|
June 26, 2021, 10:12 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
any chance for you all to share a minimal example or the full case, so that we can also try to test what is going on?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
June 28, 2021, 07:12 |
Files in the 0 folder
|
#5 |
Senior Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 133
Rep Power: 6 |
/*--------------------------------*- C++ -*----------------------------------*\
========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ 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 fixedValue; value (50 0 0); } OUTLET { type freestreamVelocity; freestreamValue $internalField; } AIRFOIL { type noSlip; } TOP { type symmetry; } BOTTOM { type symmetry; } frontAndBack { type empty; } } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 82714.29; boundaryField { INLET { type zeroGradient; } OUTLET { type freestreamPressure; freestreamValue $internalField; } AIRFOIL { type zeroGradient; } TOP { type symmetry; } BOTTOM { type symmetry; } frontAndBack { type empty; } } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object nut; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField uniform 0.14; boundaryField { INLET { type freestream; freestreamValue uniform 0.14; } OUTLET { type freestream; freestreamValue uniform 0.14; } AIRFOIL { type nutUSpaldingWallFunction; value uniform 0; } TOP { type symmetry; } BOTTOM { type symmetry; } frontAndBack { type empty; } } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object nuTilda; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField uniform 0.14; boundaryField { INLET { type freestream; freestreamValue uniform 0.14; } OUTLET { type freestream; freestreamValue uniform 0.14; } AIRFOIL { type fixedValue; value uniform 0; } TOP { type symmetry; } BOTTOM { type symmetry; } frontAndBack { type empty; } } // ************************************************** *********************** // |
|
June 28, 2021, 07:19 |
Files in the system folder
|
#6 |
Senior Member
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 133
Rep Power: 6 |
/*--------------------------------*- C++ -*----------------------------------*\
========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application simpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 200000; deltaT 1; writeControl timeStep; writeInterval 5; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; functions { forces { type forceCoeffs; libs ("libforces.so"); writeControl timeStep; writeInterval 1; patches ( AIRFOIL ); log true; rho rhoInf; rhoInf 1; CofR (0 0 0); liftDir (0 1 0); dragDir (1 0 0); pitchAxis (0 0 1); magUInf 50; lRef 1; Aref 1; } } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { p { solver GAMG; tolerance 1e-06; relTol 0.1; smoother GaussSeidel; } U { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } nuTilda { solver smoothSolver; smoother GaussSeidel; nSweeps 2; tolerance 1e-08; relTol 0.1; } } SIMPLE { nNonOrthogonalCorrectors 0; residualControl { p 1e-5; U 1e-5; nuTilda 1e-5; } } relaxationFactors { fields { p 0.3; } equations { U 0.7; nuTilda 0.7; } } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default steadyState; } gradSchemes { default Gauss linear; } divSchemes { default none; div(phi,U) bounded Gauss linearUpwind grad(U); div(phi,nuTilda) bounded Gauss linearUpwind grad(nuTilda); div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } wallDist { method meshWave; } // ************************************************** *********************** // |
|
July 1, 2021, 17:04 |
|
#7 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
no, I meant by a minimal example that could be downloadable and executable easily and effortlessly. thanks.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
crucial settings with respect to fvSchemes and fvSolution to achieve convergence | canopus | OpenFOAM Running, Solving & CFD | 0 | March 1, 2015 15:31 |
rhoSimpleFoam fvSchemes fvSolution and convergence problems | inf.vish | OpenFOAM Running, Solving & CFD | 0 | October 25, 2013 00:50 |
Errors on fvSolution and fvSchemes | Grimoli | OpenFOAM Pre-Processing | 1 | September 28, 2013 10:10 |
General help for fvSchemes and fvSolution settings | harly | OpenFOAM Running, Solving & CFD | 4 | September 7, 2009 11:31 |