mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -37,7 +37,7 @@ writeFormat binary;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression false;
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user