Closed sjlukacs closed 3 years ago
PYroMat currently includes two collections: ig (ideal gas) and mp (multi-phase). The multi-phase collection includes water, so
import pyromat as pm H2O = pm.get('mp.H2O') hL,hV = H2O.hs(p=1.01325) sL,sV = H2O.ss(p=1.01325)
This gives you the liquid and vapor enthalpies and entropies for the phase transition at 1 standard atmosphere (1.01325bar). The enthalpy of vaporization would be (hV - hL).
Type
help(H2O)
to get more information.
All of the ig (ideal gas) collection data in PYroMat are for the gas phase only, so you'll only be able to get the vapor side for the lead-acid reaction you list there. You would have to model the solid enthalpy yourself. It depends on what you're doing, but you may be able to use a simple constant-specific heat model, so entropy and enthalpy calculations could be quite simple. At the moment, PYroMat does not have data on solid substances; only vapor and a little liquid.
T
h - h0 = int c dT = c (T-T0) (assume const. c) T0
T
s - s0 = int c/T dT = c ln (T/T0) (assume incompressible) T0
This breaks if the temperature ranges are very wide, because solids don't really have constant specific heats; especially when T is very low.
The simplest approach is to just use an enthalpy/entropy of reaction and assume the phases are at the same temperature. Again, it depends on what you're doing as to whether or not that's enough.
Hope that helps!
Christopher R. Martin Ph.D.
Assistant Professor of Mechanical Engineering
Penn State University - Altoona College
(+1 814) 949-5227
From: sjlukacs notifications@github.com Sent: Sunday, February 21, 2021 2:38 PM To: chmarti1/PYroMat PYroMat@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [chmarti1/PYroMat] how to get for different phases (#12)
forgive me, i'm unclear how to get the values for the enthalpy and entropy of liquid states, for instance, from the ig table. to solve problems like, calculate the enthalpy and entropy for the following reactions:
H2O(l) -> H2O(g) or 2HCl(g) + Pb(s) -> PbCl2(s) + H2(g)
thank you in advance, lucas
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fchmarti1%2FPYroMat%2Fissues%2F12&data=04%7C01%7Ccrm28%40psu.edu%7Cd1cfbd862cae4879488b08d8d6a045e2%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637495331140300642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4i7PHy%2FD29lFI7Wtfi%2FUTX4WK%2F%2FoNzh%2F9WcF9JKAArA%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEVXQ4WNPWCDDA6WTWLD2CTTAFOLRANCNFSM4X7JPBIQ&data=04%7C01%7Ccrm28%40psu.edu%7Cd1cfbd862cae4879488b08d8d6a045e2%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637495331140300642%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1ua2Yacxl%2Bj%2Bgi5enTBBCIQtNrhk92BVURxe9udT9Z4%3D&reserved=0.
forgive me, i'm unclear how to get the values for the enthalpy and entropy of liquid states, for instance, from the ig table. to solve problems like, calculate the enthalpy and entropy for the following reactions:
H2O(l) -> H2O(g) or 2HCl(g) + Pb(s) -> PbCl2(s) + H2(g)
thank you in advance, lucas