def test_create_surfaceconvectionalgorithminside(self):

        pyidf.validation_level = ValidationLevel.error

        obj = SurfaceConvectionAlgorithmInside()
        # alpha
        var_algorithm = "Simple"
        obj.algorithm = var_algorithm

        idf = IDF()
        idf.add(obj)
        idf.save(self.path, check=False)

        with open(self.path, mode='r') as f:
            for line in f:
                log.debug(line.strip())

        idf2 = IDF(self.path)
        self.assertEqual(idf2.surfaceconvectionalgorithminsides[0].algorithm, var_algorithm)
Beispiel #2
0
    def test_create_surfaceconvectionalgorithminside(self):

        pyidf.validation_level = ValidationLevel.error

        obj = SurfaceConvectionAlgorithmInside()
        # alpha
        var_algorithm = "Simple"
        obj.algorithm = var_algorithm

        idf = IDF()
        idf.add(obj)
        idf.save(self.path, check=False)

        with open(self.path, mode='r') as f:
            for line in f:
                log.debug(line.strip())

        idf2 = IDF(self.path)
        self.assertEqual(idf2.surfaceconvectionalgorithminsides[0].algorithm,
                         var_algorithm)
Beispiel #3
0
    obj2 = Building()
    obj2.name = "Exercise 1A"
    obj2.north_axis = 0.0
    obj2.terrain = "Country"
    obj2.loads_convergence_tolerance_value = 0.04
    obj2.temperature_convergence_tolerance_value = 0.4
    obj2.solar_distribution = "FullInteriorAndExterior"
    obj2.maximum_number_of_warmup_days = None
    obj2.minimum_number_of_warmup_days = 6
    idf.add(obj2)

    obj3 = Timestep()
    obj3.number_of_timesteps_per_hour = 4
    idf.add(obj3)

    obj4 = SurfaceConvectionAlgorithmInside()
    obj4.algorithm = "TARP"
    idf.add(obj4)

    obj5 = SurfaceConvectionAlgorithmOutside()
    obj5.algorithm = "TARP"
    idf.add(obj5)

    obj6 = HeatBalanceAlgorithm()
    obj6.algorithm = "ConductionTransferFunction"
    idf.add(obj6)

    obj7 = ShadowCalculation()
    obj7.calculation_method = "AverageOverDaysInFrequency"
    obj7.calculation_frequency = 20
    idf.add(obj7)
    obj2 = Building()
    obj2.name = "Exercise 1A"
    obj2.north_axis = 0.0
    obj2.terrain = "Country"
    obj2.loads_convergence_tolerance_value = 0.04
    obj2.temperature_convergence_tolerance_value = 0.4
    obj2.solar_distribution = "FullInteriorAndExterior"
    obj2.maximum_number_of_warmup_days = None
    obj2.minimum_number_of_warmup_days = 6
    idf.add(obj2)

    obj3 = Timestep()
    obj3.number_of_timesteps_per_hour = 4
    idf.add(obj3)

    obj4 = SurfaceConvectionAlgorithmInside()
    obj4.algorithm = "TARP"
    idf.add(obj4)

    obj5 = SurfaceConvectionAlgorithmOutside()
    obj5.algorithm = "TARP"
    idf.add(obj5)

    obj6 = HeatBalanceAlgorithm()
    obj6.algorithm = "ConductionTransferFunction"
    idf.add(obj6)

    obj7 = ShadowCalculation()
    obj7.calculation_method = "AverageOverDaysInFrequency"
    obj7.calculation_frequency = 20
    idf.add(obj7)