Numerical Modeling Of High-Energy Transients From Black Holes And Neutron Stars