ana1Tests.analysisTools.normL2Vect¶
- normL2Vect(analyticalSol, numericalSol, cellSize, cosAngle)[source]¶
Compute L2 and Lmax norm of the error between the analytic and numerical solution :Parameters: * analyticalSol (dictionary) –
- analytic solution dictionary:
fx: x component of the vector fy: y component of the vector fz: z component of the vector
numericalSol (dictionary) –
- numericalSol solution dictionary:
fx: x component of the vector fy: y component of the vector fz: z component of the vector
cellSize (float) – grid cell size
cosAngle (float) – cosine of the slope angle
- Returns
errorL2 (float) – L2 error
errorL2Rel (float) – Relativ L2 error
errorMax (float) – LMax error
errorMaxRel (float) – Relativ LMax error