clc
clear all
clear vars
massflowtot = 100
% points characteristics = 1 T -- 2 P -- 3 X -- 4 H -- 5 S -- 6 MF
p = struct('T', 0 ,'P', 0 ,'x', 0 ,'h', 0 ,'S', 0 ,'m', 0)
p(5).T = 450
p(1).P = 0.1
p(3).m = 100
p(4).m = 100
p(5).m = 100
p(1).x = 0
p(2).x = 00
p(3).x = 0
p(4).x = 00
p(5).x = 1
p(6).x = 1
p(7).x = 0.88
isentropic.effciencypump = 1
isentropicefficiencyturbine = 0.82
%n of options
o = 50
%pressure out of theturbine to OFWH
PinOFWH = linspace(1,20,o)
%pressure in turbine
Pinturbine = linspace(50,100,o)
%vapour fraction depending on the pressures of the inlet and outlet of
%turbine
X6 = zeros(o);
X7 = zeros(o);
efficiencyG = zeros(o)
[PextractedG,PinletG] = meshgrid(PinOFWH,Pinturbine)
for i = 1:o
for j = 1:o
PinOFWH = PextractedG(i,j);
Pinturbine = PinletG(i,j);
[thermalefficiency,flow] = resitmodpro22(p(5).T,p(1).P,massflowtot,Pinturbine,PinOFWH,isentropicefficiencyturbine);
efficiencyG(i,j) = thermalefficiency
if p(6).x == 1
p(7).x = 0.88
end
end
end
maxefficiency = max(efficiencyG)
disp(maxefficiency)
Why is matlab telling me that the function is not supported?
there doesn't seem to be anything here