In electric locomotives or motor railcars with electric accumulators