Beispiel #1
0
        public void TestVaporSpaceMixtureHandling()
        {
            Model model = new Model("Hello, world.", Guid.NewGuid());
            BasicReactionSupporter brs = new BasicReactionSupporter();

            LoadSampleCatalog(brs.MyMaterialCatalog);

            Mixture mixture = new Mixture(model, "VaporTester", Guid.NewGuid());

            mixture.AddMaterial(brs.MyMaterialCatalog["Methanol"].CreateMass(200, 37));
            mixture.AddMaterial(brs.MyMaterialCatalog["Methylene Chloride"].CreateMass(200, 37));
            mixture.AddMaterial(brs.MyMaterialCatalog["Water"].CreateMass(200, 37));

            double T = 315;
            double V = 2.0;

            Console.WriteLine("Starting with " + mixture + " and estimating vapor at " + T + " degrees C in a " + V + " cubic meter space.");
            Mixture vs = mixture.GetVaporFor(V, T);

            Console.WriteLine(vs.ToString());
        }