mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Move stabilisation to steady-state part of LES motorBike tutorial. See #856.
This commit is contained in:
@ -49,68 +49,14 @@ runTimeModifiable true;
|
|||||||
|
|
||||||
functions
|
functions
|
||||||
{
|
{
|
||||||
streamLines
|
// Demonstrate runtime postprocessing
|
||||||
{
|
#include "streamLines"
|
||||||
type streamLine;
|
#include "cuttingPlane"
|
||||||
writeControl writeTime;
|
|
||||||
setFormat vtk;
|
|
||||||
trackForward true;
|
|
||||||
fields (p U);
|
|
||||||
lifeTime 10000;
|
|
||||||
nSubCycle 5;
|
|
||||||
cloud particleTracks;
|
|
||||||
seedSampleSet
|
|
||||||
{
|
|
||||||
type uniform;
|
|
||||||
axis x;
|
|
||||||
start (-1.001 1e-07 0.0011);
|
|
||||||
end (-1.001 1e-07 1.0011);
|
|
||||||
nPoints 20;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cuttingPlane
|
|
||||||
{
|
|
||||||
type surfaces;
|
|
||||||
libs ("libsampling.so");
|
|
||||||
writeControl writeTime;
|
|
||||||
surfaceFormat vtk;
|
|
||||||
fields (p U);
|
|
||||||
interpolationScheme cellPoint;
|
|
||||||
surfaces
|
|
||||||
(
|
|
||||||
yNormal
|
|
||||||
{
|
|
||||||
type cuttingPlane;
|
|
||||||
planeType pointAndNormal;
|
|
||||||
pointAndNormalDict
|
|
||||||
{
|
|
||||||
point (0 0 0);
|
|
||||||
normal (0 1 0);
|
|
||||||
}
|
|
||||||
interpolate true;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
forces
|
|
||||||
{
|
|
||||||
type forceCoeffs;
|
|
||||||
libs ("libforces.so");
|
|
||||||
writeControl timeStep;
|
|
||||||
writeInterval 1;
|
|
||||||
patches ("motorBike.*");
|
|
||||||
rho rhoInf;
|
|
||||||
log true;
|
|
||||||
rhoInf 1;
|
|
||||||
liftDir (0 0 1);
|
|
||||||
dragDir (1 0 0);
|
|
||||||
CofR (0.72 0 0);
|
|
||||||
pitchAxis (0 1 0);
|
|
||||||
magUInf 20;
|
|
||||||
lRef 1.42;
|
|
||||||
Aref 0.75;
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "runtimePostProcessing"
|
#include "runtimePostProcessing"
|
||||||
|
|
||||||
|
// Do some other functionObjects
|
||||||
|
#include "forceCoeffs"
|
||||||
|
#include "stabilizationSchemes"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ gradSchemes
|
|||||||
divSchemes
|
divSchemes
|
||||||
{
|
{
|
||||||
default none;
|
default none;
|
||||||
div(phi,U) bounded Gauss linearUpwindV grad(U);
|
div(phi,U) bounded Gauss localBlended linearUpwindV grad(U) linear;
|
||||||
div(phi,k) bounded Gauss upwind;
|
div(phi,k) bounded Gauss upwind;
|
||||||
div(phi,omega) bounded Gauss upwind;
|
div(phi,omega) bounded Gauss upwind;
|
||||||
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
||||||
|
|||||||
@ -51,7 +51,6 @@ functions
|
|||||||
#include "cuttingPlane"
|
#include "cuttingPlane"
|
||||||
#include "forceCoeffs"
|
#include "forceCoeffs"
|
||||||
#include "ensightWrite"
|
#include "ensightWrite"
|
||||||
#include "stabilizationSchemes"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ gradSchemes
|
|||||||
divSchemes
|
divSchemes
|
||||||
{
|
{
|
||||||
default none;
|
default none;
|
||||||
div(phi,U) bounded Gauss localBlended linearUpwindV grad(U) linear;
|
div(phi,U) bounded Gauss linearUpwindV grad(U);
|
||||||
div(phi,k) bounded Gauss upwind;
|
div(phi,k) bounded Gauss upwind;
|
||||||
div(phi,omega) bounded Gauss upwind;
|
div(phi,omega) bounded Gauss upwind;
|
||||||
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
||||||
|
|||||||
Reference in New Issue
Block a user