Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit a10a7970 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

helper functions in declaration mode

parent 77bc0b67
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ namespace TUGraz.VectoCore.Models.Declaration
private AirDrag _airDrag;
private TorqueConverter _torqueConverter;
private StandardWeigths _standardWeigths;
public static Kilogram MaximumGrossVehicleWeight = 40000.SI<Kilogram>();
public static Wheels Wheels
{
......@@ -99,6 +100,14 @@ namespace TUGraz.VectoCore.Models.Declaration
return VectoMath.Interpolate(gvw[0], gvw[1], payload[0], payload[1], grossVehicleWeight);
}
/// <summary>
/// Returns the payload for a trailer. This is 75% of (GVW-CurbWeight).
/// </summary>
public static Kilogram PayloadForTrailer(Kilogram grossVehicleWeight, Kilogram curbWeight)
{
return (grossVehicleWeight - curbWeight) * 3 / 4;
}
public static Meter DynamicTyreRadius(string wheels, string rims)
{
var wheelsEntry = Wheels.Lookup(wheels.RemoveWhitespace());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment