Bubble-scale model of foam mechanics:mMelting, nonlinear behavior, and avalanches | Synapse