postgkyl.diagnostics.mom.enstrophy.enstrophy

postgkyl.diagnostics.mom.enstrophy.enstrophy(stem, init_frame, final_frame, *, extension='gkyl')

Integrate squared curl and density-weighted velocity gradients per frame.

Native DG data uses weak velocity division, local polynomial derivatives (excluding inter-cell jumps), weak products, and DG integration. Native nodal/quadrature data is first represented as modal. Point samples use numerical derivatives and integration at their physical coordinates. All cells, including boundary cells, contribute. For two spatial dimensions, derivatives in the absent third direction are zero; all three velocity components still contribute.

Parameters:
  • stem – File-name stem before the frame number, e.g. "sim-fluid_".

  • init_frame – First frame (inclusive).

  • final_frame – Last frame (inclusive).

  • extension – Frame-file extension.

Returns:

One value of each integral per frame.

CLI: mom_enstrophy_enstrophy