Skip to content

Added a total electromagnetic energy diagnostic to mini-em

James Willenbring requested to merge mini-em-diagnostic into develop

Created by: egphill

Total EM energy is printed to screen as a sanity check to make sure the app is running correctly. Also printing energy/dt^2 which should be approximately the same over different parameter regimes. Both metrics should increase quickly up to ten time-steps and then level out by twenty time-steps.

@trilinos/panzer

Description

Computing 1/2(epsilon||E||^2 + 1/mu||B||^2) as a response.

Motivation and Context

Anyone running the app can check the diagnostics to see if the app is running properly.

Checklist

  • My commit messages mention the appropriate GitHub issue numbers.
  • My code follows the code style of the affected package(s).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports