I am trying to model an isentropic problem (i.e. specific entropy remains constant). My goal is to do this without making assumptions about the fluid being either an ideal or calorically perfect gas, so I am left with the basic conservation laws. This is not a problem, but I need to use the process (isentropic) to relate my various states. What I need to do is set s1 = s2, but it doesn't seem like Modelica's BaseProperties has a means of doing this. What I would like to know is:
- Can I pass specific entropy "s" (not to be confused with enthalpy "h") to BaseProperties or some other function along with another property (maybe P) and get back the thermodynamic state of the medium? I've looked through most of the workings of the Media library and I see there are functions for returning specific entropy given a thermodynamic state, but I don't think I can provide "s" and a variable to get my state.
- On a related note: Is it possible to easily integrate CoolProp into Modelica? I see there is an External Fluid library, but it is built to the Media library standard which means it too doesn't seem to accept "s" as an argument to determining thermodynamic state.
Thank you for your time.