mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
In most boundary conditions, fvOptions etc. required and optional fields
to be looked-up from the objectRegistry are selected by setting the
keyword corresponding to the standard field name in the BC etc. to the
appropriate name in the objectRegistry. Usually a default is provided
with sets the field name to the keyword name, e.g. in the
totalPressureFvPatchScalarField the velocity is selected by setting the
keyword 'U' to the appropriate name which defaults to 'U':
Property | Description | Required | Default value
U | velocity field name | no | U
phi | flux field name | no | phi
.
.
.
However, in some BCs and functionObjects and many fvOptions another
convention is used in which the field name keyword is appended by 'Name'
e.g.
Property | Description | Required | Default value
pName | pressure field name | no | p
UName | velocity field name | no | U
This difference in convention is unnecessary and confusing, hinders code
and dictionary reuse and complicates code maintenance. In this commit
the appended 'Name' is removed from the field selection keywords
standardizing OpenFOAM on the first convention above.
94 lines
2.3 KiB
C++
94 lines
2.3 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;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application simpleFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 1000;
|
|
|
|
deltaT 1;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 50;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
functions
|
|
{
|
|
streamLines
|
|
{
|
|
type streamLine;
|
|
|
|
// Where to load it from (if not already in solver)
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
// Output every
|
|
writeControl writeTime;
|
|
// writeInterval 10;
|
|
|
|
setFormat vtk; //gnuplot;//xmgr;//raw;//jplot;//csv;//ensight;
|
|
|
|
// Tracked forwards (+U) or backwards (-U)
|
|
trackForward true;
|
|
|
|
// Names of fields to sample. Should contain above velocity field!
|
|
fields (p k U);
|
|
|
|
// Steps particles can travel before being removed
|
|
lifeTime 10000;
|
|
|
|
// Number of steps per cell (estimate). Set to 1 to disable subcycling.
|
|
nSubCycle 5;
|
|
|
|
// Cloud name to use
|
|
cloudName particleTracks;
|
|
|
|
// Seeding method. See the sampleSets in sampleDict.
|
|
seedSampleSet uniform; //cloud;//triSurfaceMeshPointSet;
|
|
|
|
uniformCoeffs
|
|
{
|
|
type uniform;
|
|
axis x; //distance;
|
|
|
|
start (-0.0205 0.001 0.00001);
|
|
end (-0.0205 0.0251 0.00001);
|
|
nPoints 10;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|