コード例 #1
0
    def propertiesEquipment(cls):
        l = [(QApplication.translate("pychemqt", "Mode"),
              ("TEXT_TIPO", "tipo_calculo"), str),
             (QApplication.translate("pychemqt", "Model"),
              ("TEXT_MODEL", "modelo_rendimiento"), str),
             (QApplication.translate("pychemqt", "Pressure Loss Model"),
              ("TEXT_MODEL_DELTAP", "modelo_DeltaP"), str),
             (QApplication.translate("pychemqt", "Throat Diameter"), "Dt",
              Length),
             (QApplication.translate("pychemqt", "Throat Length"), "Lt",
              Length),
             (QApplication.translate(
                 "pychemqt", "Johnstone method scrubber constant"),
                 "k", Dimensionless),
             (QApplication.translate(
                 "pychemqt", "Calvert method scrubber constant"),
                 "f", Dimensionless),
             (QApplication.translate("pychemqt", "Drops Diameter"), "dd",
              Length),
             (QApplication.translate("pychemqt", "Throat Cross Area"), "At",
              Area),
             (QApplication.translate("pychemqt", "Throat Speed"), "Vg", Speed)]

        for prop in Separador_SolidGas.propertiesEquipment():
            l.append(prop)

        return l
コード例 #2
0
    def propTxt(self):
        Gas = self.kwargs["entradaGas"]

        txt = os.linesep + "#---------------"
        txt += QApplication.translate("pychemqt", "Calculate properties")
        txt += "-----------------#" + os.linesep
        txt += self.propertiesToText(range(13))
        txt += Separador_SolidGas.propTxt(self, 13, Gas)
        return txt