Ejemplo n.º 1
0
    // Use this for initialization
    void Awake()
    {
        turbine = GetComponent <TurbineGasodynamic>();
        plant   = GetComponentInParent <Plant>();

        turbineInertia = new CTDelay(plant, 0, 0.02f);

        revRegIntegrator = new CTIntegrator(plant, 0);
        revRegDelay      = new CTDelay(plant, 0, 0.666f);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        plant = GetComponentInParent <Plant>();
        ChemFraction fraction = new ChemFraction(SteamElement);

        fraction.Mass = Constants.WorldPressure * Tank.Volume / (Constants.R * Constants.WorldTemp);
        Tank.Mix.AddFraction(fraction);
        Tank.Mix.Heat = Constants.WorldTemp * SteamElement.HeatCap * fraction.Mass;
        Tank.Mix.RebuildCache();
        boilerHeat  = new CTIntegrator(plant, 300f * CMboiler);
        boilerDelay = new CTDelay(plant, 0, 0.05f);
    }
Ejemplo n.º 3
0
 public CTDelay(float startCondition, float K)
 {
     sum    = new CTIntegrator(startCondition);
     this.K = K;
 }
Ejemplo n.º 4
0
 public CTDelay(Plant p, float startCondition, float K)
 {
     sum    = new CTIntegrator(p, startCondition);
     this.K = K;
     plant  = p;
 }