tutorials: Updated formatting of dictionaries and specification of 'plane' and 'samplePlane'

This commit is contained in:
Henry Weller
2016-06-29 18:02:57 +01:00
parent a158c30710
commit 6d330d3d12
62 changed files with 155 additions and 158 deletions

View File

@ -50,7 +50,7 @@ functions
error
{
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
libs ("libutilityFunctionObjects.so");
type coded;

View File

@ -56,7 +56,7 @@ functions
timeStep
{
type coded;
libs ("libutilityFunctionObjects.so");
libs ("libutilityFunctionObjects.so");
name setDeltaT;
code

View File

@ -9,7 +9,7 @@
cuttingPlane
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
@ -26,8 +26,8 @@ cuttingPlane
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 0 1);
point (0 0 0);
normal (0 0 1);
}
interpolate true;
}

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPointFace;

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPointFace;

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPoint;

View File

@ -53,12 +53,12 @@ functions
{
probes
{
libs ( "libsampling.so" );
type probes;
name probes;
writeControl timeStep;
writeInterval 1;
fields ( p );
libs ("libsampling.so");
type probes;
name probes;
writeControl timeStep;
writeInterval 1;
fields (p);
probeLocations
(
( -0.045 0 0 )

View File

@ -9,7 +9,7 @@
cuttingPlane
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
@ -26,8 +26,8 @@ cuttingPlane
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 0 1);
point (0 0 0);
normal (0 0 1);
}
interpolate true;
}

View File

@ -47,7 +47,7 @@ runTimeModifiable true;
functions
{
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
Ma
{

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPoint;

View File

@ -50,9 +50,9 @@ functions
forces
{
type forceCoeffs;
libs ( "libforces.so" );
writeControl timeStep;
writeInterval 1;
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;
patches
(

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPoint;

View File

@ -17,7 +17,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type sets;
libs ("libsampling.so");
libs ("libsampling.so");
interpolationScheme cellPointFace;

View File

@ -44,6 +44,6 @@ timePrecision 6;
runTimeModifiable true;
libs ("libthermalBaffleModels.so");
libs ("libthermalBaffleModels.so");
// ************************************************************************* //

View File

@ -9,7 +9,7 @@
cuttingPlane
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
@ -26,8 +26,8 @@ cuttingPlane
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 0 1);
point (0 0 0);
normal (0 0 1);
}
interpolate true;
}

View File

@ -8,22 +8,22 @@
forces
{
type forces;
type forces;
libs ( "libforces.so" );
libs ("libforces.so");
writeControl timeStep;
timeInterval 1;
writeControl timeStep;
timeInterval 1;
log yes;
log yes;
patches ( "propeller.*" );
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
patches ("propeller.*");
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
CofR (0 0 0); // Rotation around centre line of propeller
pitchAxis (0 1 0);
CofR (0 0 0); // Rotation around centre line of propeller
pitchAxis (0 1 0);
}

View File

@ -9,7 +9,7 @@
surfaces
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat vtk;
@ -25,8 +25,8 @@ surfaces
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 0 1);
point (0 0 0);
normal (0 0 1);
}
interpolate true;
}

View File

@ -50,7 +50,7 @@ functions
forces
{
type forces;
libs ( "libforces.so" );
libs ("libforces.so");
writeControl timeStep;
writeInterval 10;
patches (wing);

View File

@ -54,7 +54,7 @@ functions
probes
{
// Where to load it from
libs ( "libsampling.so" );
libs ("libsampling.so");
type probes;
@ -63,7 +63,7 @@ functions
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
writeInterval 1;
// Fields to be probed
fields

View File

@ -54,7 +54,7 @@ functions
probes
{
// Where to load it from
libs ( "libsampling.so" );
libs ("libsampling.so");
type probes;
@ -63,13 +63,10 @@ functions
// Write at same frequency as fields
writeControl writeTime;
writeInterval 1;
writeInterval 1;
// Fields to be probed
fields
(
p U
);
fields (p U);
probeLocations
(

View File

@ -18,8 +18,8 @@ mirrorMeshDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 -1 0);
point (0 0 0);
normal (0 -1 0);
}
}

View File

@ -18,8 +18,8 @@ mirrorMeshDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (-1 0 0);
point (0 0 0);
normal (-1 0 0);
}
}

View File

@ -18,8 +18,8 @@ mirrorMeshDict
{
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 -1 0);
point (0 0 0);
normal (0 -1 0);
}
}

View File

@ -19,8 +19,8 @@ planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 -1 0);
point (0 0 0);
normal (0 -1 0);
}
planeTolerance 1e-06;

View File

@ -72,10 +72,10 @@ functions
cuttingPlane
{
type surfaces;
libs ( "libsampling.so" );
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat vtk;
fields ( p U );
fields (p U);
interpolationScheme cellPoint;
surfaces
(
@ -85,8 +85,8 @@ functions
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 1 0);
point (0 0 0);
normal (0 1 0);
}
interpolate true;
}
@ -95,10 +95,10 @@ functions
forces
{
type forceCoeffs;
libs ( "libforces.so" );
writeControl timeStep;
writeInterval 1;
patches ( "motorBike.*" );
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;
patches ("motorBike.*");
rho rhoInf;
log true;
rhoInf 1;

View File

@ -9,11 +9,11 @@
cuttingPlane
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat vtk;
fields ( p U );
fields (p U);
interpolationScheme cellPoint;
@ -25,8 +25,8 @@ cuttingPlane
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 1 0);
point (0 0 0);
normal (0 1 0);
}
interpolate true;
}

View File

