mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: Initial state after latest Foundation merge
This commit is contained in:
@ -23,10 +23,7 @@ solvers
|
||||
tolerance 1e-08;
|
||||
relTol 0.05;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 20;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 1e-08;
|
||||
relTol 0.01;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
"(U|Ua|k|epsilon)"
|
||||
|
||||
@ -43,7 +43,7 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
graphName="OF_vs_ANAYTICAL.eps"
|
||||
graphName="OF_vs_ANALYTICAL.eps"
|
||||
|
||||
echo "Creating graph of u+ vs y+ to $graphName"
|
||||
gnuplot<<EOF
|
||||
|
||||
@ -10,5 +10,4 @@ Usage:
|
||||
|
||||
- run test using Allrun script
|
||||
- uses foamLog to generate u+ and y+ values
|
||||
- postscript (.eps) plot generated using gnuplot, OF_vs_ANAYTICAL.eps
|
||||
|
||||
- postscript (.eps) plot generated using gnuplot, OF_vs_ANALYTICAL.eps
|
||||
|
||||
@ -15,9 +15,9 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
patchMap ( lid movingWall );
|
||||
patchMap (lid movingWall);
|
||||
|
||||
cuttingPatches ( fixedWalls );
|
||||
cuttingPatches ();
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 1e-6;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -24,7 +24,7 @@ gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
grad(U) Gauss linear 1;
|
||||
grad(U) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
|
||||
@ -21,12 +21,7 @@ solvers
|
||||
{
|
||||
solver GAMG;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration off;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
cacheAgglomeration no;
|
||||
|
||||
tolerance 0.02;
|
||||
relTol 0;
|
||||
|
||||
@ -39,12 +39,6 @@ boundaryField
|
||||
{
|
||||
type totalPressure;
|
||||
p0 $internalField;
|
||||
U U;
|
||||
phi phi;
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
farField
|
||||
|
||||
@ -9,9 +9,9 @@
|
||||
cuttingPlane
|
||||
{
|
||||
type surfaces;
|
||||
functionObjectLibs ("libsampling.so");
|
||||
libs ("libsampling.so");
|
||||
|
||||
outputControl outputTime;
|
||||
writeControl writeTime;
|
||||
|
||||
surfaceFormat vtk;
|
||||
fields ( p U );
|
||||
@ -26,8 +26,8 @@ cuttingPlane
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 0 1);
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
|
||||
@ -23,12 +23,7 @@ solvers
|
||||
tolerance 0;
|
||||
relTol 0.01;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration no;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -8,10 +8,7 @@ runApplication blockMesh
|
||||
|
||||
runApplication topoSet -constant
|
||||
|
||||
# split the mesh to generate the ACMI coupled patches
|
||||
# Split the mesh to generate the ACMI coupled patches
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
# remove zero-sized patches
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
restore0Dir
|
||||
|
||||
@ -1,54 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createPatchDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// This application/dictionary controls:
|
||||
// - optional: create new patches from boundary faces (either given as
|
||||
// a set of patches or as a faceSet)
|
||||
// - always: order faces on coupled patches such that they are opposite. This
|
||||
// is done for all coupled faces, not just for any patches created.
|
||||
// - optional: synchronise points on coupled patches.
|
||||
|
||||
// 1. Create cyclic:
|
||||
// - specify where the faces should come from
|
||||
// - specify the type of cyclic. If a rotational specify the rotationAxis
|
||||
// and centre to make matching easier
|
||||
// - always create both halves in one invocation with correct 'neighbourPatch'
|
||||
// setting.
|
||||
// - optionally pointSync true to guarantee points to line up.
|
||||
|
||||
// 2. Correct incorrect cyclic:
|
||||
// This will usually fail upon loading:
|
||||
// "face 0 area does not match neighbour 2 by 0.0100005%"
|
||||
// " -- possible face ordering problem."
|
||||
// - in polyMesh/boundary file:
|
||||
// - loosen matchTolerance of all cyclics to get case to load
|
||||
// - or change patch type from 'cyclic' to 'patch'
|
||||
// and regenerate cyclic as above
|
||||
|
||||
|
||||
// Do a synchronisation of coupled points after creation of any patches.
|
||||
// Note: this does not work with points that are on multiple coupled patches
|
||||
// with transformations (i.e. cyclics).
|
||||
pointSync false;
|
||||
|
||||
// Patches to create.
|
||||
patches
|
||||
(
|
||||
// none
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -23,9 +23,6 @@ solvers
|
||||
relTol 0;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration no;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
maxIter 50;
|
||||
}
|
||||
|
||||
|
||||
@ -5,10 +5,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0 > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
|
||||
@ -16,7 +16,7 @@ runApplication snappyHexMesh -overwrite
|
||||
runApplication renumberMesh -overwrite
|
||||
|
||||
# force removal of fields generated by snappy
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
# - generate face/cell sets and zones
|
||||
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
|
||||
|
||||
@ -54,8 +54,7 @@ maxCo 2;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "readFields"
|
||||
#include "Q"
|
||||
#includeFunc Q
|
||||
#include "surfaces"
|
||||
#include "forces"
|
||||
}
|
||||
|
||||
@ -8,24 +8,22 @@
|
||||
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
type forces;
|
||||
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
libs ("libforces.so");
|
||||
|
||||
outputControl timeStep;
|
||||
timeInterval 1;
|
||||
writeControl timeStep;
|
||||
timeInterval 1;
|
||||
|
||||
log yes;
|
||||
log yes;
|
||||
|
||||
patches ( "propeller.*" );
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
patches ("propeller.*");
|
||||
rho rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
|
||||
CofR (0 0 0); // Rotation around centre line of propeller
|
||||
pitchAxis (0 1 0);
|
||||
CofR (0 0 0); // Rotation around centre line of propeller
|
||||
pitchAxis (0 1 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -23,9 +23,6 @@ solvers
|
||||
relTol 0;
|
||||
smoother DICGaussSeidel;
|
||||
cacheAgglomeration no;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
maxIter 50;
|
||||
}
|
||||
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
// Make sure all fields for functionObjects are loaded. Prevents any
|
||||
// problems running with execFlowFunctionObjects.
|
||||
readFields
|
||||
{
|
||||
// Where to load it from (if not already in solver)
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
|
||||
type readFields;
|
||||
fields (p U k);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,8 +9,8 @@
|
||||
surfaces
|
||||
{
|
||||
type surfaces;
|
||||
functionObjectLibs ("libsampling.so");
|
||||
outputControl outputTime;
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
|
||||
surfaceFormat vtk;
|
||||
fields (p U Q);
|
||||
@ -25,8 +25,8 @@ surfaces
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 0 1);
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
|
||||
@ -10,6 +10,5 @@ flowVelocity (100 0 0);
|
||||
pressure 0;
|
||||
turbulentKE 37;
|
||||
turbulentOmega 32;
|
||||
#inputMode merge
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -37,7 +37,7 @@ sixDoFRigidBodyMotionCoeffs
|
||||
);
|
||||
angularMomentum (0 0 -2);
|
||||
g (0 -9.81 0);
|
||||
rhoName rhoInf;
|
||||
rho rhoInf;
|
||||
rhoInf 1;
|
||||
report on;
|
||||
|
||||
|
||||
@ -22,12 +22,6 @@ solvers
|
||||
tolerance 0.02;
|
||||
relTol 0;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
p
|
||||
@ -65,10 +59,6 @@ solvers
|
||||
tolerance 1e-5;
|
||||
relTol 0;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -10,6 +10,5 @@ flowVelocity (100 0 0);
|
||||
pressure 0;
|
||||
turbulentKE 37;
|
||||
turbulentOmega 32;
|
||||
#inputMode merge
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,13 +50,11 @@ functions
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
outputControl timeStep;
|
||||
outputInterval 10;
|
||||
libs ("libforces.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 10;
|
||||
patches (wing);
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf;
|
||||
rho rhoInf;
|
||||
log true;
|
||||
rhoInf 1;
|
||||
CofR (0.4974612746 -0.01671895744 0.125);
|
||||
|
||||
@ -22,12 +22,6 @@ solvers
|
||||
tolerance 1e-7;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration on;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
U
|
||||
|
||||
@ -23,18 +23,11 @@ boundaryField
|
||||
inlet
|
||||
{
|
||||
type uniformTotalPressure;
|
||||
pressure table
|
||||
p0 table
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
);
|
||||
p0 40; // only used for restarts
|
||||
U U;
|
||||
phi phi;
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
value uniform 40;
|
||||
}
|
||||
|
||||
outlet1
|
||||
|
||||
@ -54,7 +54,7 @@ functions
|
||||
probes
|
||||
{
|
||||
// Where to load it from
|
||||
functionObjectLibs ( "libsampling.so" );
|
||||
libs ("libsampling.so");
|
||||
|
||||
type probes;
|
||||
|
||||
@ -62,8 +62,8 @@ functions
|
||||
name probes;
|
||||
|
||||
// Write at same frequency as fields
|
||||
outputControl outputTime;
|
||||
outputInterval 1;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
// Fields to be probed
|
||||
fields
|
||||
|
||||
@ -23,10 +23,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0.01;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
@ -35,10 +31,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
"(U|k|epsilon)"
|
||||
|
||||
@ -25,8 +25,6 @@ boundaryField
|
||||
{
|
||||
type turbulentMixingLengthDissipationRateInlet;
|
||||
mixingLength 0.01;
|
||||
phi phi;
|
||||
k k;
|
||||
value uniform 200;
|
||||
}
|
||||
outlet1
|
||||
@ -24,17 +24,11 @@ boundaryField
|
||||
inlet
|
||||
{
|
||||
type uniformTotalPressure;
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
pressure table
|
||||
2
|
||||
p0 table
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
)
|
||||
;
|
||||
value uniform 40;
|
||||
);
|
||||
}
|
||||
outlet1
|
||||
{
|
||||
@ -54,7 +54,7 @@ functions
|
||||
probes
|
||||
{
|
||||
// Where to load it from
|
||||
functionObjectLibs ( "libsampling.so" );
|
||||
libs ("libsampling.so");
|
||||
|
||||
type probes;
|
||||
|
||||
@ -62,14 +62,11 @@ functions
|
||||
name probes;
|
||||
|
||||
// Write at same frequency as fields
|
||||
outputControl outputTime;
|
||||
outputInterval 1;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
// Fields to be probed
|
||||
fields
|
||||
(
|
||||
p U
|
||||
);
|
||||
fields (p U);
|
||||
|
||||
probeLocations
|
||||
(
|
||||
|
||||
@ -23,10 +23,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0.01;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
@ -35,10 +31,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
"(U|k|epsilon)"
|
||||
|
||||
@ -24,7 +24,7 @@ momentumSource
|
||||
{
|
||||
selectionMode all;
|
||||
|
||||
fieldNames (U);
|
||||
fields (U);
|
||||
Ubar (0.1335 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,9 +50,8 @@ functions
|
||||
fieldAverage1
|
||||
{
|
||||
type fieldAverage;
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
enabled true;
|
||||
outputControl outputTime;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl writeTime;
|
||||
|
||||
fields
|
||||
(
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 0;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -14,15 +14,13 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dictionaryReplacement
|
||||
mirrorMeshDict
|
||||
{
|
||||
mirrorMeshDict
|
||||
pointAndNormalDict
|
||||
{
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 -1 0);
|
||||
}
|
||||
point (0 0 0);
|
||||
normal (0 -1 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -14,15 +14,13 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dictionaryReplacement
|
||||
mirrorMeshDict
|
||||
{
|
||||
mirrorMeshDict
|
||||
pointAndNormalDict
|
||||
{
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (-1 0 0);
|
||||
}
|
||||
point (0 0 0);
|
||||
normal (-1 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -14,15 +14,13 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dictionaryReplacement
|
||||
mirrorMeshDict
|
||||
{
|
||||
mirrorMeshDict
|
||||
pointAndNormalDict
|
||||
{
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 -1 0);
|
||||
}
|
||||
point (0 0 0);
|
||||
normal (0 -1 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -23,10 +23,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0.01;
|
||||
smoother DICGaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -19,8 +19,8 @@ planeType pointAndNormal;
|
||||
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 -1 0);
|
||||
point (0 0 0);
|
||||
normal (0 -1 0);
|
||||
}
|
||||
|
||||
planeTolerance 1e-06;
|
||||
|
||||
@ -25,10 +25,6 @@ solvers
|
||||
|
||||
smoother DICGaussSeidel;
|
||||
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration on;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -49,7 +49,6 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "readFields"
|
||||
#include "cuttingPlane"
|
||||
#include "streamLines"
|
||||
#include "forceCoeffs"
|
||||
|
||||
@ -24,14 +24,9 @@ solvers
|
||||
relTol 0.05;
|
||||
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
|
||||
cacheAgglomeration true;
|
||||
|
||||
nCellsInCoarsestLevel 50;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -10,6 +10,5 @@ flowVelocity (20 0 0);
|
||||
pressure 0;
|
||||
turbulentKE 0.24;
|
||||
turbulentOmega 1.78;
|
||||
#inputMode merge
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/motorBike.obj.gz
|
||||
rm -f constant/triSurface/motorBike.obj.gz
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ runParallel snappyHexMesh -decomposeParDict system/decomposeParDict.ptscotch -pr
|
||||
|
||||
find . -type f -iname "*level*" -exec rm {} \;
|
||||
|
||||
#- set the initial fields
|
||||
#- Set the initial fields
|
||||
restore0Dir -processor
|
||||
|
||||
runParallel renumberMesh -overwrite
|
||||
|
||||
@ -49,18 +49,11 @@ runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
readFields
|
||||
{
|
||||
functionObjectLibs ( "libfieldFunctionObjects.so" );
|
||||
type readFields;
|
||||
fields (p U);
|
||||
}
|
||||
streamLines
|
||||
{
|
||||
type streamLine;
|
||||
outputControl outputTime;
|
||||
writeControl writeTime;
|
||||
setFormat vtk;
|
||||
UName U;
|
||||
trackForward true;
|
||||
fields (p U);
|
||||
lifeTime 10000;
|
||||
@ -79,10 +72,10 @@ functions
|
||||
cuttingPlane
|
||||
{
|
||||
type surfaces;
|
||||
functionObjectLibs ( "libsampling.so" );
|
||||
outputControl outputTime;
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
surfaceFormat vtk;
|
||||
fields ( p U );
|
||||
fields (p U);
|
||||
interpolationScheme cellPoint;
|
||||
surfaces
|
||||
(
|
||||
@ -92,8 +85,8 @@ functions
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 1 0);
|
||||
point (0 0 0);
|
||||
normal (0 1 0);
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
@ -102,13 +95,11 @@ functions
|
||||
forces
|
||||
{
|
||||
type forceCoeffs;
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
patches ( "motorBike.*" );
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf;
|
||||
libs ("libforces.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
patches ("motorBike.*");
|
||||
rho rhoInf;
|
||||
log true;
|
||||
rhoInf 1;
|
||||
liftDir (0 0 1);
|
||||
|
||||
@ -9,11 +9,11 @@
|
||||
cuttingPlane
|
||||
{
|
||||
type surfaces;
|
||||
functionObjectLibs ("libsampling.so");
|
||||
outputControl outputTime;
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
|
||||
surfaceFormat vtk;
|
||||
fields ( p U );
|
||||
fields (p U);
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
@ -25,8 +25,8 @@ cuttingPlane
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0 0 0);
|
||||
normalVector (0 1 0);
|
||||
point (0 0 0);
|
||||
normal (0 1 0);
|
||||
}
|
||||
interpolate true;
|
||||
}
|
||||
|
||||
@ -8,24 +8,22 @@
|
||||
|
||||
forces
|
||||
{
|
||||
type forceCoeffs;
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
type forceCoeffs;
|
||||
libs ("libforces.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
patches ( "motorBike.*" );
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
liftDir (0 0 1);
|
||||
dragDir (1 0 0);
|
||||
CofR (0.72 0 0); // Axle midpoint on ground
|
||||
pitchAxis (0 1 0);
|
||||
magUInf 20;
|
||||
lRef 1.42; // Wheelbase length
|
||||
Aref 0.75; // Estimated
|
||||
patches ("motorBike.*");
|
||||
rho rhoInf; // Indicates incompressible
|
||||
log true;
|
||||
rhoInf 1; // Redundant for incompressible
|
||||
liftDir (0 0 1);
|
||||
dragDir (1 0 0);
|
||||
CofR (0.72 0 0); // Axle midpoint on ground
|
||||
pitchAxis (0 1 0);
|
||||
magUInf 20;
|
||||
lRef 1.42; // Wheelbase length
|
||||
Aref 0.75; // Estimated
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 1e-07;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration on;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
// Make sure all fields for functionObjects are loaded. Prevents any
|
||||
// problems running with execFlowFunctionObjects.
|
||||
readFields
|
||||
{
|
||||
// Where to load it from (if not already in solver)
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
|
||||
type readFields;
|
||||
fields (p U);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -11,14 +11,11 @@ streamLines
|
||||
type streamLine;
|
||||
|
||||
// Output every
|
||||
outputControl outputTime;
|
||||
// outputInterval 10;
|
||||
writeControl writeTime;
|
||||
// writeInterval 10;
|
||||
|
||||
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot; //csv; //ensight;
|
||||
|
||||
// Velocity field to use for tracking.
|
||||
UName U;
|
||||
|
||||
// Tracked forwards (+U) or backwards (-U)
|
||||
trackForward true;
|
||||
|
||||
@ -34,8 +31,8 @@ streamLines
|
||||
// Cloud name to use
|
||||
cloudName particleTracks;
|
||||
|
||||
// Seeding method. See the sampleSets in sampleDict.
|
||||
seedSampleSet uniform; //cloud;//triSurfaceMeshPointSet;
|
||||
// Seeding method.
|
||||
seedSampleSet uniform; //cloud; //triSurfaceMeshPointSet;
|
||||
|
||||
uniformCoeffs
|
||||
{
|
||||
|
||||
52
tutorials/incompressible/pisoFoam/les/pitzDaily/0/s
Normal file
52
tutorials/incompressible/pisoFoam/les/pitzDaily/0/s
Normal file
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object s;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
upperWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -50,10 +50,9 @@ functions
|
||||
probes
|
||||
{
|
||||
type probes;
|
||||
functionObjectLibs ("libsampling.so");
|
||||
enabled true;
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
libs ("libsampling.so");
|
||||
writeControl timeStep;
|
||||
writeInterval 1;
|
||||
|
||||
fields
|
||||
(
|
||||
@ -76,9 +75,8 @@ functions
|
||||
fieldAverage1
|
||||
{
|
||||
type fieldAverage;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
enabled true;
|
||||
outputControl outputTime;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
writeControl writeTime;
|
||||
|
||||
fields
|
||||
(
|
||||
@ -105,9 +103,8 @@ functions
|
||||
type surfaces;
|
||||
|
||||
// Where to load it from (if not already in solver)
|
||||
functionObjectLibs ("libsampling.so");
|
||||
enabled true;
|
||||
outputControl outputTime;
|
||||
libs ("libsampling.so");
|
||||
writeControl writeTime;
|
||||
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
@ -131,6 +128,8 @@ functions
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#includeFunc scalarTransport
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -30,6 +30,7 @@ divSchemes
|
||||
default none;
|
||||
div(phi,U) Gauss LUST grad(U);
|
||||
div(phi,k) Gauss limitedLinear 1;
|
||||
div(phi,s) bounded Gauss limitedLinear 1;
|
||||
div((nuEff*dev2(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
|
||||
@ -23,12 +23,6 @@ solvers
|
||||
tolerance 1e-06;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration on;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pFinal
|
||||
@ -39,7 +33,7 @@ solvers
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"(U|k|B|nuTilda)"
|
||||
"(U|k|B|nuTilda|s)"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user