public TCTestJig(double tSrc, double tMix, double tAmb, double tSet, double rampRatePerMinute, double err, TemperatureControllerMode tcMode, bool tcEnabled) { BasicReactionSupporter brs = new BasicReactionSupporter(); Initialize(brs); m_mixture = new Mixture(null, "Test Mixture"); brs.MyReactionProcessor.Watch(m_mixture); Container container = new Container(1000, m_mixture); // Container full volume is 1000 liters. m_tempController = new TemperatureController(container); m_mixture.AddMaterial(brs.MyMaterialCatalog["Water"].CreateMass(250, tMix)); // Add 250 kg. m_mixture.AddMaterial(brs.MyMaterialCatalog["Sodium Nitrite"].CreateMass(100, tMix)); // Add 100 kg NaNO2. m_tempController.AmbientTemperature = tAmb; // degreeC // Error band functionality has been obsoleted. //m_tempController.ErrorBand = err; // +/- err degreeC dead band. m_err = err; // Used for acceptability of non-precise results. m_tempController.SetAmbientThermalConductance(.30, .25); // .25 W/degreeC m_tempController.SetAmbientThermalConductance(.60, .50); // .50 W/degreeC m_tempController.SetAmbientThermalConductance(.90, .75); // .75 W/degreeC m_tempController.SetThermalConductance(.30, .40); // .4 W/degreeC m_tempController.SetThermalConductance(.60, .80); // .8 W/degreeC m_tempController.SetThermalConductance(.90, .120); // 1.2 W/degreeC m_tempController.TCEnabled = tcEnabled; // Temperature control system is on. m_tempController.TCMode = tcMode; // Temperature control system maintains a constant deltaT, or a constant tSrc. m_tempController.TCSetpoint = tSet; m_tempController.TCSrcTemperature = tSrc; // Syltherm (e.g.) temperature. m_tempController.TCSrcDelta = tSrc; // To be used if/when the system is in constant delta mode. m_tempController.TCTemperatureRampRate = new TemperatureRampRate(5.0, TimeSpan.FromMinutes(1)); }