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

% Call global variables definition file
GlobalVars;

n=2;   % 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;

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