mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: update tutorials to use dictionary-style sets
- can now specify sampled sets as dictionary entries instead of a list
entry.
can now use: sets { ... }
instead of: sets ( ... );
This is similar to sampled surfaces and makes it easier to
manage with dictionary manipulation tools.
TUT: update to use writeTime instead of outputTime
This commit is contained in:
@ -50,8 +50,8 @@ functions
|
||||
{
|
||||
type forces;
|
||||
libs (forces);
|
||||
outputControl timeStep;
|
||||
outputInterval 10;
|
||||
writeControl timeStep;
|
||||
writeInterval 10;
|
||||
patches (wing);
|
||||
pName p;
|
||||
UName U;
|
||||
|
||||
@ -118,7 +118,7 @@ functions
|
||||
);
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
xbyh0.05
|
||||
{
|
||||
type face;
|
||||
@ -189,7 +189,7 @@ functions
|
||||
start (0.224 0 0.063);
|
||||
end (0.224 1 0.063);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ fields
|
||||
);
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
inletPatch
|
||||
{
|
||||
type face;
|
||||
@ -208,7 +208,7 @@ sets
|
||||
end (37.7 2.0 1.57);
|
||||
nPoints 200;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -4,6 +4,7 @@ type sets;
|
||||
libs (sampling);
|
||||
interpolationScheme cellPatchConstrained;
|
||||
setFormat raw;
|
||||
|
||||
fields ( CfMean );
|
||||
|
||||
_planes
|
||||
@ -17,7 +18,7 @@ _planes
|
||||
}
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
// Intersections of patches with plane
|
||||
planeAA
|
||||
{
|
||||
@ -28,7 +29,7 @@ sets
|
||||
normal ( 0 0 1 );
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -23,7 +23,7 @@ setFormat raw;
|
||||
fields ( U UMean );
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
xm10
|
||||
{
|
||||
type face;
|
||||
@ -115,7 +115,7 @@ sets
|
||||
start (8.5 4.5 0);
|
||||
end (8.5 4.5 2);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -85,7 +85,7 @@ functions
|
||||
libs (solverFunctionObjects);
|
||||
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
field s;
|
||||
|
||||
@ -56,7 +56,7 @@ functions
|
||||
libs (solverFunctionObjects);
|
||||
|
||||
enabled true;
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
field T;
|
||||
|
||||
@ -15,6 +15,8 @@ interpolationScheme cellPoint;
|
||||
|
||||
setFormat raw;
|
||||
|
||||
fields (U);
|
||||
|
||||
setConfig
|
||||
{
|
||||
type midPoint; // midPoint
|
||||
@ -22,7 +24,7 @@ setConfig
|
||||
}
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
lineA
|
||||
{
|
||||
$setConfig;
|
||||
@ -43,8 +45,7 @@ sets
|
||||
start (-0.032 0 0);
|
||||
end (-0.032 0.0128 0);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
fields (U);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -17,14 +17,14 @@ setConfig
|
||||
}
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
line
|
||||
{
|
||||
$setConfig;
|
||||
start (0 0 0);
|
||||
end (0 1 0);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
type sets;
|
||||
libs (sampling);
|
||||
|
||||
@ -7,8 +9,10 @@ interpolationScheme cellPoint;
|
||||
|
||||
setFormat raw;
|
||||
|
||||
fields (p U turbulenceProperties:devReff);
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
Uref
|
||||
{
|
||||
type cloud;
|
||||
@ -56,6 +60,7 @@ sets
|
||||
end (0.127 0.1016 0);
|
||||
nPoints 100;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
fields (p U turbulenceProperties:devReff);
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -15,7 +15,7 @@ sample1
|
||||
fields ( p );
|
||||
|
||||
sets
|
||||
(
|
||||
{
|
||||
cloud
|
||||
{
|
||||
type cloud;
|
||||
@ -29,7 +29,7 @@ sample1
|
||||
(1 1.0 0.05)
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
average1
|
||||
|
||||
Reference in New Issue
Block a user