Freight & Commuter Railway, Locomotive Rolling-Stock MRO, Wheel-Lathe Depot & SGR/MGR Track Maintenance ERP: Consist Tonnage & Axle-Load Dispatch, Underfloor Wheel-Lathe Flange Profiling, Track Geometry Car Defects & Wagon Demurrage Billing

How to architect a Freight & Commuter Railway Operations, Locomotive & Wagon Rolling-Stock MRO Depot, and Permanent Way Track Maintenance ERP in Kenya and East Africa: SGR/MGR train consist marshalling and tractive effort vs. ruling gradient validation, underfloor wheel-lathe flange thickness/height and tread hollowing re-profiling, locomotive bogie/traction motor serialized BOMs, ultrasonic rail flaw and track geometry defect maintenance, and container/bulk wagon demurrage billing.

Freight and commuter rail operators, inland container depot (ICD) rail sidings, industrial bulk-mineral rail spurs, and rolling-stock maintenance depots across Mombasa–Nairobi–Naivasha Standard Gauge Railway (SGR, 1,435 mm), the rehabilitated Meter Gauge Railway (MGR, 1,000 mm) network, TAZARA, Uganda Railways, and TRC Tanzania move millions of tonnes of containerized cargo, clinker, bulk grain, petroleum, and daily commuters. Coordinating locomotive availability, train consist marshalling, axle-load limits, underfloor wheel-lathe turning, brake-block replacements, track geometry tamper maintenance, and wagon turnaround billing across legacy spreadsheets creates overload stalls on ruling gradients, unscheduled wheel-flat derailment hazards, stranded wagons at customer sidings, locomotive spare-part stockouts, and revenue leakage on rail haulage and wagon demurrage.

At devManue, we engineer custom Railway Operations, Locomotive/Wagon Rolling-Stock MRO & Track Maintenance ERP platforms. Our architecture unifies train marshalling and consist physics, serialized bogie/wheelset life-cycle tracking, permanent way (P-Way) defect management, and automated freight waybill/demurrage accounting.

1. Train Consist Marshalling, Axle-Load Compliance & Ruling Gradient Tractive Effort

Before a freight train departs a port marshalling yard (such as Port Reitz in Mombasa) toward an inland depot (such as Embakasi ICD or Naivasha), the yardmaster and dispatch system must validate both physical safety and locomotive hauling physics:

  • Visual Wagon Marshalling, Dangerous Goods Segregation & Brake Percentage Gate: Sequences flat wagons, covered hoppers, tank wagons, and double-stack well wagons—verifying that hazardous materials (IMDG / RID classes) are separated by required barrier wagons, train length fits passing loop sidings, and operative air-brake weight meets the minimum corridor braking percentage.
  • Gross Trailing Tonnage, Axle-Load & Coupler Drawbar Pull Validation: Sums tare weight plus container/bulk payload per wagon to enforce maximum permissible axle load (e.g., 25 tonnes/axle on SGR vs. 14–18 tonnes/axle on MGR lines) and verifies that single or multi-headed diesel-electric/electric locomotives provide sufficient continuous tractive effort to overcome the corridor’s ruling gradient and curvature resistance.
  • Locomotive Fuel Bowzer Reconciliation & Specific Fuel Consumption (L/GTKM): Integrates depot flowmeters and onboard locomotive fuel tank sensors against Gross Tonne-Kilometers (GTKM) hauled per trip to immediately flag fuel pilferage or injector degradation.
Stage 01→
Marshalling & Consist
Wagon Tare+Payload Axle Check, DG Segregation & Ruling Gradient Tractive Gate
Stage 02→
Corridor Dispatch & Fuel
Section Token/CTC Tracking, Crew Hours-of-Service & Liters per 1,000 GTKM
Stage 03→
Wheel-Lathe & Bogie MRO
Laser Flange/Rim Profile, Underfloor Lathe Cut & Serialized Bogie Rotables
Stage 04→
P-Way Track Maintenance
Track Geometry Gauge/Cant Defects, Ultrasonic Rail Flaw & Tamping Work Orders
Stage 05✓
ICD Siding & Demurrage
Wagon Placement/Release Timestamps, Tonne-Km Waybill & Siding Demurrage eTIMS

2. Wheelset Flange/Rim Wear Limits & Consist Ruling-Gradient Physics Engine

In a rolling-stock workshop, wheelsets and bogies are the highest-criticality safety assemblies. Wayside laser scanners or workshop optical gauges measure Flange Height (Sh), Flange Thickness (Sd), Flange Slope (qR), Wheel Rim Thickness, and Tread Hollowing/Flats. When a wheelset is turned on an underfloor CNC wheel lathe, restoring 1 mm of flange thickness typically requires machining away 3.5 mm to 4.5 mm of radial tread thickness—directly reducing remaining wheel life before scrapping at the condemning rim limit:

from decimal import Decimal, ROUND_HALF_UP

