Commit 30b4eda7 authored by Mark Olesen's avatar Mark Olesen
Browse files

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
parent 1c9f93e1
......@@ -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
......
......@@ -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.
\*---------------------------------------------------------------------------*/
......@@ -37,7 +37,7 @@ writeFormat binary;
writePrecision 6;
writeCompression false;
writeCompression off;
timeFormat general;
......
/*---------------------------------------------------------------------------*\
/*--------------------------------*- 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();
......
......@@ -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
(
......
......@@ -20,8 +20,8 @@ functions
createVortex
{
type coded;
functionObjectLibs ("libutilityFunctionObjects.so");
redirectType createVortices;
libs ("libutilityFunctionObjects.so");
name createVortices;
enabled yes;
codeInclude
......
......@@ -30,7 +30,7 @@ boundaryField
{
type inletOutlet;
value $internalField;
inletValue $internalField;;
inletValue $internalField;
}
".*"
......
......@@ -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;
......
......@@ -49,7 +49,7 @@ functions
forces
{
type forces;
functionObjectLibs ( "libforces.so" );
libs ( "libforces.so" );
outputControl timeStep;
outputInterval 10;
patches (wing);
......
......@@ -24,7 +24,7 @@ boundaryField
inlet
{
type codedFixedValue;
type codedFixedValue;
name swirl;
code
......
......@@ -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;
......
......@@ -37,7 +37,7 @@ writeFormat binary;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
......
......@@ -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);
#};
......
......@@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 10;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
......
......@@ -59,7 +59,7 @@ functions
line
{
type sets;
functionObjectLibs ("libsampling.so");
libs ("libsampling.so");
enabled true;
writeControl writeTime;
......
......@@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
......
......@@ -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
......
......@@ -50,7 +50,7 @@ functions
sample1
{
type sets;
functionObjectLibs ("libsampling.so");
libs ("libsampling.so");
writeControl onEnd;
setFormat raw;
sets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment