Docsity

termo, Mec Flu e termo b, Manuais, Projetos, Pesquisas de Termodinâmica

Toggle sidebar
bg1
Universidade Tecnológica Federal do Paraná - Guarapuava (UTFPR-GP)
Curso de Engenharia Mecânica (COEME)
Disciplina de Termodinâmica A (Matriz 04) – EM44F-M04
Autor: prof. C. Naaktgeboren
Data: 14/03/2015
Propriedades das Substâncias Puras
Outras Equações de Estado
Equação de Estado de van der Waals
Proposta em 1873
Possui duas constantes
Calculadas pelo ponto crítico
Contabiliza
Interações moleculares (termo )
Volume ocupado pelo gás (termo )
Elegante
Analítica
Dada por:
com e determinados pelas relações:
a/
v
2
v−b
(P+)(v−b) = RT
a
v
2
a
b
= 0 e = 0
( )
∂P
∂v
T=
T
cr
( )
P
∂
2
v
∂
2
T=
T
cr
pf3
pf4
pf5
pf8
pf9
pfa

Pré-visualização parcial do texto

Baixe termo, Mec Flu e termo b e outras Manuais, Projetos, Pesquisas em PDF para Termodinâmica, somente na Docsity!

Universidade Tecnológica Federal do Paraná - Guarapuava (UTFPR-GP) Curso de Engenharia Mecânica (COEME) Disciplina de Termodinâmica A (Matriz 04) – EM44F-M Autor: prof. C. Naaktgeboren Data: 14/03/

Propriedades das Substâncias Puras

Outras Equações de Estado

Equação de Estado de van der Waals

Proposta em 1873 Possui duas constantes Calculadas pelo ponto crítico Contabiliza Interações moleculares (termo ) Volume ocupado pelo gás (termo ) Elegante Analítica

Dada por:

com e determinados pelas relações:

a / v^2

v − b

( P + ) ( v − b ) = RT

a

v^2

a b

( ) = 0 e = 0

∂ P

∂ v T = Tcr

∂^2 P

∂^2 v T = Tcr

Figura 1 – A isoterma crítica de uma substância pura possui um ponto de inflexão no estado crítico Fonte: Autoria própria

In [2]: (^) _#----------------------------------------------------------------------#

Bibliotecas

#----------------------------------------------------------------------#_

# CoolProp import CoolProp as cp import CoolProp.CoolProp as CP from CoolProp.State import State from CoolProp.Plots import PropsPlot

# Constants from scipy.constants import R as Ru # kJ/kmol·K

# Symbolic library import sympy

# Pretty-printing on IPython Notebook sympy.init_printing()

In [3]: (^) _#----------------------------------------------------------------------#

Constantes Críticas do Fluido

#----------------------------------------------------------------------#_

# Fluid critical constant factory def crit(FLUID=None): """ crit(FLUID=None): Returns a dictionary with the critical constants of the specified FLUID, or an empty dictionary otherwise. """ ret = dict() if FLUID != None: ret['R'] = Ru/CP.Props(FLUID, 'molemass') ret['T_cr'] = CP.Props(FLUID, 'Tcrit') ret['P_cr'] = CP.Props(FLUID, 'pcrit') return ret

In [10]: (^) # Test / Example

print crit(), crit('Water')

{} {'T_cr': 647.096, 'R': 0.4615230869726723, 'P_cr': 22064.0}

In [5]: (^) _#----------------------------------------------------------------------#

Equação de Estado de van der Waals

#----------------------------------------------------------------------#_

# Symbolic variables _P, _v, _T, _a, _b, _R = sympy.symbols('P v T a b R') Tc, Pc = sympy.symbols('T_cr P_cr')

# EoS factory def vanDerWaals(FLUID=None): """ vanDerWaals(FLUID=None): Returns the van der Waals Equation of State (EoS) for the specified FLUID, or the general expression otherwise. """ if FLUID != None: _a = aWaals(FLUID) _b = bWaals(FLUID) _R = crit(FLUID)['R'] else : _a, _b, _R = sympy.symbols('a b R') return sympy.Eq((_P+(_a/(_v_v)))(_v-_b), _R*_T)

# Coef 'a' factory def aWaals(FLUID=None): """ aWaals(FLUID=None): Returns the van der Waals EoS 'a' coefficient for the specified FLUID, or its general expression otherwise. """ return (sympy.Rational(27, 64) * _R2 * Tc2 / Pc).subs(crit(FLUID))

