Updated rpm entries to omega with an [rpm] unit specification
This is a more convenient, consistent and flexible approach to specifying rotational speed.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration | Website: https://openfoam.org
|
||||
# \\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2022-2024 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -50,7 +50,7 @@ SRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
Additionally the new 'MRFnoSlip' velocity boundary condition should be applied to the
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration | Website: https://openfoam.org
|
||||
# \\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2022-2024 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -50,7 +50,7 @@ SRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
Additionally the new 'MRFnoSlip' velocity boundary condition should be applied to the
|
||||
|
||||
@ -81,7 +81,7 @@ class MRFZone
|
||||
//- Axis vector
|
||||
vector axis_;
|
||||
|
||||
//- Angular velocity (rad/sec or rpm)
|
||||
//- Angular velocity
|
||||
Function1s::omega omega_;
|
||||
|
||||
|
||||
|
||||
@ -37,8 +37,7 @@ Usage
|
||||
tangentialVelocity | tangential velocity field | no |
|
||||
origin | origin of rotation in Cartesian co-ordinates | yes|
|
||||
axis | axis of rotation | yes |
|
||||
omega | angular velocity of the frame [rad/s] | no |
|
||||
rpm | angular velocity of the frame [rpm] | no |
|
||||
omega | angular velocity of the frame | no |
|
||||
\endtable
|
||||
|
||||
Example of the boundary condition specification:
|
||||
@ -50,11 +49,11 @@ Usage
|
||||
tangentialVelocity uniform (0 0 0);
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
rpm 100;
|
||||
omega 100 [rpm];
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
The \c omega or \c rpm entries are Function1 of time, see Foam::Function1s.
|
||||
The \c omega entry is a Function1 of time, see Foam::Function1s.
|
||||
|
||||
Note:
|
||||
Sign conventions:
|
||||
@ -100,7 +99,7 @@ class rotatingPressureInletOutletVelocityFvPatchVectorField
|
||||
//- Axis of the rotation
|
||||
vector axis_;
|
||||
|
||||
//- Angular velocity of the frame (rad/sec)
|
||||
//- Angular velocity of the frame
|
||||
Function1s::omega omega_;
|
||||
|
||||
|
||||
|
||||
@ -39,8 +39,7 @@ Usage
|
||||
p0 | static pressure reference | yes |
|
||||
origin | origin of rotation in Cartesian co-ordinates | yes|
|
||||
axis | axis of rotation | yes |
|
||||
omega | angular velocity of the frame [rad/s] | no |
|
||||
rpm | angular velocity of the frame [rpm] | no |
|
||||
omega | angular velocity of the frame | no |
|
||||
\endtable
|
||||
|
||||
Example of the boundary condition specification:
|
||||
@ -56,11 +55,11 @@ Usage
|
||||
p0 uniform 1e5;
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
rpm 100;
|
||||
omega 100 [rpm];
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
The \c omega or \c rpm entries are Function1 of time, see Foam::Function1s.
|
||||
The \c omega entry is a Function1 of time, see Foam::Function1s.
|
||||
|
||||
See also
|
||||
Foam::totalPressureFvPatchScalarField
|
||||
@ -98,7 +97,7 @@ class rotatingTotalPressureFvPatchScalarField
|
||||
//- Axis of the rotation
|
||||
vector axis_;
|
||||
|
||||
//- Angular velocity of the frame (rad/sec)
|
||||
//- Angular velocity of the frame
|
||||
Function1s::omega omega_;
|
||||
|
||||
|
||||
|
||||
@ -35,8 +35,7 @@ Usage
|
||||
Property | Description | Required | Default value
|
||||
origin | origin of rotation in Cartesian co-ordinates | yes|
|
||||
axis | axis of rotation | yes |
|
||||
omega | angular velocity of the frame [rad/s] | no |
|
||||
rpm | angular velocity of the frame [rpm] | no |
|
||||
omega | angular velocity of the frame | no |
|
||||
\endtable
|
||||
|
||||
Example of the boundary condition specification:
|
||||
@ -46,11 +45,11 @@ Usage
|
||||
type rotatingWallVelocity;
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
rpm 100;
|
||||
omega 100 [rpm];
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
The \c omega or \c rpm entries are Function1 of time, see Foam::Function1s.
|
||||
The \c omega entry is a Function1 of time, see Foam::Function1s.
|
||||
|
||||
See also
|
||||
Foam::fixedValueFvPatchField
|
||||
|
||||
@ -50,8 +50,7 @@ Usage
|
||||
rho | Density field name | no | rho
|
||||
rhoInlet | Inlet density | no |
|
||||
radialVelocity | Radial velocity [m/s] | yes |
|
||||
omega | Angular velocity of the frame [rad/s] | no |
|
||||
rpm | Angular velocity of the frame [rpm] | no |
|
||||
omega | Angular velocity of the frame | no |
|
||||
tangentialVelocity | Tangential velocity [m/s] | no |
|
||||
\endtable
|
||||
|
||||
@ -64,14 +63,14 @@ Usage
|
||||
axis (0 0 1);
|
||||
volumetricFlowRate constant 0.2;
|
||||
radialVelocity constant 10;
|
||||
rpm constant 100;
|
||||
omega constant 100 [rpm];
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
The \c volumetricFlowRate or \c massFlowRate and the \omega or \c rpm
|
||||
entries are \c Function1 of time, see Foam::Function1s. The \c
|
||||
radialVelocity and \c tangentialVelocity entries are \c Function2 of time
|
||||
and radius, see Foam::Function2s.
|
||||
The \c volumetricFlowRate or \c massFlowRate and the \omega entries are
|
||||
\c Function1 of time, see Foam::Function1s. The \c radialVelocity and
|
||||
\c tangentialVelocity entries are \c Function2 of time and radius,
|
||||
see Foam::Function2s.
|
||||
|
||||
Note:
|
||||
- \c rhoInlet is required for the case of a mass flow rate, where the
|
||||
|
||||
@ -36,8 +36,7 @@ Usage
|
||||
axis | Axis of rotation | no | patch normal
|
||||
axialVelocity| Axial velocity [m/s] | yes |
|
||||
radialVelocity | Radial velocity [m/s] | yes |
|
||||
omega | Angular velocity of the frame [rad/s] | no |
|
||||
rpm | Angular velocity of the frame [rpm] | no |
|
||||
omega | Angular velocity of the frame | no |
|
||||
tangentialVelocity | Tangential velocity [m/s] | no |
|
||||
\endtable
|
||||
|
||||
@ -56,7 +55,7 @@ Usage
|
||||
|
||||
The \c axialVelocity, \c radialVelocity and \c tangentialVelocity
|
||||
entries are Function2 of time and radius, see see Foam::Function2s. The \c
|
||||
omega or \rpm is a Function1 of time, see Foam::Function1s.
|
||||
omega is a Function1 of time, see Foam::Function1s.
|
||||
|
||||
See also
|
||||
Foam::fixedValueFvPatchField
|
||||
@ -101,7 +100,7 @@ class swirlInletVelocityFvPatchVectorField
|
||||
//- Radial velocity
|
||||
autoPtr<Function2<scalar>> radialVelocity_;
|
||||
|
||||
//- Angular velocity of the frame (rad/sec)
|
||||
//- Angular velocity of the frame
|
||||
autoPtr<Function1s::omega> omega_;
|
||||
|
||||
//- Tangential velocity
|
||||
|
||||
@ -26,7 +26,7 @@ mixerFvMeshCoeffs
|
||||
direction (1 0 0);
|
||||
}
|
||||
|
||||
rpm 10;
|
||||
omega 10 [rpm];
|
||||
|
||||
slider
|
||||
{
|
||||
|
||||
@ -65,7 +65,7 @@ class rotatingMotion
|
||||
//- Axis vector
|
||||
const vector axis_;
|
||||
|
||||
//- Angular velocity (rad/sec)
|
||||
//- Angular velocity
|
||||
autoPtr<Function1s::omega> omega_;
|
||||
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ maxDeltaT 1;
|
||||
userTime
|
||||
{
|
||||
type engine;
|
||||
rpm 1500;
|
||||
omega 1500 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -25,7 +25,7 @@ boundaryField
|
||||
type rotatingWallVelocity;
|
||||
axis (0 1 0);
|
||||
origin (0 0 0);
|
||||
rpm 126;
|
||||
omega 126 [rpm];
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ maxDeltaT 1;
|
||||
userTime
|
||||
{
|
||||
type engine;
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 10000;
|
||||
omega 10000 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (1 0 0);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ SRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 1000;
|
||||
omega 1000 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -35,7 +35,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
stator
|
||||
@ -49,7 +49,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 -1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 1 0);
|
||||
|
||||
rpm 1500;
|
||||
omega 1500 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ SRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -34,7 +34,7 @@ disk
|
||||
|
||||
refDirection (0 0 1); // Reference direction
|
||||
// - used as reference for psi angle
|
||||
rpm 1000;
|
||||
omega 1000 [rpm];
|
||||
// pointAbove (0 0 0.25);
|
||||
|
||||
trimModel fixedTrim; // fixed || targetForce
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -48,8 +48,8 @@ runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 25;
|
||||
maxAlphaCo 15;
|
||||
maxCo 20;
|
||||
maxAlphaCo 10;
|
||||
maxDeltaT 0.01;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -25,7 +25,7 @@ boundaryField
|
||||
type rotatingWallVelocity;
|
||||
axis (0 1 0);
|
||||
origin (0 0 0);
|
||||
rpm 126;
|
||||
omega 126 [rpm];
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
vessel
|
||||
|
||||
@ -45,7 +45,7 @@ forcing
|
||||
duration 0.5;
|
||||
}
|
||||
|
||||
lambdaCoeff 2;
|
||||
lambdaCoeff 5;
|
||||
lambdaBoundaryCoeff 10;
|
||||
|
||||
// Write the forcing fields: forcing:scale, forcing:forceCoeff
|
||||
|
||||
@ -50,7 +50,7 @@ boundaryField
|
||||
type rotatingWallVelocity;
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
rpm -50;
|
||||
omega -50 [rpm];
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm -50;
|
||||
omega -50 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -35,7 +35,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
stator
|
||||
@ -49,7 +49,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 -1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm -60;
|
||||
omega -60 [rpm];
|
||||
}
|
||||
|
||||
topoChanger
|
||||
|
||||
@ -43,7 +43,7 @@ mover
|
||||
{
|
||||
origin (0 0.02 0);
|
||||
axis (0 0 1);
|
||||
rpm 180;
|
||||
omega 180 [rpm];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ mover
|
||||
{
|
||||
origin (0 0.1 0);
|
||||
axis (0 0 1);
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0.25 0.25 0.25);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 500;
|
||||
omega 500 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 20;
|
||||
omega 20 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 20;
|
||||
omega 20 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -29,7 +29,7 @@ mover
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ MRF
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
|
||||
rpm 60;
|
||||
omega 60 [rpm];
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user