Test the Distribution class. More...
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Test the Distribution class.
Original source file Test-Distribution.C
Plot normal distribution test in gnuplot using:
normalDistribution(mean, sigma, x) = \ sqrt(1.0/(2.0*pi*sigma**2))*exp(-(x - mean)**2.0/(2.0*sigma**2)) plot normalDistribution(8.5, 2.5, x), "Distribution_scalar_test_x" w p
Definition in file Test-Distribution.C.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 51 of file Test-Distribution.C.
References Distribution::add(), Foam::e, Foam::endl(), Foam::Info, UPstream::master(), Distribution::mean(), Distribution::median(), UPstream::myProcNo(), Foam::nl, SphericalTensor< Cmpt >::one, SymmTensor< scalar >::one, Tensor::one, UPstream::parRun(), Foam::Pout, R, Foam::reduce(), and Distribution::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.