TUT: update some old keywords found in tutorials

- functionObjectLibs -> libs
- redirectType -> name
- change deprecated writeCompression flags types to Switch.

- cleanup some trailing ';;' from some dictionaries
This commit is contained in:
Mark Olesen
2018-06-26 14:18:52 +02:00
parent 1c9f93e173
commit 30b4eda7a4
18 changed files with 32 additions and 37 deletions

View File

@ -18,25 +18,22 @@ functions
{
processorField
{
// Type of functionObject
type processorField;
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
// Function object enabled flag
enabled true;
// When to output the average fields
writeControl writeTime;
}
cellID
{
// Load the library containing the 'coded' functionObject
functionObjectLibs ("libutilityFunctionObjects.so");
type coded;
// Name of on-the-fly generated functionObject
redirectType cellID;
libs ("libutilityFunctionObjects.so");
name cellID;
codeExecute
#{
volScalarField cellID

View File

@ -91,7 +91,7 @@ typically used as the name of the output directory for any derived data. The
\c type entry defines the type of function object properties that follow.
Since the function objects are packaged into separate libraries, the user must
tell the code where to find the function object implementation, identified
using the \c functionObjectLibs entry.
using the \c libs entry.
\*---------------------------------------------------------------------------*/

View File

@ -37,7 +37,7 @@ writeFormat binary;
writePrecision 6;
writeCompression false;
writeCompression off;
timeFormat general;

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
@ -29,7 +29,7 @@ boundaryField
cylinder
{
type codedFixedValue;
redirectType pointDisplacementy_cylinder;
name pointDisplacementy_cylinder;
code
#{
const scalar t = this->db().time().value();

View File

@ -37,7 +37,7 @@ writeFormat binary;
writePrecision 10;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
@ -51,7 +51,7 @@ functions
{
type probes;
functionObjectLibs ("libsampling.so");
libs ("libsampling.so");
probeLocations
(

View File

@ -20,8 +20,8 @@ functions
createVortex
{
type coded;
functionObjectLibs ("libutilityFunctionObjects.so");
redirectType createVortices;
libs ("libutilityFunctionObjects.so");
name createVortices;
enabled yes;
codeInclude

View File

@ -30,7 +30,7 @@ boundaryField
{
type inletOutlet;
value $internalField;
inletValue $internalField;;
inletValue $internalField;
}
".*"

View File

@ -29,10 +29,10 @@ divSchemes
{
default none;
div(phi,U) Gauss limitedLinearV 1;
div(phi,k) Gauss limitedLinear 1;;
div(phi,epsilon) Gauss limitedLinear 1;;
div(phi,R) Gauss limitedLinear 1;;
div(R) Gauss limitedLinear 1;;
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
div(phi,R) Gauss limitedLinear 1;
div(R) Gauss limitedLinear 1;
div(phi,omega) Gauss limitedLinear 1;
div(phid,p) Gauss limitedLinear 1;
div(phi,K) Gauss limitedLinear 1;

View File

@ -49,7 +49,7 @@ functions
forces
{
type forces;
functionObjectLibs ( "libforces.so" );
libs ( "libforces.so" );
outputControl timeStep;
outputInterval 10;
patches (wing);

View File

@ -24,7 +24,7 @@ boundaryField
inlet
{
type codedFixedValue;
type codedFixedValue;
name swirl;
code

View File

@ -29,10 +29,10 @@ divSchemes
{
default none;
div(phi,U) Gauss limitedLinearV 1;
div(phi,k) Gauss limitedLinear 1;;
div(phi,epsilon) Gauss limitedLinear 1;;
div(phi,R) Gauss limitedLinear 1;;
div(R) Gauss limitedLinear 1;;
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
div(phi,R) Gauss limitedLinear 1;
div(R) Gauss limitedLinear 1;
div(phi,omega) Gauss limitedLinear 1;
div(phid,p) Gauss limitedLinear 1;
div(phi,K) Gauss limitedLinear 1;

View File

@ -37,7 +37,7 @@ writeFormat binary;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;

View File

@ -68,9 +68,7 @@ code
const scalar maxRotAngle =
constant::mathematical::pi*Foam::sin(degToRad(90.0/10.0*tm.value()));
tmp<pointField> tnewPoints(twistColumn(maxRotAngle, p0));
return tnewPoints;
return twistColumn(maxRotAngle, p0);
#};

View File

@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
writeCompression off;
timeFormat general;

View File

@ -59,7 +59,7 @@ functions
line
{
type sets;
functionObjectLibs ("libsampling.so");
libs ("libsampling.so");
enabled true;
writeControl writeTime;

View File

@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;

View File

@ -56,7 +56,7 @@ functions
timeStepping
{
type setTimeStep;
functionObjectLibs ("libutilityFunctionObjects.so");
libs ("libutilityFunctionObjects.so");
enabled yes;
deltaT tableFile;
file "system/deltaTvalues";
@ -65,7 +65,7 @@ functions
minMaxp
{
type fieldMinMax;
functionObjectLibs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
fields
(
p

View File

@ -50,7 +50,7 @@ functions
sample1
{
type sets;
functionObjectLibs ("libsampling.so");
libs ("libsampling.so");
writeControl onEnd;
setFormat raw;
sets