ana1Tests.analysisTools

Functions

L2Norm

Compute L2 norm of an array :Parameters: * norm2Array (numpy array) – norm2 of the function * cellSize (float) – grid cell size * cosAngle (float) – cosine of the slope angle

computeErrorAndNorm

Compute error between two functions given their norm 2 :Parameters: * localError (numpy array) – norm2 of the error function * analyticalSol2 (numpy array) – norm2 of the reference function * cellSize (float) – grid cell size * cosAngle (float) – cosine of the slope angle

normL2Scal

Compute L2 and Lmax norm of the error between the analytic and numerical solution :Parameters: * analyticalSol (numpy array) – analytic solution array * numericalSol (numpy array) – numericalSol solution array * cellSize (float) – grid cell size * cosAngle (float) – cosine of the slope angle

normL2Vect

Compute L2 and Lmax norm of the error between the analytic and numerical solution :Parameters: * analyticalSol (dictionary) –