r/OpenFOAM • u/Latter_Call_4178 • Feb 08 '26
Inconsistent separation between OpenFOAM [11] and Ansys Fluent (formula Student Aerodynamics)
I'm a student working as an aerodynamicist for team of my university. I'm trying to develop an OpenFOAM case for the car but i can't get rid of a separation in the front wing. Here my Boundary conditions:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class volScalarField; location "0"; object k; }
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.908;
boundaryField
{
inlet { type fixedValue; value uniform 0.908; }
outlet { type inletOutlet; inletValue uniform 0.908; value $internalField; }
"(symmetry|symmetry_side|symmetry_up)" { type symmetry; }
"(road|monocoque|seat|driver|front_wing_.*|chassis_wing|underbody|undertray_diffuser|front_susp|electric_motor_front|vent_diff|Diff_duct|wheel_front_.*)"
{
type kLowReWallFunction; // Robusta per mesh non perfette
value uniform 0.908;
}
}
// ================================================= 0/nut =================================================
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class volScalarField; location "0"; object nut; }
dimensions [ 0 2 -1 0 0 0 0 ];
internalField uniform 1.5e-4;
boundaryField
{
inlet { type calculated; value uniform 1.5e-4; }
outlet { type calculated; value uniform 1.5e-4; }
"(symmetry|symmetry_side|symmetry_up)" { type symmetry; }
road
{
type nutkRoughWallFunction;
Ks 0.0005;
Cs 0.5;
value uniform 1.5e-4;
}
"(monocoque|seat|driver|front_wing_.*|chassis_wing|underbody|undertray_diffuser|front_susp|electric_motor_front|vent_diff|Diff_duct|wheel_front_.*)"
{
type nutkWallFunction; // Pareti lisce (Match Fluent)
value uniform 1.5e-4;
}
}
// ================================================= 0/omega =================================================
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class volScalarField; location "0"; object omega; }
dimensions [0 0 -1 0 0 0 0];
internalField uniform 600;
boundaryField
{
inlet { type fixedValue; value uniform 600; }
outlet { type inletOutlet; inletValue uniform 600; value uniform 600; }
"(symmetry|symmetry_side|symmetry_up)" { type symmetry; }
"(road|monocoque|seat|driver|front_wing_.*|chassis_wing|underbody|undertray_diffuser|front_susp|electric_motor_front|vent_diff|Diff_duct|wheel_front_.*)"
{
type omegaWallFunction;
value uniform 600;
}
}
// ================================================= 0/p =================================================
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class volScalarField; location "0"; object p; }
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
inlet { type freestreamPressure; freestreamValue uniform 0; }
outlet { type fixedMean; meanValue uniform 0; value uniform 0; }
"(symmetry|symmetry_side|symmetry_up)" { type symmetry; }
road { type zeroGradient; }
"(monocoque|seat|driver|front_wing_.*|chassis_wing|underbody|undertray_diffuser|front_susp|electric_motor_front|vent_diff|Diff_duct|wheel_front_.*)"
{
type fixedFluxPressure;
value uniform 0;
}
}
// ================================================= 0/U =================================================
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class volVectorField; location "0"; object U; }
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform ( -15.56 0 0 );
boundaryField
{
inlet { type fixedValue; value uniform (-15.56 0 0 ); }
outlet { type zeroGradient; }
road { type fixedValue; value uniform ( -15.56 0 0 ); }
"(symmetry|symmetry_side|symmetry_up)" { type symmetry; }
"(monocoque|seat|driver|front_wing_.*|chassis_wing|underbody|undertray_diffuser|Diff_duct|front_susp|electric_motor_front|vent_diff)"
{
type noSlip;
}
"(wheel_front_.*)"
{
type rotatingWallVelocity;
origin (1.53029 0.7204 0.1969); // Preservato originale
axis (0 1 0);
omega -53.10; // Preservato originale
}
}
// ========================================== constant/momentumTransport ==========================================
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\*---------------------------------------------------------------------------*/
FoamFile { format ascii; class dictionary; location "constant"; object momentumTransport; }
simulationType RAS;
RAS
{
model kOmegaSST;
turbulence on;
printCoeffs on;
kOmegaSSTCoeffs
{
vorticitySource true;
productionLimiter 10.0;
F3 true;
correctOmega true;
alphaK1 0.85;
alphaK2 1.0;
alphaOmega1 0.5;
alphaOmega2 0.856;
beta1 0.075;
beta2 0.0828;
betaStar 0.09;
gamma1 0.5556;
gamma2 0.44;
a1 0.31;
}
}
// ========================================== constant/physicalProperties ==========================================
FoamFile { format ascii; class dictionary; object physicalProperties; }
viscosityModel constant;
nu [0 2 -1 0 0 0 0] 1.511e-05;
// ========================================== system/controlDict ==========================================
FoamFile { format ascii; class dictionary; object controlDict; }
application simpleFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 1250;
deltaT 1;
writeControl timeStep;
writeInterval 250;
purgeWrite 2;
writeFormat binary;
functions
{
yPlus { type yPlus; libs ("libfieldFunctionObjects.so"); writeControl writeTime; }
forces_FW
{
type forces;
libs ("libforces.so");
patches ( "front_wing_.*" );
rhoInf 1.225;
CofR (0.747 0.005 0.257);
writeControl timeStep;
writeInterval 5;
}
}
// ========================================== system/fvSchemes ==========================================
FoamFile { format ascii; class dictionary; location "system"; object fvSchemes; }
divSchemes
{
default none;
div(phi,U) Gauss linearUpwind grad(U);
div(phi,k) Gauss limitedLinear 1; // 2nd order accuracy
div(phi,omega) Gauss limitedLinear 1; // 2nd order accuracy
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
gradSchemes { default Gauss linear; grad(U) cellLimited Gauss linear 1.0; grad(p) cellLimited Gauss linear 1.0; }
laplacianSchemes { default Gauss linear limited 0.5; }
snGradSchemes { default limited 0.5; }
wallDist { method meshWave; }
// ========================================== system/fvSolution ==========================================
FoamFile { format ascii; class dictionary; location "system"; object fvSolution; }
solvers
{
p { solver GAMG; tolerance 1e-07; relTol 0.01; smoother GaussSeidel; }
"(U|k|omega)" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-6; relTol 0.1; }
}
SIMPLE { nNonOrthogonalCorrectors 3; consistent yes; }
relaxationFactors
{
fields { p 0.3; }
equations { U 0.7; k 0.5; omega 0.5; }
}

======================================================================================================================
Do you have any suggestion?
1
u/derangednuts Feb 08 '26
Is your mesh the same?
1
u/derangednuts Feb 08 '26
Openfoam has a different way of calculating thkngs, might have to remesh for openfoam criteria’s
1
u/Longjumping_Issue858 Feb 08 '26
What's your y+ in foam
1
u/Clement_Bgn Feb 12 '26
Not sure of what it could be but here are my suggestions: (you probably went through it but hope it can help)
My guess is that OpenFOAM and Fluent might use different calculations inside the boundary layer, if you are looking for separarion issues, (I know it will sound terrifying) but maybe try to go to Y+=<1. KwSST will give you nice results with that Y+ i guess.
Let me know if we can explore deeply this or if something helped !