Modeling the response of thin superconductors to applied magnetic fields and currents