pub struct Axle { /* private fields */ }Expand description
Handle auf eine Schienenfahrzeug-Achse an einem Drehgestell.
Handle to a rail vehicle axle on a bogie.
Implementations§
Source§impl Axle
impl Axle
Sourcepub fn get(bogie_index: usize, axle_index: usize) -> Result<Axle, VehicleError>
pub fn get(bogie_index: usize, axle_index: usize) -> Result<Axle, VehicleError>
Gibt die Achse an den angegebenen Drehgestell- und Achsenindizes zurück.
Returns the axle at the given bogie and axle indices.
Sourcepub fn velocity_var_name(self) -> String
pub fn velocity_var_name(self) -> String
Gibt den Script-Variablennamen mit der Achsgeschwindigkeit in m/s zurück.
Returns the script variable name containing this axle’s velocity in m/s.
Sourcepub fn bogie(self) -> Bogie
pub fn bogie(self) -> Bogie
Gibt das Drehgestell dieser Achse zurück.
Returns the bogie this axle belongs to.
Sourcepub fn axle_index(self) -> usize
pub fn axle_index(self) -> usize
Gibt den nullbasierten Achsenindex am Drehgestell zurück.
Returns the zero-based axle index on the bogie.
Sourcepub fn bogie_index(self) -> usize
pub fn bogie_index(self) -> usize
Gibt den nullbasierten Drehgestellindex zurück.
Returns the zero-based bogie index.
Sourcepub fn inverse_radius(self) -> f32
pub fn inverse_radius(self) -> f32
Gibt die Gleiskrümmung unter der Achse zurück (1/R).
Die Krümmung ist der Kehrwert des Radius (1/R); in Geraden tendiert der Wert gegen 0 statt gegen Unendlichkeit. Die Werte sind daher sehr klein: Schon ein Radius von 100 m ergibt 0,01, größere Radien noch kleinere Werte. Positiv = rechts, negativ = links.
Gets the curvature of the track under the given axis. The curvature is the reciprocal of the radius (1/R), which has the advantage that the value does not tend to infinity in a straight line, but tends to 0. The values are very small due to this calculation: Even a radius of only 100m leads to a value of 0.01, larger radii lead to even smaller values. Positive = right, negative = left.
Sourcepub fn surface_type(self) -> SurfaceType
pub fn surface_type(self) -> SurfaceType
Gibt die Oberflächenart unter der Achse zurück.
Provides the type of the surface under the given axis.
Sourcepub fn rail_quality(self) -> RailQuality
pub fn rail_quality(self) -> RailQuality
Gibt die Schienenqualität unter der Achse zurück.
Provides the quality of the rails under the given axis.
Sourcepub fn set_traction_force_newton(self, value: f32)
pub fn set_traction_force_newton(self, value: f32)
Setzt die Traktionskraft in Newton.
Dies ist das auf die Achse wirkende Drehmoment, bereits umgerechnet in die Kraft auf der Lauffläche. Solange das Rad nicht schlupft, entspricht der Wert der Kraft des Rades auf die Schiene. Die Kraft wirkt unabhängig von der Fahrtrichtung; entgegen der Fahrt bremst sie, hält das Fahrzeug aber nicht still.
Sets the traction force in newton. This is the torque applied to the axle, already converted to the force acting on the running surface. This means that as long as the wheel does not slip or spin, this value is equal to the force exerted by the wheel on the rail. This force acts independently of the direction of travel. If it acts in the opposite direction to the travel, the vehicle will be braked, but it cannot hold the vehicle stationary.
Sourcepub fn set_brake_force_newton(self, value: f32)
pub fn set_brake_force_newton(self, value: f32)
Setzt die Bremskraft in Newton.
Drehmoment auf der Achse, umgerechnet in Laufflächenkraft; ohne Schlupf entspricht das der Schienenkraft.
Im Unterschied zu set_traction_force_newton ist die Bremskraft immer positiv und wirkt immer entgegen der Fahrtrichtung.
Damit kann sie das Fahrzeug wie eine Scheibenbremse auch im Stand halten.
Sets the brake force in newton. This is the torque applied to the axle, already converted to the force acting on the running surface. This means that as long as the wheel does not slip or spin, this value is equal to the force exerted by the wheel on the rail. The difference to “traction_force_newton” is that brake_force_newton is always positive and always acts in the opposite direction to the travel. This means that brake_force_newton can also hold the vehicle stationary like a disc brake.