Gradient Computation

Module: devtests.FEMLIB.gradient.run

Section author: Gernot Plank <gernot.plank@medunigraz.at>

This script tests the gradient computation tool FEMLIB/GlGradient

Problem Setup

This test defines a small cuboid and prescribes the scalar field f(x)=r^2 where r is the distance to the origin.

../../_images/gradient.png

Tests

trg_vtx

Generate scalar test data \phi at mesh nodes, compute gradient at mesh nodes and compare \nabla \phi against reference.

Tags: FAST FEMLIB SERIAL

Checks:

  • Compare against stored reference: max_error(gradient.vtx.grad.vec)

trg_ctr

Generate scalar test data \phi on mesh nodes, compute gradient at element centers and compare \nabla \phi against reference.

Tags: FAST FEMLIB SERIAL

Checks:

  • Compare against stored reference: max_error(gradient.ctr.mag.dat)