% -- This program plots the variation of Inter fibre distance w.r.t -- %
% -- Volume fraction of fiber (Vf) For a square and hexagonal unit cell % % Input the dimension of unit cell R = 1; % Input a row matrix for volume fraction Vf = 0.01:0.01:1; % Calculate the inter fibre distance using derived formulae pi = 3.1419; h_square = 2*R*(1-sqrt(4*Vf./pi)); h_hexagon = 2*R*(1-sqrt((2*sqrt(3)*Vf./pi))); plot(h_square,Vf,h_hexagon,Vf) title('Variation of Inter fibre distance w.r.t the Volume fraction of fibre') xlabel('Volume fraction (V_f)') ylabel('Inter fibre distance (h)') legend('Square unit cell','Hexagonal Unit Cell')