コード例 #1
0
        public static GWPMaterialSet GetDefaultFoundationRC()
        {
            var conc = new ICEConcrete("RC25/30", "25%GGBS", 120);

            conc.TransportsToSite.Clear();
            conc.TransportsToSite.Add(MaterialTransport.DefaultDieselRigidHGV());
            conc.TransportsToDispoal.Clear();
            conc.TransportsToDispoal.Add(MaterialTransport.DefaultDieselRigidHGV());
            conc.ConstructionFactor   = 2;
            conc.DeConstructionFactor = 1;
            return(new GWPMaterialSet("Default foundation RC",
                                      new List <GWPMaterial>
            {
                conc
            }));
        }
コード例 #2
0
        public override GWPMaterial getCopy()
        {
            var returnMaterial = new ICEConcrete(this.Grade, this.Replacement, this.ReinforcementDensity);

            returnMaterial.ConstructionFactor       = this.ConstructionFactor;
            returnMaterial.DeConstructionFactor     = this.DeConstructionFactor;
            returnMaterial.InUseFactor              = this.InUseFactor;
            returnMaterial.IncludeSequesteredCarbon = this.IncludeSequesteredCarbon;
            returnMaterial._massDensity             = this.MassDensity;
            foreach (var item in this.TransportsToSite)
            {
                returnMaterial.TransportsToSite.Add(item);
            }
            foreach (var item in this.TransportsToDispoal)
            {
                returnMaterial.TransportsToDispoal.Add(item);
            }
            return(returnMaterial);
        }
コード例 #3
0
        public static GWPMaterialSet GetDefaultGWPConcreteSetSeparateSteel()
        {
            var conc = new ICEConcrete("RC32/40", "zero", 0);

            conc.TransportsToSite.Clear();
            conc.TransportsToSite.Add(MaterialTransport.DefaultDieselRigidHGV());
            conc.TransportsToDispoal.Clear();
            conc.TransportsToDispoal.Add(MaterialTransport.DefaultDieselRigidHGV());
            conc.ConstructionFactor   = 2;
            conc.DeConstructionFactor = 1;

            var steel = new ICESteel("Bar & rod");

            steel.ChangeMassDensity(150);

            var returnSet = new GWPMaterialSet("Reinforced concrete",
                                               new List <GWPMaterial>
            {
                conc,
                steel
            });

            return(returnSet);
        }