orcmkit / ORCmKit

ORC Modeling Kit: Tools for the modeling of ORC power systems in Python, Matlab and EES
MIT License
23 stars 18 forks source link

Errors when I try to run ORC kit #13

Open LauraSecu opened 6 years ago

LauraSecu commented 6 years ago

Hi guys, I tried to run the ORC model in Matlab and I have some errors. Can you help me, please, to solve these problems? Thank you in advance!

The errors are:

When I try to run the ExpanderModel in Matlab the error is:

ExpanderModel Undefined variable "CoolProp" or class "CoolProp.PropsSI".

Error in ExpanderModel (line 127) param.h_min = CoolProp.PropsSI('H','P',5e4,'T',253.15,fluid);

For HEX_profile the error is:

HEX_profile Error using HEX_profile (line 49) Not enough input arguments.

HEX_profile(fluid_h,m_dot_h,P_h_su,in_h_su,fluid_c,m_dot_c,P_c_su,in_c_su,Q_dot,param) Undefined function or variable 'sf_PropsSI_bar'.

Error in HEX_profile>Tcex_def (line 289) err = Tex-(Tsu+Qdot/Mdot/sf_PropsSI_bar('C', Tsu, Tex, Psu, fluid));

Error in HEX_profile>@(x)Tcex_def(x,T_c_su,P_c_su,m_dot_c,Q_dot,fluid_c) (line 271) T_c_ex = fsolve (@(x) Tcex_def(x, T_c_su, P_c_su, m_dot_c, Q_dot, fluid_c), T_c_su,options);

Error in fsolve (line 219) fuser = feval(funfcn{3},x,varargin{:});

Error in HEX_profile (line 271) T_c_ex = fsolve (@(x) Tcex_def(x, T_c_su, P_c_su, m_dot_c, Q_dot, fluid_c), T_c_su,options);

For ORC model: OrcModel5 Error using load Unable to read file 'C:\Users\RDickes\Google Drive\PhD\MOR study\ORC\Experimental database\Sun2Power\Evaporator\ParametersCalibration_EV.mat'. No such file or directory.

Error in OrcModel5 (line 61) load([EV_folder, 'ParametersCalibration_EV.mat'])

For PistoExpander: PistonExpander Undefined variable "CoolProp" or class "CoolProp.PropsSI".

Error in PistonExpander (line 58) param.h_min = CoolProp.PropsSI('H','P',5e4,'T',253.15,fluid);

PumpModel PumpModel Undefined variable "CoolProp" or class "CoolProp.PropsSI".

Error in PumpModel (line 104) param.h_min = CoolProp.PropsSI('H','P',5e4,'T',253.15,fluid);

TS diagram

Ts_diagram Error using Ts_diagram (line 71) Not enough input arguments.

davideziviani commented 6 years ago

@LauraSecu we are going to look at those errors asap. I have the feeling that CoolProp library has not being recognized. Could you check that by running a couple of simple example of CoolProp that you can find here

LauraSecu commented 6 years ago

Hello guys, I didn't manage to fix the problem with this error:  PumpModelUndefined variable "CoolProp" or class "CoolProp.PropsSI". Error in PumpModel (line 104)    param.h_min =  CoolProp.PropsSI('H','P',5e4,'T',253.15,fluid); I use Matlab 2015 and + coolprop. Do you think there may be a compatibility problem between the two? On Thursday, May 31, 2018, 2:59:40 PM GMT+2, dziviani notifications@github.com wrote:

@LauraSecu we are going to look at those errors asap. I have the feeling that CoolProp library has not being recognized. Could you check that by running a couple of simple example of CoolProp that you can find here

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

LauraSecu commented 6 years ago

And for HEX_profile I have this error:  HEX_profileError using HEX_profile (line 49)Not enough input arguments. Please help me. Thank you in advance! 

Regards,Laura

On Thursday, May 31, 2018, 2:59:40 PM GMT+2, dziviani <notifications@github.com> wrote:  

@LauraSecu we are going to look at those errors asap. I have the feeling that CoolProp library has not being recognized. Could you check that by running a couple of simple example of CoolProp that you can find here

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.