
Physics-informed ConvLSTM mass-balance loss (Pilar 2 x Pilar 3)
Source:R/bridges_structure_v3.R
temporal_piml_loss.RdFactory that returns a function(y_pred, y_true, driver) closure
suitable as the physics_loss_fn argument of
temporal_convlstm_fit(). The closure penalises SOC-dynamics
predictions that violate the local-rate kinetics inferred from
the Pilar 2 ODE fit.