The keyword 'select' is now used to specify the cell, face or point set
selection method consistently across all classes requiring this functionality.
'select' replaces the inconsistently named 'regionType' and 'selectionMode'
keywords used previously but backwards-compatibility is provided for user
convenience. All configuration files and tutorials have been updated.
Examples of 'select' from the tutorial cases:
functionObjects:
cellZoneAverage
{
type volFieldValue;
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
writeInterval 1;
fields (p);
select cellZone;
cellZone injection;
operation volAverage;
writeFields false;
}
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=aggregates,
select=cellZone,
cellZone=outlet,
functionType=numberDensity,
coordinateType=projectedAreaDiameter,
allCoordinates=yes,
normalise=yes,
logTransform=yes
)
fvModel:
cylinderHeat
{
type heatSource;
select all;
q 5e7;
}
fvConstraint:
momentumForce
{
type meanVelocityForce;
select all;
Ubar (0.1335 0 0);
}
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object dynamicMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
mover
|
|
{
|
|
type motionSolver;
|
|
|
|
libs ("libfvMeshMovers.so" "libfvMotionSolvers.so");
|
|
|
|
motionSolver solidBody;
|
|
|
|
solidBodyMotionFunction multiMotion;
|
|
|
|
select all;
|
|
|
|
// Table rotating in z axis
|
|
rotatingTable
|
|
{
|
|
solidBodyMotionFunction rotatingMotion;
|
|
rotatingMotionCoeffs
|
|
{
|
|
origin (0 0.1 0);
|
|
axis (0 0 1);
|
|
rpm 60;
|
|
}
|
|
}
|
|
|
|
// Tube rocking on rotating table
|
|
rotatingBox
|
|
{
|
|
solidBodyMotionFunction oscillatingRotatingMotion;
|
|
oscillatingRotatingMotionCoeffs
|
|
{
|
|
origin (0 0 0);
|
|
amplitude (45 0 0); // 45 degrees max tilt
|
|
omega 40; // rad/s
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|