A framework for modeling the cathode fall illustrated with a single beam model