mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tutorials: Updated formatting of dictionaries and specification of 'plane' and 'samplePlane'
This commit is contained in:
@ -26,8 +26,8 @@ cuttingPlane
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 0 1);
|
normal (0 0 1);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,12 +53,12 @@ functions
|
|||||||
{
|
{
|
||||||
probes
|
probes
|
||||||
{
|
{
|
||||||
libs ( "libsampling.so" );
|
libs ("libsampling.so");
|
||||||
type probes;
|
type probes;
|
||||||
name probes;
|
name probes;
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
fields ( p );
|
fields (p);
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
( -0.045 0 0 )
|
( -0.045 0 0 )
|
||||||
|
|||||||
@ -26,8 +26,8 @@ cuttingPlane
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 0 1);
|
normal (0 0 1);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ functions
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forceCoeffs;
|
type forceCoeffs;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
|
|
||||||
|
|||||||
@ -26,8 +26,8 @@ cuttingPlane
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 0 1);
|
normal (0 0 1);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,14 +10,14 @@ forces
|
|||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
|
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
|
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
timeInterval 1;
|
timeInterval 1;
|
||||||
|
|
||||||
log yes;
|
log yes;
|
||||||
|
|
||||||
patches ( "propeller.*" );
|
patches ("propeller.*");
|
||||||
rho rhoInf; // Indicates incompressible
|
rho rhoInf; // Indicates incompressible
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Redundant for incompressible
|
||||||
|
|||||||
@ -25,8 +25,8 @@ surfaces
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 0 1);
|
normal (0 0 1);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ functions
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 10;
|
writeInterval 10;
|
||||||
patches (wing);
|
patches (wing);
|
||||||
|
|||||||
@ -54,7 +54,7 @@ functions
|
|||||||
probes
|
probes
|
||||||
{
|
{
|
||||||
// Where to load it from
|
// Where to load it from
|
||||||
libs ( "libsampling.so" );
|
libs ("libsampling.so");
|
||||||
|
|
||||||
type probes;
|
type probes;
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ functions
|
|||||||
probes
|
probes
|
||||||
{
|
{
|
||||||
// Where to load it from
|
// Where to load it from
|
||||||
libs ( "libsampling.so" );
|
libs ("libsampling.so");
|
||||||
|
|
||||||
type probes;
|
type probes;
|
||||||
|
|
||||||
@ -66,10 +66,7 @@ functions
|
|||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
|
|
||||||
// Fields to be probed
|
// Fields to be probed
|
||||||
fields
|
fields (p U);
|
||||||
(
|
|
||||||
p U
|
|
||||||
);
|
|
||||||
|
|
||||||
probeLocations
|
probeLocations
|
||||||
(
|
(
|
||||||
|
|||||||
@ -18,8 +18,8 @@ mirrorMeshDict
|
|||||||
{
|
{
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 -1 0);
|
normal (0 -1 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@ mirrorMeshDict
|
|||||||
{
|
{
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (-1 0 0);
|
normal (-1 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@ mirrorMeshDict
|
|||||||
{
|
{
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 -1 0);
|
normal (0 -1 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,8 +19,8 @@ planeType pointAndNormal;
|
|||||||
|
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 -1 0);
|
normal (0 -1 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
planeTolerance 1e-06;
|
planeTolerance 1e-06;
|
||||||
|
|||||||
@ -72,10 +72,10 @@ functions
|
|||||||
cuttingPlane
|
cuttingPlane
|
||||||
{
|
{
|
||||||
type surfaces;
|
type surfaces;
|
||||||
libs ( "libsampling.so" );
|
libs ("libsampling.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
surfaceFormat vtk;
|
surfaceFormat vtk;
|
||||||
fields ( p U );
|
fields (p U);
|
||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
surfaces
|
surfaces
|
||||||
(
|
(
|
||||||
@ -85,8 +85,8 @@ functions
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 1 0);
|
normal (0 1 0);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
@ -95,10 +95,10 @@ functions
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forceCoeffs;
|
type forceCoeffs;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
patches ( "motorBike.*" );
|
patches ("motorBike.*");
|
||||||
rho rhoInf;
|
rho rhoInf;
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1;
|
rhoInf 1;
|
||||||
|
|||||||
@ -13,7 +13,7 @@ cuttingPlane
|
|||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
|
||||||
surfaceFormat vtk;
|
surfaceFormat vtk;
|
||||||
fields ( p U );
|
fields (p U);
|
||||||
|
|
||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
@ -25,8 +25,8 @@ cuttingPlane
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 1 0);
|
normal (0 1 0);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forceCoeffs;
|
type forceCoeffs;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
|
|
||||||
patches ( "motorBike.*" );
|
patches ("motorBike.*");
|
||||||
rho rhoInf; // Indicates incompressible
|
rho rhoInf; // Indicates incompressible
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1; // Redundant for incompressible
|
rhoInf 1; // Redundant for incompressible
|
||||||
|
|||||||
@ -25,8 +25,8 @@ cuttingPlane
|
|||||||
planeType pointAndNormal;
|
planeType pointAndNormal;
|
||||||
pointAndNormalDict
|
pointAndNormalDict
|
||||||
{
|
{
|
||||||
basePoint (0 0 0);
|
point (0 0 0);
|
||||||
normalVector (0 1 0);
|
normal (0 1 0);
|
||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ forceCoeffs1
|
|||||||
{
|
{
|
||||||
type forceCoeffs;
|
type forceCoeffs;
|
||||||
|
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
|
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
timeInterval 1;
|
timeInterval 1;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ opencfd_text.stl
|
|||||||
subsetFeatures
|
subsetFeatures
|
||||||
{
|
{
|
||||||
// Use a plane to select feature edges
|
// Use a plane to select feature edges
|
||||||
// (normal)(basePoint)
|
// (normal)(point)
|
||||||
// Keep only edges that intersect the plane will be included
|
// Keep only edges that intersect the plane will be included
|
||||||
plane (0 0 1)(0 0 0);
|
plane (0 0 1)(0 0 0);
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ opencfd_box.stl
|
|||||||
subsetFeatures
|
subsetFeatures
|
||||||
{
|
{
|
||||||
// Use a plane to select feature edges
|
// Use a plane to select feature edges
|
||||||
// (normal)(basePoint)
|
// (normal)(point)
|
||||||
// Keep only edges that intersect the plane will be included
|
// Keep only edges that intersect the plane will be included
|
||||||
plane (0 0 1)(0 0 0);
|
plane (0 0 1)(0 0 0);
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ jaggedBoundary.stl
|
|||||||
subsetFeatures
|
subsetFeatures
|
||||||
{
|
{
|
||||||
// Use a plane to select feature edges
|
// Use a plane to select feature edges
|
||||||
// (normal)(basePoint)
|
// (normal)(point)
|
||||||
// Keep only edges that intersect the plane will be included
|
// Keep only edges that intersect the plane will be included
|
||||||
plane (0 0 1)(-0.6 0.3 0.0);
|
plane (0 0 1)(-0.6 0.3 0.0);
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ unit_cube.stl
|
|||||||
subsetFeatures
|
subsetFeatures
|
||||||
{
|
{
|
||||||
// Use a plane to select feature edges
|
// Use a plane to select feature edges
|
||||||
// (normal)(basePoint)
|
// (normal)(point)
|
||||||
// Keep only edges that intersect the plane will be included
|
// Keep only edges that intersect the plane will be included
|
||||||
plane (0 0 1)(0 0 0);
|
plane (0 0 1)(0 0 0);
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
patches (hull);
|
patches (hull);
|
||||||
rhoInf 998.8;
|
rhoInf 998.8;
|
||||||
log on;
|
log on;
|
||||||
|
|||||||
@ -50,7 +50,7 @@ functions
|
|||||||
forces
|
forces
|
||||||
{
|
{
|
||||||
type forces;
|
type forces;
|
||||||
libs ( "libforces.so" );
|
libs ("libforces.so");
|
||||||
patches (hull);
|
patches (hull);
|
||||||
rhoInf 998.8;
|
rhoInf 998.8;
|
||||||
log on;
|
log on;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions0
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -56,7 +56,7 @@ functions
|
|||||||
fieldAverage1
|
fieldAverage1
|
||||||
{
|
{
|
||||||
type fieldAverage;
|
type fieldAverage;
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
libs ("libfieldFunctionObjects.so");
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user