添加项目文件。
This commit is contained in:
33
MetroGauges/Model/TurnOutModel.cs
Normal file
33
MetroGauges/Model/TurnOutModel.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user