Exemple #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);
    }
Exemple #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);
    }