Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSI + kOmegaSST turbulence model #643

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions perpendicular-flap/fluid-openfoam/0/k
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}

dimensions [ 0 2 -2 0 0 0 0 ];

internalField uniform 5;

boundaryField
{

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

flap
{
type kqRWallFunction;
value $internalField;
}

frontAndBack
{
type empty;
}

upperWall
{
type zeroGradient;
}

lowerWall
{
type zeroGradient;
}

}

52 changes: 52 additions & 0 deletions perpendicular-flap/fluid-openfoam/0/nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}

dimensions [ 0 2 -1 0 0 0 0 ];

internalField uniform 5;

boundaryField
{

inlet
{
type calculated;
value uniform 0;
}

outlet
{
type calculated;
value uniform 0;
}

flap
{
type nutkWallFunction;
value uniform 0;
}

frontAndBack
{
type empty;
}

upperWall
{
type calculated;
value uniform 0;
}

lowerWall
{
type calculated;
value uniform 0;
}

}

51 changes: 51 additions & 0 deletions perpendicular-flap/fluid-openfoam/0/omega
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}

dimensions [ 0 0 -1 0 0 0 0 ];

internalField uniform 10;

boundaryField
{

inlet
{
type fixedValue;
value $internalField;
}

outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}

flap
{
type omegaWallFunction;
value $internalField;
}

frontAndBack
{
type empty;
}

upperWall
{
type zeroGradient;
}

lowerWall
{
type zeroGradient;
}

}

Original file line number Diff line number Diff line change
@@ -8,4 +8,4 @@ FoamFile

transportModel Newtonian;

nu nu [ 0 2 -1 0 0 0 0 ] 1;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-5;
Original file line number Diff line number Diff line change
@@ -6,4 +6,11 @@ FoamFile
object turbulenceProperties;
}

simulationType laminar;
simulationType RAS;

RAS
{
RASModel kOmegaSST;
turbulence on;
printCoeffs on;
}
8 changes: 8 additions & 0 deletions perpendicular-flap/fluid-openfoam/system/fvSchemes
Original file line number Diff line number Diff line change
@@ -20,6 +20,9 @@ divSchemes
{
default none;
div(phi,U) bounded Gauss upwind;
div(phi,k) bounded Gauss limitedLinear 1;
div(phi,omega) bounded Gauss upwind;

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

@@ -37,3 +40,8 @@ snGradSchemes
{
default corrected;
}

wallDist
{
method Poisson;
}
30 changes: 30 additions & 0 deletions perpendicular-flap/fluid-openfoam/system/fvSolution
Original file line number Diff line number Diff line change
@@ -54,6 +54,36 @@ solvers
$U;
relTol 0;
}

"(U|epsilon|k|omega)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-6;
relTol 1e-3;
// minIter 100;
}
"(U|k|epsilon|omega)Final"
{
$U;
tolerance 1e-6;
relTol 0;
minIter 2;
}

yPsi
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-5;
relTol 0;
}

yPsiFinal
{
$yPsi
relTol 0;
}
}

PIMPLE