コード例 #1
0
 public void Transfer(TrueHeatExchanger to, int numAtoms)
 {
     to.Fill(this.Drain(numAtoms));
 }
コード例 #2
0
 //initialize the model
 public void init()
 {
     PLC = new PLCHelpers(HETankIP, BeltPressIP);
     TickDuration = Globals.MilliSecondPerTick;
     HETank = new TrueTank(HTankCap, PLC.GetHeatTankVolume, PLC.GetHeatTankTemp);
     StorTank = new TrueTank(StorTankCap, PLC.GetHoldTankVolume, PLC.GetHoldTankTemp);
     HExchanger = new TrueHeatExchanger(HExchangerCap, PLC.GetHETempIn, PLC.GetHETempOut);
     StartTime = DateTime.Now;
     PrevTime = StartTime;
     CurTime = StartTime;
     PHT = PLC.GetHoldTankVolume(); //magic initial value
     PHTT = PLC.GetHeatTankVolume(); //magic initial value
     Tracker = new IngressTracker(PLC, PHT, PHTT);
     SetInitValues();
     Thread.Sleep(5000);
 }