Skip to content

Commit

Permalink
editoast: fixtures: add a TODO to set more realistic rolling stock re…
Browse files Browse the repository at this point in the history
…sistance

Signed-off-by: Tristram Gräbener <[email protected]>
  • Loading branch information
Tristramg committed Jan 15, 2025
1 parent cdb7f87 commit 4d89eb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions editoast/src/models/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ pub fn create_towed_rolling_stock() -> TowedRollingStock {
inertia_coefficient: basis_point::new(1.05),
rolling_resistance: RollingResistancePerWeight {
rolling_resistance_type: "davis".to_string(),
// TODO those values are wrong, they correspond to daN/T, (daN/T)/(km/h), and (daN/T)/(km/h)² per weight
// We should use more realistic values and fix the tests
A: meter_per_second_squared::new(1.0),
B: hertz::new(0.01),
C: per_meter::new(0.0002),
},
const_gamma: meter_per_second_squared::new(0.5),
max_speed: Some(meter_per_second::new(35.0)),
Expand Down Expand Up @@ -264,6 +269,11 @@ pub fn create_simple_rolling_stock() -> RollingStock {
railjson_version: "12".to_string(),
rolling_resistance: RollingResistance {
rolling_resistance_type: "davis".to_string(),
// TODO those values are wrong, they correspond to daN/T, (daN/T)/(km/h), and (daN/T)/(km/h)²
// We should use more realistic values and fix the tests
A: newton::new(1.0),
B: kilogram_per_second::new(0.01),
C: kilogram_per_meter::new(0.0005),
},
length: meter::new(140.0),
mass: kilogram::new(15000.0),
Expand Down

0 comments on commit 4d89eb6

Please sign in to comment.