Magnetic reconnection, flow, and current density patterns in nonlinear magnetohydrodynamics modeling of reversed-field pinches and tokamaks | Synapse