Skip to content

[test][freeflow] Improve error calculation.

Melanie Lipp requested to merge feature/freeflowErrors into master
  • Change of the calculation of the L2 error: The calculation of the L2 error before built the four vectors staggeredVolume, errorVelocity, velocityReference and directionIndex. There where two loops: one filling those vectors, one using them. The reason for this approach was that for the staggeredVolume the two staggeredHalfVolumes corresponding to two different scvfs have to be added.

    This MR changes the error calculation to one loop making use of the fact that both staggeredHalfVolumes are multiplied by the same factor errorVelocity[i]. So building the four vectors staggeredVolume, errorVelocity, velocityReference and directionIndex is avoided.

  • Adding a calculation of an L infinity error

  • Move printError out of individual test files to one common file.

  • Change error output format to a CSV file


Manually make sure L2 errors are unchanged on a sample basis:

  • Angeli
  • Channel 1d

Deal with following files:

  • test/freeflow/navierstokes/
  • test/freeflow/navierstokes/channel/pipe/
  • test/freeflow/navierstokes/sincos/
Edited by Melanie Lipp

Merge request reports