예제 #1
0
    def Update(self):
        '''
        Update cycle class with selected HX type
        Update cycle class with Abstract State
        '''
        if self.EvapSolver == 'Moving-Boundary':
            if self.EvapType == 'Fin-tube':
                self.Evaporator = EvaporatorClass()
                self.Evaporator.Fins = FinInputs()
            elif self.EvapType == 'Micro-channel':
                raise
            else:
                raise
        elif self.EvapSolver == 'Finite-Element':
            raise
        else:
            raise

        if self.CondSolver == 'Moving-Boundary':
            if self.CondType == 'Fin-tube':
                self.Condenser = CondenserClass()
                self.Condenser.Fins = FinInputs()
            elif self.CondType == 'Micro-channel':
                self.Condenser = MicroCondenserClass()
                self.Condenser.Fins = MicroFinInputs()
            else:
                raise
        elif self.CondSolver == 'Finite-Element':
            raise
        else:
            raise
        #Abstract State
        self.AS = CP.AbstractState(self.Backend, self.Ref)
예제 #2
0
파일: PHECycle.py 프로젝트: yuson95/ACHP
    def Update(self):
        '''
        Update cycle class with selected HX type
        Update cyle class with Abstract State
        '''
        if self.EvapSolver == 'Moving-Boundary':
            if self.EvapType == 'Fin-tube':
                self.Evaporator = EvaporatorClass()
                self.Evaporator.Fins = FinInputs()
            elif self.EvapType == 'Micro-channel':
                self.Evaporator = MicroChannelEvaporatorClass()
                self.Evaporator.Fins = MicroFinInputs()
            else:
                raise
        elif self.EvapSolver == 'Finite-Element':
            self.Evaporator = DiscretizeEvaporatorClass()
        else:
            raise

        if self.CondSolver == 'Moving-Boundary':
            if self.CondType == 'Fin-tube':
                self.Condenser = CondenserClass()
                self.Condenser.Fins = FinInputs()
            elif self.CondType == 'Micro-channel':
                self.Condenser = MicroCondenserClass()
                self.Condenser.Fins = MicroFinInputs()
            else:
                raise
        elif self.CondSolver == 'Finite-Element':
            self.Condenser = DiscretizeCondenserClass()
        else:
            raise

        #Abstract State
        self.AS = CP.AbstractState(self.Backend, self.Ref)
        if hasattr(self, 'MassFrac'):
            self.AS.set_mass_fractions([self.MassFrac])
        elif hasattr(self, 'VoluFrac'):
            self.AS.set_volu_fractions([self.VoluFrac])
        #Abstract State for SecLoopFluid
        self.AS_SLF = CP.AbstractState(self.Backend_SLF, self.SecLoopFluid)
        if hasattr(self, 'MassFrac_SLF'):
            self.AS_SLF.set_mass_fractions([self.MassFrac_SLF])
        elif hasattr(self, 'VoluFrac_SLF'):
            self.AS_SLF.set_volu_fractions([self.VoluFrac_SLF])
예제 #3
0
Fins.Air.Vdot_ha = 1.7934  #rated volumetric flowrate
Fins.Air.Tdb = 308.15  #Dry Bulb Temperature
Fins.Air.p = 101325  #Air pressure in Pa
Fins.Air.RH = 0.51  #Relative Humidity
Fins.Air.FanPower = 160

params = {
    'Ref': 'R410A',
    'mdot_r': 0.0708,
    'Tin_r': 333.15,
    'psat_r': PropsSI('P', 'T', 323.15, 'Q', 1.0, 'R410A'),
    'Fins': Fins,
    'FinsType':
    'WavyLouveredFins',  #WavyLouveredFins, HerringboneFins, PlainFins
    'Verbosity': 0
}

Cond = CondenserClass(**params)
Cond.Calculate()

print('Heat transfer rate in condenser is', Cond.Q, 'W')
print('Heat transfer rate in condenser (superheat section) is',
      Cond.Q_superheat, 'W')
print('Heat transfer rate in condenser (twophase section) is', Cond.Q_2phase,
      'W')
print('Heat transfer rate in condenser (subcooled section) is', Cond.Q_subcool,
      'W')
print('Fraction of circuit length in superheated section is', Cond.w_superheat)
print('Fraction of circuit length in twophase section is', Cond.w_2phase)
print('Fraction of circuit length in subcooled section is', Cond.w_subcool)