示例#1
0
        public List<Atom> GenerateClassBAtoms(int numAtoms)
        {
            List<Atom> toBeReturned = new List<Atom>();

            for (int x = 0; x < numAtoms; x++)
            {
                Atom newAtom = new Atom();
                toBeReturned.Add(newAtom);
            }

            return toBeReturned;
        }
示例#2
0
        /// <summary>
        /// Gets the initial values for the process containers
        /// 
        /// </summary>
        public void SetInitValues()
        {
            //HETank - fill with atoms
            int NumAtoms = PLC.GetHeatTankVolume() * Globals.AtomsPerGallon;
            List<Atom> Atoms = new List<Atom>();
            for (int i = 0; i < NumAtoms; i++)//fill with class A atoms
            {
                Atom newAtom = new Atom();
                newAtom.MTHV = 0.0;
                newAtom.Serial = -1;//indicates initial Atom
                Atoms.Add(newAtom);
            }
            HETank.Atoms = Atoms;

            //HExchanger fill with atoms
            NumAtoms = HExchangerCap * Globals.AtomsPerGallon;
            Queue<Atom> HEAtoms = new Queue<Atom>();
            for (int i = 0; i < NumAtoms; i++)//fill with class A atoms
            {
                Atom newAtom = new Atom();
                newAtom.MTHV = 0.0;
                newAtom.Serial = -1;//indicates initial Atom
                HEAtoms.Enqueue(newAtom);
            }
            HExchanger.Atoms = HEAtoms;
        }
示例#3
0
        public List<Atom> GenerateClassAAtoms(int numAtoms)
        {
            List<Atom> toBeReturned = new List<Atom>();

            for (int x = 0; x < numAtoms; x++)
            {
                Atom newAtom = new Atom();
                newAtom.MTHV = 1.0;
                newAtom.Serial = -1;
                toBeReturned.Add(newAtom);
            }

            return toBeReturned;
        }