@ -8,22 +8,22 @@
forces
{
type forceCoeffs;
libs ( "libforces.so" );
writeControl timeStep;
writeInterval 1;
type forceCoeffs;
libs ("libforces.so");
writeControl timeStep;
writeInterval 1;
patches ( "motorBike.*" );
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (0.72 0 0); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 20;
lRef 1.42; // Wheelbase length
Aref 0.75; // Estimated
patches ("motorBike.*");
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (0.72 0 0); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 20;
lRef 1.42; // Wheelbase length
Aref 0.75; // Estimated
}

View File

@ -9,7 +9,7 @@
cuttingPlane
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat vtk;
@ -25,8 +25,8 @@ cuttingPlane
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 1 0);
point (0 0 0);
normal (0 1 0);
}
interpolate true;
}

View File

@ -8,25 +8,25 @@
forceCoeffs1
{
type forceCoeffs;
type forceCoeffs;
libs ( "libforces.so" );
libs ("libforces.so");
writeControl timeStep;
writeControl timeStep;
timeInterval 1;
log yes;
log yes;
patches (motorBikeGroup);
rho rhoInf; // Indicates incompressible
rhoInf 1; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (0.72 0 0); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 20;
lRef 1.42; // Wheelbase length
Aref 0.75; // Estimated
patches (motorBikeGroup);
rho rhoInf; // Indicates incompressible
rhoInf 1; // Redundant for incompressible
liftDir (0 0 1);
dragDir (1 0 0);
CofR (0.72 0 0); // Axle midpoint on ground
pitchAxis (0 1 0);
magUInf 20;
lRef 1.42; // Wheelbase length
Aref 0.75; // Estimated
/*
binData
{

View File

@ -9,7 +9,7 @@
streamLines
{
// Where to load it from
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
type streamLine;

View File

@ -10,7 +10,7 @@
near
{
// Where to load it from
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
type nearWallFields;
@ -39,7 +39,7 @@ near
wallBoundedStreamLines
{
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
type wallBoundedStreamLine;
// Output every

View File

@ -52,7 +52,7 @@ functions
type streamLine;
// Where to load it from (if not already in solver)
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
// Output every
writeControl writeTime;

View File

@ -51,7 +51,7 @@ functions
surfaceRegion1
{
type surfaceRegion;
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
enabled yes;
writeControl writeTime;
log yes;

View File

@ -52,7 +52,7 @@ timePrecision 6;
runTimeModifiable yes;
libs ("libdistributed.so");
libs ("libdistributed.so");
// ************************************************************************* //

View File

@ -30,7 +30,7 @@ opencfd_text.stl
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// (normal)(point)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);
@ -65,7 +65,7 @@ opencfd_box.stl
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// (normal)(point)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);

View File

@ -30,7 +30,7 @@ jaggedBoundary.stl
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// (normal)(point)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(-0.6 0.3 0.0);

View File

@ -30,7 +30,7 @@ unit_cube.stl
subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// (normal)(point)
// Keep only edges that intersect the plane will be included
plane (0 0 1)(0 0 0);

View File

@ -57,7 +57,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
probeLocations
(
@ -74,7 +74,7 @@ functions
wallPressure
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat raw;
fields

View File

@ -55,14 +55,14 @@ functions
{
forces
{
type forces;
libs ( "libforces.so" );
patches (hull);
rhoInf 998.8;
log on;
writeControl timeStep;
writeInterval 1;
CofR (2.929541 0 0.2);
type forces;
libs ("libforces.so");
patches (hull);
rhoInf 998.8;
log on;
writeControl timeStep;
writeInterval 1;
CofR (2.929541 0 0.2);
}
}

View File

@ -57,7 +57,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
probeLocations
(
@ -74,7 +74,7 @@ functions
wallPressure
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat raw;
fields

View File

@ -56,7 +56,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
probeLocations
(
@ -73,7 +73,7 @@ functions
wallPressure
{
type surfaces;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl writeTime;
surfaceFormat raw;
fields

View File

@ -56,7 +56,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl timeStep;
writeInterval 1;
probeLocations

View File

@ -56,7 +56,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl timeStep;
writeInterval 1;
probeLocations

View File

@ -56,7 +56,7 @@ functions
probes
{
type probes;
libs ("libsampling.so");
libs ("libsampling.so");
writeControl timeStep;
writeInterval 1;
probeLocations

View File

@ -49,14 +49,14 @@ functions
{
forces
{
type forces;
libs ( "libforces.so" );
patches (hull);
rhoInf 998.8;
log on;
writeControl timeStep;
writeInterval 1;
CofR (2.929541 0 0.2);
type forces;
libs ("libforces.so");
patches (hull);
rhoInf 998.8;
log on;
writeControl timeStep;
writeInterval 1;
CofR (2.929541 0 0.2);
}
}

View File

@ -56,7 +56,7 @@ functions
inletFlux
{
type surfaceRegion;
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
log true;
// Output field values as well

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
forces
{
type forces;
libs ("libforces.so");
libs ("libforces.so");
writeControl writeTime;
patches (floatingObject);
rho rhoInf;
@ -68,7 +68,7 @@ functions
poolHeight
{
type surfaceRegion;
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
log yes;

View File

@ -56,7 +56,7 @@ functions0
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -9,7 +9,7 @@
inletMassFlowRate
{
type surfaceRegion;
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
fields
(
@ -32,7 +32,7 @@ inletMassFlowRate
outletMassFlowRate
{
type surfaceRegion;
libs ("libfieldFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
fields
(
@ -55,7 +55,7 @@ outletMassFlowRate
totalMass
{
type coded;
libs ("libutilityFunctionObjects.so");
libs ("libutilityFunctionObjects.so");
name error;
code

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(

View File

@ -56,7 +56,7 @@ functions
fieldAverage1
{
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
fields
(