--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.
Matthis is right. Vectorization via python is probably your best bet. You are right, some of the calculations with HAPropsSI are quite slow, but I doubt you will see a massive improvement with vectorization. Your better bet is to figure out the water mole fraction or humidity ratio yourself, because that is a non iterative calculation one you know T P and one of the mole fraction or humidity ratio.
On Oct 13, 2017 4:20 AM, "Matthis Thorade" <matthis...@gmail.com> wrote:
Hi, I am not a MAtlab user, but could you try using the Matlab-Python interface as discussed here?--
https://github.com/CoolProp/CoolProp/issues/1497
Am Freitag, 13. Oktober 2017 08:23:46 UTC+2 schrieb Forest Reider:Hello, I am new to CoolProp and using Matlab. I need some humid air properties and therefore making use of HAPropsSI.For example:% calculate enthalpyfor i = 1:height(T)T.enthalpy(i) = CoolProp.HAPropsSI('H','T',T.temp(i),'R',T.humidity(i),'P',T.pressure(i));endHowever, it is very slow as the height of my table,T, increases. Passing Matlab vectors doesn't work. From the documentation it seems that some sort of vectorization should be possible using low level functions, but I don't quite understand how to implement it.Could someone point to a source describing how to do this for HAPropsSI? or a simple example?Many thanks,Forest
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Can you please post your function? That's an impressive speedup to say the least!
On Mon, Oct 16, 2017 at 6:56 AM, Forest Reider <forest...@gmail.com> wrote:
In the end I was able to try some of the recommendations. Calling CoolProps via Python it was indeed easier to pass a vector of values, but the calculation time was not significantly reduced. Writing my own vectorized psychrometric function in Matlab was faster (0.004s vs 9s).Thanks for all the help.
On Friday, October 13, 2017 at 8:23:46 AM UTC+2, Forest Reider wrote:Hello, I am new to CoolProp and using Matlab. I need some humid air properties and therefore making use of HAPropsSI.For example:% calculate enthalpyfor i = 1:height(T)T.enthalpy(i) = CoolProp.HAPropsSI('H','T',T.temp(i),'R',T.humidity(i),'P',T.pressure(i));endHowever, it is very slow as the height of my table,T, increases. Passing Matlab vectors doesn't work. From the documentation it seems that some sort of vectorization should be possible using low level functions, but I don't quite understand how to implement it.Could someone point to a source describing how to do this for HAPropsSI? or a simple example?Many thanks,Forest
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolpro...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/2f6b63d1-44c0-43dc-8149-824340478cc2%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolpro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/c0936d65-56e3-4515-9522-5e9c82dbeebc%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.