Ejemplo n.º 1
0
 def check_Orientation(self, data):
     fName = 'Orientation'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     Orientation_options = ["horizontal", "vertical"]
     vd.xChoice(value, Orientation_options, fName)
Ejemplo n.º 2
0
 def check_Shape(self, data):
     fName = 'Shape'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     Shape_options = ["cylindrical", "spherical"]
     vd.xChoice(value, Shape_options, fName)
Ejemplo n.º 3
0
 def check_emission_units(self, data):
     fName = 'emission_units'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     unit_options = ["ppmv", "mg/Nm3", "mg/Sm3"]
     vd.xChoice(value, unit_options, fName)
Ejemplo n.º 4
0
 def check_full_vacuum(self, data):
     fName = 'full_vacuum'
     #        vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     full_vacuum_options = ["yes", "no"]
     vd.xChoice(value, full_vacuum_options, fName)
Ejemplo n.º 5
0
 def check_D_basis(self, data):
     fName = 'D_basis'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     D_basis_options = ["inner", "outer"]
     vd.xChoice(value, D_basis_options, fName)
Ejemplo n.º 6
0
    def check_calculation_option(self, value):
        vd.xString(value)
        calculation_options = [
            "Tdb_RH_P", "Tdb_Twb_P", "Tdb_Tdp_P", "Tdb_W_P", "Tdb_h_P"
        ]

        vd.xChoice(value, calculation_options)
Ejemplo n.º 7
0
 def check_sizing_basis(self, data):
     fName = 'sizing_basis'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     sizing_basis_options = ["buffer_time", "switching_frequency"]
     vd.xChoice(value, sizing_basis_options, fName)
Ejemplo n.º 8
0
 def check_schedule(self, data):
     fName = 'Schedule'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     schedule_options= ['5', '10', '20', '30', '40', '60', '80', '100', '120', '140', '160', 'STD', 'XS', 'XXS', '5S', '10S', '40S', '80S']
     vd.xChoice(value, schedule_options, fName)
Ejemplo n.º 9
0
 def check_specie(self, data):
     fName = 'specie'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     specie_options = ["NOx", "SOx", "CO", "Other"]
     vd.xChoice(value, specie_options, fName)
Ejemplo n.º 10
0
 def check_calculation_option(self, data):
     fName = 'calculation_option'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     calculation_options = ["NPS","d","D"]
     vd.xChoice(value, calculation_options, fName)
Ejemplo n.º 11
0
 def check_composition_type(self, data):
     fName = 'composition_type'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     composition_type_options = ["mole_percent", "mass_percent"]
     vd.xChoice(value, composition_type_options, fName)
Ejemplo n.º 12
0
 def check_Ncell_basis(self, data):
     fName = 'Ncell_basis'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     Ncell_basis_options = ["manual","max_possible"]
     vd.xChoice(value, Ncell_basis_options, fName)
Ejemplo n.º 13
0
 def check_oxygen_correction(self, data):
     fName = 'oxygen_correction'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     sampling_options = ["yes", "no"]
     vd.xChoice(value, sampling_options, fName)
Ejemplo n.º 14
0
 def check_d_basis(self, data):
     fName = 'd_basis'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     calculation_options = ["calculated", "manual"]
     vd.xChoice(value, calculation_options, fName)
Ejemplo n.º 15
0
 def check_cell_range(self, data):
     fName = 'cell_range'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xString(value, fName)
     cell_range_options = ["L","M","H"]
     vd.xChoice(value, cell_range_options, fName)
Ejemplo n.º 16
0
 def check_insulation_type(self, value):
     vd.xString(value)
     item_options = [
         "PVC", "XLPE", "MIN_LT_500", "MIN_LT_750", "MIN_HT_500",
         "MIN_HT_750"
     ]
     vd.xChoice(value, item_options)
Ejemplo n.º 17
0
 def check_sampling_basis(self, data):
     fName = 'sampling_basis'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     sampling_basis_options = ["wet", "dry"]
     vd.xChoice(value, sampling_basis_options, fName)
Ejemplo n.º 18
0
 def check_schedule(self, value):
     vd.xString(value)
     schedule_options = [
         '5', '10', '20', '30', '40', '60', '80', '100', '120', '140',
         '160', 'STD', 'XS', 'XXS', '5S', '10S', '40S', '80S'
     ]
     vd.xChoice(value, schedule_options)
Ejemplo n.º 19
0
 def check_flue_as(self, data):
     fName = 'flue_as'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     fuel_as_options = ["mole_per_fuelmole", "mass_per_fuelmass"]
     vd.xChoice(value, fuel_as_options, fName)
