Ejemplo n.º 1
0
    def get_specification(self):
        """
        Returns the convergence evaluation specification for the
        PressureChanger unit model

        Returns
        -------
           ConvergenceEvaluationSpecification
        """
        s = cb.ConvergenceEvaluationSpecification()

        s.add_sampled_input(
            name='Inlet_Flowrate',
            pyomo_path='fs.pc.control_volume.properties_in[0].flow_mol',
            lower=1,
            upper=1e6,
            mean=5e3,
            std=5e3)

        s.add_sampled_input(
            name='Inlet_Pressure',
            pyomo_path='fs.pc.control_volume.properties_in[0].pressure',
            lower=1e5,
            upper=1e7,
            mean=1e6,
            std=3e6)
        return s
Ejemplo n.º 2
0
    def get_specification(self):
        s = cb.ConvergenceEvaluationSpecification()

        s.add_sampled_input(name='var_a',
                            pyomo_path='var_a',
                            lower=0.1,
                            upper=1.9,
                            mean=1.0,
                            std=0.25)

        s.add_sampled_input(name='param_b',
                            pyomo_path='param_b',
                            lower=50,
                            upper=150,
                            mean=100,
                            std=10)
        return s
Ejemplo n.º 3
0
    def get_specification(self):
        """
        Returns the convergence evaluation specification for the
        PressureChanger unit model

        Returns
        -------
           ConvergenceEvaluationSpecification
        """
        s = cb.ConvergenceEvaluationSpecification()

        s.add_sampled_input(
            name='Inlet_Flowrate',
            pyomo_path='fs.unit.control_volume.properties_in[0].flow_mol',
            lower=1,
            upper=1e6,
            distribution="uniform")

        s.add_sampled_input(
            name='Inlet_Enthalpy',
            pyomo_path='fs.unit.control_volume.properties_in[0].enth_mol',
            lower=5000,
            upper=60000,
            distribution="uniform")

        s.add_sampled_input(
            name='Inlet_Pressure',
            pyomo_path='fs.unit.control_volume.properties_in[0].pressure',
            lower=1e5,
            upper=5e6,
            distribution="uniform")

        s.add_sampled_input(name='Pressure_Ratio',
                            pyomo_path='fs.unit.ratioP[0]',
                            lower=1,
                            upper=4,
                            distribution="uniform")

        s.add_sampled_input(name='Efficiency',
                            pyomo_path='fs.unit.efficiency_isentropic[0]',
                            lower=0.2,
                            upper=1,
                            distribution="uniform")

        return s