# Coef 'b' factory def bWaals(FLUID=None): """ bWaals(FLUID=None): Returns the van der Waals EoS 'b' coefficient for the specified FLUID, or its general expression otherwise. """ return (sympy.Rational(1, 8) * _R * Tc / Pc).subs(crit(FLUID))

In [6]: (^) # Test / Example

print "Equação de Estado de van der Waals:" display(vanDerWaals())

Equação de Estado de van der Waals:

( P + ) (− b + v ) = RT

a v^2

In [12]: (^) _#----------------------------------------------------------------------#

van der Waals Solver

#----------------------------------------------------------------------#_

def Waals(FLUID, state, ret=None, first=True): """ Waals(FLUID, state, ret=None, first=True): Solves the van der Waals EoS for the return variable {ret} for a given {FLUID} string and {state} dict. Only the first solution is given if {first}, otherwise, all solutions are bestowed. If the given {state} reduces the EoS to a single-variable one, then {ret} is obviously the only variable left and might be ommited. If the {state} does not reduce the EoS to a single-variable and {ret} is specified, the function returns an expression for {ret}. """ if FLUID == None: return None elif FLUID not in CP.FluidsList(): return None else : EoS = vanDerWaals(FLUID).subs(state) if ret == None: SOL = sympy.solve(EoS) else : SOL = sympy.solve(EoS, ret) if first: return SOL[0] else : return SOL

In [33]: (^) # Test / examples for __f in ['Water', 'Ethanol', 'n-Pentane', 'R134a']: print ' %10s : P = %7.6g kPa, v = %7.6g m³/kg --> T = %7.6g K' % (__f, 2000, 0.1, Wa als(__f, dict(P=2000, v=0.1))) print ' %10s : P = %7.6g kPa, v = %7.6g m³/kg --> T = %7.6g K' % (__f, 4000, 0.01, W aals(__f, dict(P=4000, v=0.01)))

Comparação

Water: P = 2000 kPa, v = 0.1 m³/kg --> T = 462.342 K Water: P = 4000 kPa, v = 0.01 m³/kg --> T = 378.999 K Ethanol: P = 2000 kPa, v = 0.1 m³/kg --> T = 1119.21 K Ethanol: P = 4000 kPa, v = 0.01 m³/kg --> T = 442.771 K n-Pentane: P = 2000 kPa, v = 0.1 m³/kg --> T = 1731.84 K n-Pentane: P = 4000 kPa, v = 0.01 m³/kg --> T = 531.784 K R134a: P = 2000 kPa, v = 0.1 m³/kg --> T = 2443.03 K R134a: P = 4000 kPa, v = 0.01 m³/kg --> T = 552.23 K

Figura 3 – Comparação de algumas isotermas obtidas pela Equação de Estado de van der Waals para alguns fluidos. Todas as isotermas críticas possuem ponto de inflexão, porém com valores de diferente do real. A Equação de Estado de van der Waals aproxima as verdadeiras isotermas para uma faixa de valores mais ampla que a dos Gases Ideais, mantendo ainda uma certa simplicidade. Fonte: Autoria própria

vcr ( P , v )

Precisa para , ou, equivalentemente:.

Equação de Estado de Benedict-Webb-Rubin

Proposta em 1940 Possui oito constantes Determinadas por experimento Maior complexidade e precisão que as anteriores

Equação de estado de Benedict-Webb-Rubin:

Precisa para , ou, equivalentemente:.

Versions

In [27]: (^) # Imports HTML Display System from IPython.display import HTML from types import ModuleType

PRE = """PackageVersion""" POS = """""" SET = set() for __p in [ eval(i) for i in dir() if isinstance(eval(i), ModuleType) ]: try : SET.add(""" %s %s """ % (__p.name, __p.version ,)) except : pass OUT = PRE for __e in SET: OUT += __e OUT += POS HTML(OUT)

P = (1 − ) ( + B ) − , onde : A = (1 − ) e B = (1 − )

R ¯ T

v ¯^2

c

v ¯ T^3

v ¯

A

v ¯^2

A 0

a

v ¯

B 0

b

v ¯

ρ ≤ 0.8 ρcr v ≥ 1.25 vcr

P = + ( T − − ) + + + (1 + )

R ¯ T

v ¯^

B 0 R ¯^ A 0

c 0

T^2

v ¯^2

b R ¯ T − a

v ¯^3

aα

v ¯^6

c

v ¯^3 T^2

v ¯^2

e − γ / v ¯

2

ρ ≤ 2.5 ρcr v ≥ 0.4 vcr

Out[27]: Package Version CoolProp 4.2. matplotlib.pylab 1.8. matplotlib 1.3. numpy 1.8. sympy 0.7.4. numpy.ma 1.