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

adjusting fvSchemes and fvSolution to correct for drag discrepancy

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2015, 14:42
Default adjusting fvSchemes and fvSolution to correct for drag discrepancy
  #1
New Member
 
Join Date: Dec 2015
Location: texas
Posts: 3
Rep Power: 10
sergiu tofanel is on a distinguished road
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?
sergiu tofanel is offline   Reply With Quote

Old   February 5, 2017, 07:54
Default
  #2
New Member
 
Join Date: Mar 2014
Location: Czech Republic
Posts: 29
Rep Power: 14
elones is on a distinguished road
Hi,
did you solve the problem?
elones is offline   Reply With Quote

Old   June 25, 2021, 10:44
Default
  #3
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
im also stuck here
Sakun is offline   Reply With Quote

Old   June 26, 2021, 09:12
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
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?
Sakun likes this.
HPE is offline   Reply With Quote

Old   June 28, 2021, 06:12
Default Files in the 0 folder
  #5
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
/*--------------------------------*- 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;
}
}

// ************************************************** *********************** //
Sakun is offline   Reply With Quote

Old   June 28, 2021, 06:19
Default Files in the system folder
  #6
Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 93
Rep Power: 6
Sakun is on a distinguished road
/*--------------------------------*- 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;
}


// ************************************************** *********************** //
Sakun is offline   Reply With Quote

Old   July 1, 2021, 16:04
Default
  #7
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
no, I meant by a minimal example that could be downloadable and executable easily and effortlessly. thanks.
HPE 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
crucial settings with respect to fvSchemes and fvSolution to achieve convergence canopus OpenFOAM Running, Solving & CFD 0 March 1, 2015 14:31
rhoSimpleFoam fvSchemes fvSolution and convergence problems inf.vish OpenFOAM Running, Solving & CFD 0 October 24, 2013 23:50
Errors on fvSolution and fvSchemes Grimoli OpenFOAM Pre-Processing 1 September 28, 2013 09:10
General help for fvSchemes and fvSolution settings harly OpenFOAM Running, Solving & CFD 4 September 7, 2009 10:31


All times are GMT -4. The time now is 19:56.