class RailwayRollingStockAndConsistEngine:
    """
    Evaluates train consist trailing resistance vs. locomotive tractive effort on a
    ruling gradient, and calculates CNC underfloor wheel-lathe radial cut depth and
    remaining usable rim life for locomotive/wagon wheelsets.
    """
    @staticmethod
    def evaluate_consist_and_wheelset_lathe_cut(
        loco_continuous_tractive_effort_kn: Decimal,
        loco_mass_tonnes: Decimal,
        trailing_wagons_gross_tonnes: Decimal,
        ruling_gradient_pct: Decimal,           # e.g. 1.5% (1 in 67 grade)
        rolling_resistance_n_per_tonne: Decimal,# e.g. 25 N/tonne
        measured_flange_thickness_sd_mm: Decimal,
        target_flange_thickness_sd_mm: Decimal, # e.g. 32.0 mm
        current_rim_thickness_mm: Decimal,
        condemning_rim_limit_mm: Decimal,       # e.g. 25.0 mm minimum safe rim
    ) -> dict:
        total_train_mass_t = loco_mass_tonnes + trailing_wagons_gross_tonnes

        # Grade resistance = 9.81 * gradient_% (N per tonne)
        grade_resistance_n_per_t = Decimal("9.81") * ruling_gradient_pct
        total_resistance_kn = (
            total_train_mass_t * (rolling_resistance_n_per_tonne + grade_resistance_n_per_t) / Decimal("1000.0")
        ).quantize(Decimal("0.01"), rounding=ROUND_HALF_UP)

        can_clear_ruling_gradient = loco_continuous_tractive_effort_kn >= (total_resistance_kn * Decimal("1.10"))

        # Wheel lathe turning: ~4.0 mm radial tread cut per 1.0 mm flange thickness restoration
        flange_restore_mm = max(Decimal("0.0"), target_flange_thickness_sd_mm - measured_flange_thickness_sd_mm)
        radial_tread_cut_mm = (flange_restore_mm * Decimal("4.0")).quantize(Decimal("0.1"), rounding=ROUND_HALF_UP)
        post_lathe_rim_thickness_mm = current_rim_thickness_mm - radial_tread_cut_mm

        wheelset_status = (
            "REPROFILE_ON_UNDERFLOOR_LATHE"
            if post_lathe_rim_thickness_mm >= condemning_rim_limit_mm
            else "CONDEMN_WHEEL_DISC_PRESS_RENEWAL_REQUIRED"
        )

        return {
            "total_train_gross_tonnes": total_train_mass_t,
            "required_tractive_effort_kn": total_resistance_kn,
            "ruling_gradient_dispatch_clear": can_clear_ruling_gradient,
            "radial_tread_cut_required_mm": radial_tread_cut_mm,
            "post_lathe_rim_thickness_mm": post_lathe_rim_thickness_mm,
            "wheelset_mro_disposition": wheelset_status,
        }

3. Serialized Bogie/Traction Motor Rotables, P-Way Track Defects & Wagon Demurrage

Beyond depot wheel turning, our railway ERP links linear track infrastructure and commercial freight billing:

  • Serialized Configuration Management for Bogies, Traction Motors & Turbochargers: Tracks kilometer-based preventive maintenance schedules (A, B, C, D Checks and General Overhauls) and serialized component swaps across locomotives so warranty and MTBF histories travel with each traction motor, alternator, air compressor, and bogie frame.
  • Linear Asset Referencing (KM + Chainage) for Permanent Way (P-Way) Track Maintenance: Ingests Track Recording Car geometry exceptions (track gauge widening, cross-level/cant twist, vertical/horizontal alignment) and ultrasonic rail flaw detections—issuing GPS/Kilometer-post work orders for ballast tamping, thermite rail welding, sleeper renewal, and speed restrictions.
  • Tonne-Kilometer Freight Tariffs, Private Siding Placement & Wagon Demurrage Billing: Tracks exact timestamps when wagons are placed at an ICD or factory rail siding, calculates free loading/offloading hours, and automatically generates KRA eTIMS demurrage and rail haulage invoices for delayed wagon turnarounds.
Railway Operations, Rolling-Stock MRO & Track ERP MetricLegacy Spreadsheets & Manual TallyingdevManue Custom Enterprise ERP
Train Consist & Gradient DispatchManual wagon tallying causing axle overloads or locomotive stalls on ruling gradesAutomated axle-load, braking weight % & tractive effort vs. gradient validation
Wheelset & Bogie Depot MROPaper wheel measurement cards missing rim condemning limits and flange wear trendsLaser wheel profile ingestion, underfloor lathe cut calculator & serialized rotable tracking
Permanent Way (P-Way) Track MaintenanceDisconnected patrol sheets delaying ultrasonic rail flaw & geometry defect repairsLinear Kilometer-Post defect registry with automated speed restriction & tamping work orders
Wagon Siding Turnaround & DemurrageUnbilled wagon detention days at customer sidings and inland container depotsAutomated placement-to-release clock tracking with tiered wagon demurrage eTIMS invoicing
// High-Throughput Engineering • Systems Architecture Consulting

Scaling Python & Django APIs or Resolving Concurrency Bottlenecks?

We partner with engineering founders and tech leads to architect resilient distributed systems, optimize async worker pools, design scalable databases, and eliminate production latency spikes.

All Insights
Chat on WhatsApp