/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2020 DLR ------------------------------------------------------------------------------- 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::polyDegree1 Description First degree polynominal function \verbatim c0 + c1*x + c2*y + c3*z \endverbatim Original code supplied by Henning Scheufler, DLR (2019) SourceFiles polyDegree1.C \*---------------------------------------------------------------------------*/ #ifndef polyDegree1_H #define polyDegree1_H #include "vector.H" #include "vector2D.H" #include "scalarField.H" #include "multiDimPolyFunctions.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class polyDegree1 Declaration \*---------------------------------------------------------------------------*/ class polyDegree1 : public multiDimPolyFunctions { public: //- Runtime type information TypeName("polyDegree1"); // Constructors //- Construct from nTerms explicit polyDegree1(const labelVector& dirs); //- Destructor virtual ~polyDegree1() = default; // Member Functions virtual scalar value(const vector& vec); virtual const scalarField& termValues(const vector& vec); }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //