/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2014 OpenFOAM Foundation Copyright (C) 2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . Class Foam::fixedTrim Description Trim model where the operating characteristics of rotor (e.g. blade pitch angle) are fixed, hence the possibility of varying thrust and torque. Usage Minimal example by using \c constant/fvOptions: rotorDiskSource1 { // Mandatory/Optional (inherited) entries ... // Mandatory entries (runtime modifiable) trimModel fixedTrim; fixedTrimCoeffs { // Conditional mandatory entries (runtime modifiable) // when trimModel=fixedTrim theta0 5.0; theta1c 1.0; theta1s 4.0; } } See also - Foam::fv::rotorDiskSource - Foam::trimModel - Foam::targetCoeffTrim SourceFiles fixedTrim.C \*---------------------------------------------------------------------------*/ #ifndef fixedTrim_H #define fixedTrim_H #include "trimModel.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class fixedTrim Declaration \*---------------------------------------------------------------------------*/ class fixedTrim : public trimModel { protected: // Protected Data //- Geometric angle of attack [rad] scalarField thetag_; public: //- Run-time type information TypeName("fixedTrim"); // Constructors //- Constructor from rotor and dictionary fixedTrim(const fv::rotorDiskSource& rotor, const dictionary& dict); //- No copy construct fixedTrim(const fixedTrim&) = delete; //- No copy assignment void operator=(const fixedTrim&) = delete; //- Destructor virtual ~fixedTrim() = default; // Member Functions //- Read void read(const dictionary& dict); //- Return the geometric angle of attack [rad] virtual tmp thetag() const; //- Correct the model virtual void correct ( const vectorField& U, vectorField& force ); //- Correct the model for compressible flow virtual void correct ( const volScalarField rho, const vectorField& U, vectorField& force ); }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //