public Gear(Aerodata a):base(a) { MaxSteer = new DenominatedAmount(0, "DEG"); dynamic_friction = new DenominatedAmount(0.5,null); rolling_friction = new DenominatedAmount(0.02,null); static_friction = new DenominatedAmount(0.8, null); spring_coeff = new DenominatedAmount(a.EmptyWeight.Amount * 0.9, "LBS/FT"); damping_coeff = new DenominatedAmount(a.EmptyWeight.Amount * 0.05, "LBS/FT/SEC"); }
public Tank(string name, double p1, double p2, double p3, string units, int pri, int capacity,string fuel_units, double? standpipe ) { Name = name; Priority = pri; Location = new Location(p1, p2, p3, units); Capacity = new DenominatedAmount(capacity, fuel_units); if (standpipe.HasValue) Standpipe = new DenominatedAmount(standpipe.Value, fuel_units); }
internal Location FromChord(DenominatedAmount chord, double percentX, double percentY, double percentZ ) { if (percentX > 1) percentX /= 100; if (percentY > 1) percentY /= 100; if (percentY > 1) percentZ /= 100; if (chord.Unit != Unit) throw new Exception("Must be in same units"); return new Location(percentX * chord.Amount + X, percentY * chord.Amount + Y, percentZ * chord.Amount + Z, Unit); }
public GroundReactionElement(Aerodata a) { spring_coeff = a.EmptyWeight; spring_coeff = new DenominatedAmount(a.EmptyWeight.Amount * 0.9, "LBS/FT"); damping_coeff = new DenominatedAmount(a.EmptyWeight.Amount * 0.2, "LBS/FT/SEC"); }