TUT: Updated vortexShed case wrt latest Curle FO updates

This commit is contained in:
Andrew Heather 2020-06-18 21:41:51 +01:00
parent 1251b82175
commit 7d4cdc4f8c
11 changed files with 1852 additions and 70 deletions

View File

@ -16,19 +16,20 @@ FoamFile
dimensions [0 1 -1 0 0 0 0]; dimensions [0 1 -1 0 0 0 0];
internalField uniform (40 0 0); internalField uniform (0.025 0 0);
boundaryField boundaryField
{ {
cylinder cylinder
{ {
type noSlip; type fixedValue;
value uniform (0 0 0);
} }
inlet inlet
{ {
type fixedValue; type fixedValue;
value $internalField; value uniform (0.025 0 0);
} }
outlet outlet
@ -38,10 +39,14 @@ boundaryField
inletValue uniform (0 0 0); inletValue uniform (0 0 0);
} }
"top|bottom" "(top|bottom)"
{ {
type pressureInletOutletVelocity; type slip;
value uniform (0 0 0); }
frontAndBack
{
type empty;
} }
} }

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [0 2 -1 0 0 0 0]; dimensions [0 2 -1 0 0 0 0];
internalField uniform 1.51e-05; internalField uniform 1e-05;
boundaryField boundaryField
{ {
@ -33,12 +33,22 @@ boundaryField
value $internalField; value $internalField;
} }
"outlet|top|bottom" outlet
{ {
type inletOutlet; type inletOutlet;
inletValue $internalField; inletValue $internalField;
value $internalField; value $internalField;
} }
"(top|bottom)"
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
} }

View File

@ -33,11 +33,16 @@ boundaryField
value $internalField; value $internalField;
} }
"outlet|top|bottom" "(outlet|top|bottom)"
{ {
type calculated; type calculated;
value $internalField; value $internalField;
} }
frontAndBack
{
type empty;
}
} }

View File

@ -30,15 +30,25 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
"outlet|top|bottom" outlet
{ {
type totalPressure; type fixedValue; // totalPressure;
rho none; rho none;
psi none; psi none;
p0 $internalField; p0 $internalField;
gamma 1; gamma 1;
value $internalField; value $internalField;
} }
"(top|bottom)"
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
} }

View File

@ -1,3 +1,15 @@
- Acoustic pressure is calculated based on Curle's analogy. Summary
- Such field is sampled for point (probe) and surface (cutting plane) - Vortex street generated from flow over a sphere
- noise utility is operated onto these samples to obtain frequency information - Acoustic pressure is calculated based on Curle's analogy
- noise utility is processes the acoustic pressure to obtain frequency information
Case detailis
- cylinder diameter: 0.04
- flow speed: 0.025
- kinematic viscosity: 1e-5
- Reynolds number based on cylinder diameter, Red = 100
- For this Red, St = 0.198(1 - 0.197/Red) = 0.159
- Shedding fequency, f = St*U/d = 0.1 Hz
Plotting the FFT of the pressure field shoud show a peak at the shedding
frequency

View File

@ -17,6 +17,6 @@ FoamFile
transportModel Newtonian; transportModel Newtonian;
nu 2e-05; nu 1e-05;
// ************************************************************************* // // ************************************************************************* //

File diff suppressed because it is too large Load Diff

View File

@ -23,15 +23,15 @@ startTime 0;
stopAt endTime; stopAt endTime;
endTime 0.2; endTime 200;
deltaT 1e-5; deltaT 1e-2;
writeControl timeStep; writeControl timeStep;
writeInterval 100; // every 0.001s writeInterval 100; // every 1s
purgeWrite 200; purgeWrite 50;
writeFormat binary; writeFormat binary;
@ -55,35 +55,70 @@ functions
fields (U p); fields (U p);
} }
curle curleSurface
{ {
// Mandatory entries // Mandatory entries
type Curle; type Curle;
libs (fieldFunctionObjects); libs (fieldFunctionObjects);
patches (cylinder); patches (cylinder);
c0 343; c0 343;
input surface;
surface surface.obj;
output surface;
surfaceType ensight;
formatOptions
{
ensight
{
format ascii; // needed for surfaceNoise ...
collateTimes true;
}
}
// Optional (inherited) entries // Optional (inherited) entries
field p; p p;
result Curle;
region region0; region region0;
enabled true; enabled true;
log true; log true;
timeStart 0.1; timeStart 100;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
}
curlePoint
{
// Mandatory entries
type Curle;
libs (fieldFunctionObjects);
patches (cylinder);
c0 343;
input point;
output point;
observerPositions
(
(0.20 0.17 -0.01) // N
(0.22 0.15 -0.01) // E
(0.20 0.13 -0.01) // S
(0.18 0.15 -0.01) // W
);
// Optional (inherited) entries
p p;
region region0;
enabled true;
log true;
timeStart 100;
timeEnd 1000; timeEnd 1000;
executeControl timeStep; executeControl timeStep;
executeInterval 1; executeInterval 1;
writeControl writeTime;
writeInterval -1;
} }
cuttingPlane cuttingPlane
{ {
type surfaces; type surfaces;
libs (sampling); libs (sampling);
writeControl timeStep; writeControl writeTime;
writeInterval 2; timeStart 100;
timeStart 0.1;
surfaceFormat ensight; surfaceFormat ensight;
formatOptions formatOptions
@ -94,7 +129,7 @@ functions
collateTimes true; collateTimes true;
} }
} }
fields (p Curle); fields (p U);
interpolationScheme cellPoint; interpolationScheme cellPoint;
@ -119,32 +154,14 @@ functions
type forces; type forces;
libs (forces); libs (forces);
writeControl writeTime; writeControl writeTime;
timeStart 0.1; timeStart 100;
patches (cylinder); patches (cylinder);
CofR (0.20 0.15 -0.01); CofR (0.20 0.15 -0.01);
writeFields yes; writeFields yes;
rho rhoInf; rho rhoInf;
rhoInf 1.205; rhoInf 1;
}
probes
{
type patchProbes;
libs (sampling);
writeControl timeStep;
timeStart 0.1;
patch cylinder;
probeLocations
(
(0.20 0.17 -0.01) // N
(0.22 0.15 -0.01) // E
(0.20 0.13 -0.01) // S
(0.18 0.15 -0.01) // W
);
fields (p forces:force Curle);
} }
} }

View File

@ -17,13 +17,10 @@ FoamFile
solvers solvers
{ {
p p
{ {
solver GAMG; solver GAMG;
smoother DICGaussSeidel; smoother DICGaussSeidel;
// solver PCG;
// preconditioner DIC;
tolerance 1e-20; tolerance 1e-20;
relTol 0.05; relTol 0.05;
} }
@ -37,10 +34,10 @@ solvers
"(U|nuTilda)" "(U|nuTilda)"
{ {
// solver PBiCGStab; //solver smoothSolver;
// preconditioner DILU; //smoother symGaussSeidel;
solver smoothSolver; solver PBiCGStab;
smoother symGaussSeidel; preconditioner DILU;
tolerance 0; tolerance 0;
relTol 0.1; relTol 0.1;
} }
@ -64,9 +61,9 @@ PIMPLE
relaxationFactors relaxationFactors
{ {
nuTilda 0.95; nuTilda 0.8;
U 0.95; U 0.8;
p 0.95; p 0.8;
".*Final" 1.0; ".*Final" 1.0;
} }

View File

@ -34,8 +34,10 @@ pointNoiseCoeffs
files files
( (
"postProcessing/probes/0/p" "postProcessing/curlePoint/0/observer0.dat"
"postProcessing/probes/0.1/Curle" "postProcessing/curlePoint/0/observer1.dat"
"postProcessing/curlePoint/0/observer2.dat"
"postProcessing/curlePoint/0/observer3.dat"
); );
nHeaderLine 6; nHeaderLine 6;
@ -48,7 +50,7 @@ pointNoiseCoeffs
// default = 2^16 (=65536) // default = 2^16 (=65536)
N 4096; N 4096;
rhoRef 1.205; rhoRef 1;
} }

View File

@ -34,7 +34,7 @@ surfaceNoiseCoeffs
// Input file // Input file
file "postProcessing/cuttingPlane/zNormal/zNormal.case"; file "postProcessing/curleSurface/surface/surface.case";
// Surface reader // Surface reader
reader ensight; reader ensight;
@ -53,13 +53,13 @@ surfaceNoiseCoeffs
} }
// Pressure field // Pressure field
p Curle; p pCurle;
// Number of samples in sampling window // Number of samples in sampling window
// default = 2^16 (=65536) // default = 2^16 (=65536)
N 1024; N 4096;
rhoRef 1.205; rhoRef 1;
} }