DumpInSmallestBin

Source: models/finite_volume/DumpInSmallestBin.py

Dump the source magnitude into the smallest cell-center bin.

magnitude is a global Scalar (no sub-batch); cell_centers carries the per-cell sub-batch axis (sub_batch_ndim=1, size \(N\)); the output dumped_source has the same per-cell sub-batch with first-cell value = magnitude and zero elsewhere. magnitude therefore couples densely with the per-cell output – declared in list_deriv.

Inputs

magnitudeinput · Scalar · required

Source magnitude.

Outputs

dumped_sourceoutput · Scalar · default state/dumped_source

Source dumped into the smallest bin.

Parameters

cell_centersparameter · Scalar · required

Cell center locations.