Files
OpenFOAM-12/etc/caseDicts/functions/forces/forceCoeffsCompressible
Henry Weller de363dde05 functionObjectList: Moved the functions entry from controlDict into a functions file
for consistency with fvModels and fvConstraints, to simplify code and case
maintenance and to avoid the potentially complex functions entries being
unnecessarily parsed by utilities for which functionObject evaluation is
disabled.

The functions entry in controlDict is still read if the functions file is not
present for backward-compatibility, but it is advisable to migrate cases to use
the new functions file.
2024-01-20 14:46:28 +00:00

32 lines
1.4 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Calculates lift, drag and moment coefficients by summing forces on
specified patches for a case where the solver is compressible; i.e.,
pressure has units of kg/m/s^2 (Pa).
\*---------------------------------------------------------------------------*/
#includeEtc "caseDicts/functions/forces/forceCoeffs.cfg"
patches (<patchNames>); // Names of patches on which to calculate forces
magUInf <magUInf>; // Far field velocity magnitude; e.g., 20 m/s
rhoInf <rhoInf>; // Far field density; e.g., 1.225 kg/m^3 for air
lRef <lRef>; // Reference length scale for moment calculations;
// e.g., 1 m
Aref <Aref>; // Reference area; e.g., 1 m^2
CofR <CofR>; // Centre of rotation; e.g., (0 0 0)
liftDir <liftDir>; // Direction of lift force; e.g., (0 0 1)
dragDir <dragDir>; // Direction of drag force; e.g., (1 0 0)
pitchAxis <pitchAxis>; // Pitch axis; e.g., (0 1 0)
// ************************************************************************* //