function Ix=IxHex3(N)
% This function returns a index vector for a heatexchanger in Var

% Call global variables definition file
GlobalVars;

n=5;   % Number of variables in this model

% First compute the number of indeces already used
Ixu = (NC+3)*NStr + 1*NCSTR + 1*NHtr + 3*NCmp + 1*NHex + 1*NCon + 2*NHex2;

Ix=(Ixu+1+n*(N-1):Ixu+n*N)';
