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¶
magnitude—input·Scalar· requiredSource magnitude.
Outputs¶
dumped_source—output·Scalar· defaultstate/dumped_sourceSource dumped into the smallest bin.
Parameters¶
cell_centers—parameter·Scalar· requiredCell center locations.