예제 #1
0
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }

            if (this.SHGF < 0.0)
            {
                this.SHGF = 0.0; changed = true;
            }
            if (this.SHGF > 1.0)
            {
                this.SHGF = 1.0; changed = true;
            }

            if (this.VisibleTransmittance < 0.0)
            {
                this.VisibleTransmittance = 0.0; changed = true;
            }
            if (this.VisibleTransmittance > 1.0)
            {
                this.VisibleTransmittance = 1.0; changed = true;
            }

            return(changed);
        }
예제 #2
0
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }
            if (this.Type == ScheduleType.Fraction)
            {
                for (int i = 0; i < this.Values.Count; i++)
                {
                    if (this.Values[i] < 0)
                    {
                        this.Values[i] = 0; changed = true;
                    }
                    if (this.Values[i] > 1)
                    {
                        this.Values[i] = 1; changed = true;
                    }
                }
            }
            return(changed);
        }
예제 #3
0
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }
            return(changed);
        }
예제 #4
0
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }

            //  foreach (var l in Layers) { if (l.Correct()) { changed = true; } }

            return(changed);
        }
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }

            if (this.VisibleAbsorptance < 0.001)
            {
                this.VisibleAbsorptance = 0.001; changed = true;
            }
            if (this.VisibleAbsorptance > 0.999)
            {
                this.VisibleAbsorptance = 0.999; changed = true;
            }
            if (this.SolarAbsorptance < 0.001)
            {
                this.SolarAbsorptance = 0.001; changed = true;
            }
            if (this.SolarAbsorptance > 0.999)
            {
                this.SolarAbsorptance = 0.999; changed = true;
            }
            if (this.ThermalAbsorptance < 0.001)
            {
                this.ThermalAbsorptance = 0.001; changed = true;
            }
            if (this.ThermalAbsorptance > 0.999)
            {
                this.ThermalAbsorptance = 0.999; changed = true;
            }
            if (this.SpecificHeat < 100)
            {
                this.SpecificHeat = 100; changed = true;
            }
            if (this.SpecificHeat > 5000)
            {
                this.SpecificHeat = 2000; changed = true;
            }
            if (this.Density < 10)
            {
                this.Density = 10; changed = true;
            }
            if (this.Density > 5000)
            {
                this.Density = 5000; changed = true;
            }
            if (this.Conductivity < 0.001)
            {
                this.Conductivity = 0.001; changed = true;
            }
            if (this.Conductivity > 5000)
            {
                this.Conductivity = 5000; changed = true;
            }

            return(changed);
        }
        public bool Correct()
        {
            bool changed = false;

            string cleanName = CSFormatting.RemoveSpecialCharactersNotStrict(this.Name);

            if (this.Name != cleanName)
            {
                this.Name = cleanName; changed = true;
            }


            if (this.SolarTransmittance < 0.0)
            {
                this.SolarTransmittance = 0.0; changed = true;
            }
            if (this.SolarTransmittance > 1.0)
            {
                this.SolarTransmittance = 1.0; changed = true;
            }

            if (this.SolarReflectanceFront < 0.0)
            {
                this.SolarReflectanceFront = 0.0; changed = true;
            }
            if (this.SolarReflectanceFront > 1.0)
            {
                this.SolarReflectanceFront = 1.0; changed = true;
            }

            if (this.SolarReflectanceBack < 0.0)
            {
                this.SolarReflectanceBack = 0.0; changed = true;
            }
            if (this.SolarReflectanceBack > 1.0)
            {
                this.SolarReflectanceBack = 1.0; changed = true;
            }

            if (this.VisibleTransmittance < 0.0)
            {
                this.VisibleTransmittance = 0.0; changed = true;
            }
            if (this.VisibleTransmittance > 1.0)
            {
                this.VisibleTransmittance = 1.0; changed = true;
            }

            if (this.VisibleReflectanceFront < 0.0)
            {
                this.VisibleReflectanceFront = 0.0; changed = true;
            }
            if (this.VisibleReflectanceFront > 1.0)
            {
                this.VisibleReflectanceFront = 1.0; changed = true;
            }

            if (this.VisibleReflectanceBack < 0.0)
            {
                this.VisibleReflectanceBack = 0.0; changed = true;
            }
            if (this.VisibleReflectanceBack > 1.0)
            {
                this.VisibleReflectanceBack = 1.0; changed = true;
            }

            if (this.IRTransmittance < 0.0)
            {
                this.IRTransmittance = 0.0; changed = true;
            }
            if (this.IRTransmittance > 1.0)
            {
                this.IRTransmittance = 1.0; changed = true;
            }

            if (this.IREmissivityFront < 0.0)
            {
                this.IREmissivityFront = 0.0; changed = true;
            }
            if (this.IREmissivityFront > 1.0)
            {
                this.IREmissivityFront = 1.0; changed = true;
            }

            if (this.IREmissivityBack < 0.0)
            {
                this.IREmissivityBack = 0.0; changed = true;
            }
            if (this.IREmissivityBack > 1.0)
            {
                this.IREmissivityBack = 1.0; changed = true;
            }

            if (this.Density < 10)
            {
                this.Density = 10; changed = true;
            }
            if (this.Density > 5000)
            {
                this.Density = 5000; changed = true;
            }

            if (this.Conductivity < 0.001)
            {
                this.Conductivity = 0.001; changed = true;
            }
            if (this.Conductivity > 5000)
            {
                this.Conductivity = 5000; changed = true;
            }

            return(changed);
        }