Test application for the templated Polynomial class. More...
Go to the source code of this file.
Functions | |
scalar | polyValue (const scalar x) |
scalar | intPolyValue (const scalar x) |
scalar | polyValue1 (const scalar x) |
scalar | polyValue2 (const scalar x) |
int | main (int argc, char *argv[]) |
Variables | |
const int | PolySize = 8 |
const scalar | coeff [] = { 0.11, 0.45, -0.94, 1.58, -2.58, 0.08, 3.15, -4.78 } |
const char * | polyDef = "(0.11 0.45 -0.94 1.58 -2.58 0.08 3.15 -4.78)" |
Test application for the templated Polynomial class.
Original source file Test-Polynomial.C
Definition in file Test-Polynomial.C.
scalar polyValue | ( | const scalar | x | ) |
Definition at line 42 of file Test-Polynomial.C.
References coeff, Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Foam::sqr(), and x.
Referenced by main().
scalar intPolyValue | ( | const scalar | x | ) |
Definition at line 57 of file Test-Polynomial.C.
References coeff, Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Foam::sqr(), and x.
Referenced by main().
scalar polyValue1 | ( | const scalar | x | ) |
Definition at line 72 of file Test-Polynomial.C.
References coeff, PolySize, Foam::pow(), and x.
Referenced by main().
scalar polyValue2 | ( | const scalar | x | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 104 of file Test-Polynomial.C.
References coeff, Foam::endl(), Foam::Info, intPolyValue(), Foam::mag(), n, Foam::nl, polyDef, polyValue(), polyValue1(), polyValue2(), Random::scalar01(), Foam::sum(), Polynomial::value(), polynomialFunction::value(), dimensioned::value(), and x.
const int PolySize = 8 |
Definition at line 37 of file Test-Polynomial.C.
Referenced by Polynomial< 8 >::derivative(), Polynomial< 8 >::integral(), Polynomial< 8 >::integralMinus1(), Foam::operator<<(), Polynomial< 8 >::Polynomial(), polyValue1(), polyValue2(), Polynomial< 8 >::value(), polynomialTransport::write(), polynomialSolidTransport::write(), icoPolynomial::write(), and hPolynomialThermo::write().
const scalar coeff[] = { 0.11, 0.45, -0.94, 1.58, -2.58, 0.08, 3.15, -4.78 } |
Definition at line 38 of file Test-Polynomial.C.
Referenced by ReactingMultiphaseParcel::calcSurfaceReactions(), thixotropicViscosity::correct(), intPolyValue(), main(), immersedBoundaryFvPatch::makeInvDirichletMatrices(), polyValue(), polyValue1(), polyValue2(), ParticleErosion< CloudType >::postPatch(), KinematicCloud< CloudType >::relax(), KinematicCloud< CloudType >::scale(), Foam::fvc::smooth(), and forceCoeffs::writeIntegratedData().
const char* polyDef = "(0.11 0.45 -0.94 1.58 -2.58 0.08 3.15 -4.78)" |
Definition at line 39 of file Test-Polynomial.C.
Referenced by main().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.