mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated objects
- corrected Peclet number for compressible cases
- propagated log flag and resultName across objects
New function objects
- new fluxSummary:
- calculates positive, negative, absolute and net flux across face
zones
- new runTimeControl
- abort the calculation when a user-defined metric is achieved.
Available options include:
- average value remains unchanged wrt a given threshold
- equation initial residual exceeds a threshold - useful to abort
diverging cases
- equation max iterations exceeds a threshold - useful to abort
diverging cases
- min/max of a function object value
- min time step exceeds a threshold - useful to abort diverging
cases
- new valueAverage:
- average singular values from other function objects, e.g. Cd, Cl and
Cm from the forceCoeffs function object
152 lines
3.8 KiB
C++
152 lines
3.8 KiB
C++
/*--------------------------------*- 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 dictionary;
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application icoFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 0.5;
|
|
|
|
deltaT 0.005;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 20;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
functions
|
|
{
|
|
readFields
|
|
{
|
|
// Where to load it from (if not already in solver)
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
|
|
type readFields;
|
|
fields (p U k);
|
|
}
|
|
|
|
near
|
|
{
|
|
// Where to load it from
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
|
|
type nearWallFields;
|
|
|
|
// Output every
|
|
outputControl outputTime;
|
|
//outputInterval 1;
|
|
|
|
// Fields to be sampled. Per field original name and mapped field to
|
|
// create.
|
|
fields
|
|
(
|
|
(U UNear)
|
|
);
|
|
|
|
// Patches/groups to sample (regular expressions)
|
|
patches (motorBike);
|
|
|
|
// Distance to sample
|
|
distance 0.001;
|
|
}
|
|
streamLines
|
|
{
|
|
// Where to load it from (if not already in solver)
|
|
functionObjectLibs ("libfieldFunctionObjects.so");
|
|
type wallBoundedStreamLine;
|
|
|
|
// Output every
|
|
outputControl timeStep; //outputTime;
|
|
// outputInterval 10;
|
|
|
|
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
|
|
|
// Velocity field to use for tracking.
|
|
UName UNear;
|
|
|
|
// Interpolation method. Default is cellPoint. See sampleDict.
|
|
//interpolationScheme pointMVC;
|
|
|
|
// Tracked forwards (+U) or backwards (-U)
|
|
trackForward true;
|
|
|
|
interpolationScheme cellPoint;
|
|
|
|
// Names of fields to sample. Should contain above velocity field!
|
|
fields (p U k UNear);
|
|
|
|
// Steps particles can travel before being removed
|
|
lifeTime 100;
|
|
|
|
// Optional absolute length of steps (trackLength)
|
|
// Size of single track segment [m]
|
|
//trackLength 1e-3;
|
|
|
|
// Optional clipping
|
|
//bounds (0.2 -10 -10)(0.22 10 10);
|
|
|
|
// Cloud name to use
|
|
cloudName particleTracks;
|
|
|
|
// Seeding method. See the sampleSets in sampleDict.
|
|
seedSampleSet patchSeed; //cloud;//triSurfaceMeshPointSet;
|
|
|
|
uniformCoeffs
|
|
{
|
|
type uniform;
|
|
axis x; //distance;
|
|
|
|
start (0.0035 0.0999 0.0001);
|
|
end (0.0035 0.0999 0.0099);
|
|
nPoints 20;
|
|
}
|
|
|
|
cloudCoeffs
|
|
{
|
|
type cloud;
|
|
axis x; //distance;
|
|
points ((0.351516548679288 -0.0116085375585099 1.24));
|
|
}
|
|
patchSeedCoeffs
|
|
{
|
|
type patchSeed;//patchCloud; //cloud; //uniform;
|
|
patches (motorBike);
|
|
axis x; //distance;
|
|
maxPoints 20000;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|