[docs]@_phasedocsdefgas_pure_TRC(phase,T='pore.temperature',a=[],):r""" Parameters ---------- %(phase)s %(T)s a : list The coefficients to use (see notes for form of equation). If not given the ``phase['param.CAS']`` is used to lookup the values from ``chemicals.heat_capacity.TRC_gas_data`` Returns ------- """# TRCCpfromchemicals.heat_capacityimportTRC_gas_dataT=phase[T]iflen(a)==0:c=TRC_gas_data.loc[phase.params['CAS']]a=list(c[3:11])R=8.314462618y=np.zeros_like(T)temp=(T-a[7])/(T+a[6])mask=T>a[7]y[mask]=temp[mask]Cp=R*(a[0]+(a[1]/(T**2))*np.exp(-a[1]/T)+a[3]*(y**2)+(a[4]-a[5]/((T-a[7])**2))*(y**8))returnCp
[docs]@_phasedocsdefgas_mixture_yweighted(phase,Cps='pore.heat_capacity.*',):r""" Uses a linearly mole fraction weighted average Parameters ---------- %(phase)s %(Cps)s Returns ------- """Cpmix=mixing_rule(phase=phase,prop=Cps,mode='linear')returnCpmix
[docs]@_phasedocsdefliquid_mixture_xweighted(phase,Cps='pore.heat_capacity.*',):r""" Uses a linearly mole fraction weighted average Parameters ---------- %(phase)s %(Cps)s Returns ------- """Cpmix=mixing_rule(phase=phase,prop=Cps,mode='linear')returnCpmix