34 lines
757 B
C#
34 lines
757 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace MetroGauges.Model
|
|||
|
|
{
|
|||
|
|
class TurnOutModel
|
|||
|
|
{
|
|||
|
|
private double v;
|
|||
|
|
private double R;
|
|||
|
|
private double m_B;
|
|||
|
|
private double h_cp;
|
|||
|
|
private double h_sc;
|
|||
|
|
private double h_cs;
|
|||
|
|
private double K_φs;
|
|||
|
|
private int S;
|
|||
|
|
#region 道岔
|
|||
|
|
public double A => v / 3.6 * (v / 3.6) / R;
|
|||
|
|
|
|||
|
|
public double F => m_B * A;
|
|||
|
|
|
|||
|
|
public double K_φp { get; private set; }
|
|||
|
|
|
|||
|
|
public double ΔXqa(double y)
|
|||
|
|
{
|
|||
|
|
return F * ((y - h_cp) * (h_sc - h_cp) / K_φp + (y - h_cs) * (h_sc - h_cs) / K_φs) * (1 + S);
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|