Ejemplo n.º 20
0
 def check_Tamb(self, value):
     vd.xNumber(value)
     value['_val'] = int(value['_val'])
     item_options = [
         10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90,
         95
     ]
     vd.xChoice(value, item_options)
Ejemplo n.º 21
0
 def check_calculation_option(self, value):
     vd.xString(value)
     calculation_options = [
                         "calcSPL",
                         "calcPWL",
                         "calcDistance"
                         ]
     vd.xChoice(value, calculation_options)
Ejemplo n.º 22
0
    def check_material(self, value):
        vd.xString(value)
        material_options = [
            "Carbon Steel(non-corroded)", "Carbon Steel(corroded)",
            "Stainless Steel", "Titanium and Cu-Ni", "Glass Reinforced Pipe",
            "Polyethylene (PVC)"
        ]

        vd.xChoice(value, material_options)
Ejemplo n.º 23
0
 def check_MOC(self, data):
     fName = 'MOC'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     MOC_options = [
         "SA285-GrC", "SA516-Gr55", "SA516-Gr60", "SA516-Gr70",
         "SA240-Tp304L", "SA240-Tp316L", "Other"
     ]
     vd.xChoice(value, MOC_options, fName)
Ejemplo n.º 24
0
 def check_NPS(self, value):
     if (xisBlank(value)):
         return
     vd.xNumber(value)
     nps_options = [
         "0.125", "0.25", "0.375", "0.5", "0.75", "1", "1.25", "1.5", "2",
         "2.5", "3", "3.5", "4", "5", "6", "8", "10", "12", "14", "16",
         "18", "20", "22", "24", "26", "28", "30", "32", "34", "36"
     ]
     vd.xChoice(value, nps_options)
Ejemplo n.º 25
0
 def check_Pinlet_cooler_basis(self, data):
     if ('interstage_cooling' not in data):
         return
     if (data['interstage_cooling']['_val'] == 'No'):
         return
     fName = 'Pinlet_cooler_basis'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     Pinlet_cooler_basis_options = ["as_specified", "geometric_mean"]
     vd.xChoice(value, Pinlet_cooler_basis_options, fName)
Ejemplo n.º 26
0
 def check_Tc_basis(self, data):
     if ('short_circuit_calculation' not in data):
         return
     if (data['short_circuit_calculation']['_val'] != 'yes'):
         return
     fName = 'Tc_basis'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     item_options = ["default", "custom"]
     vd.xChoice(value, item_options, fName)
Ejemplo n.º 27
0
    def check_conductor_type(self, data):
        if ('insulation_type' not in data):
            return

        fName = 'conductor_type'
        vd.xRequired(data, fName, fName)
        value = data[fName]
        vd.xString(value, fName)
        insulation_type = data['insulation_type']['_val']
        item_options = get_available_conductors(insulation_type)
        vd.xChoice(value, item_options, fName)
Ejemplo n.º 28
0
 def check_NPS(self, data):
     if ('calculation_option' not in data):
         return
     if (data['calculation_option']['_val'] !='NPS'):
         return
     fName = 'NPS'
     vd.xRequired(data,fName,fName)
     value = data[fName]
     vd.xNumber(value, fName)
     nps_options = ["0.125", "0.25", "0.375", "0.5", "0.75", "1", "1.25", "1.5", "2", "2.5", "3", "3.5", "4", "5", "6", "8", "10", "12", "14", "16", "18", "20", "22", "24", "26", "28", "30", "32", "34", "36"]
     vd.xChoice(value, nps_options, fName)
Ejemplo n.º 29
0
 def check_soil_thermal_resistivity(self, data):
     if ('installation_method' not in data):
         return
     if (data['installation_method']['_val'] not in ["D1", "D2"]):
         return
     fName = 'soil_thermal_resistivity'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xNumber(value, fName)
     value['_val'] = roundit(float(value['_val']))
     item_options = [0.5, 0.7, 1, 1.5, 2, 2.5, 3]
     vd.xChoice(value, item_options, fName)
Ejemplo n.º 30
0
 def check_underground_spacing(self, data):
     if ('installation_method' not in data):
         return
     if (data['installation_method']['_val'] not in ["D1", "D2"]):
         return
     fName = 'underground_spacing'
     vd.xRequired(data, fName, fName)
     value = data[fName]
     vd.xString(value, fName)
     installation_method = data['installation_method']['_val']
     item_options = get_available_underground_spacing(installation_method)
     vd.xChoice(value, item_options, fName)