diff --git a/Test.asv b/Test.asv deleted file mode 100644 index 0bc3753..0000000 --- a/Test.asv +++ /dev/null @@ -1,59 +0,0 @@ -%% paramétres variables -BP_leg_radius = 100:10:150; -TP_leg_radius = 50:10:100; -BP_leg_ang = 0:1:30; -TP_leg_ang = 0:1:30; - -%% intervalle -intervalle1=10e-6; -intervalle2=10e-3; -% variation=1e-3; - -%% Study the effect of the radius of the top platform position of the legs -max_disp = zeros(length(BP_leg_radius),length(TP_leg_radius),length(BP_leg_ang),length(TP_leg_ang), 6); -stiffness = zeros(length(BP_leg_radius),length(TP_leg_radius),length(BP_leg_ang),length(TP_leg_ang), 6, 6); - -for Blri = 1:length(BP_leg_radius) - for Tlri = 1:length(TP_leg_radius) - for Blai = 1:length(BP_leg_ang) - for Tlai = 1:length(TP_leg_ang) - BP.leg.rad = BP_leg_radius(Blri); - TP.leg.rad = TP_leg_radius(Tlri); - BP.leg.ang = BP_leg_ang(Blai); - TP.leg.ang = TP_leg_ang(Tlai); - run stewart_init.m; - max_disp(Blri,Tlri,Blai,Tlai, :) = getMaxPureDisplacement(Leg, J)'; - stiffness(Blri,Tlri,Blai,Tlai, :, :) = getStiffnessMatrix(Leg, J); - end - end - end -end - -%% -M = min(min(stiffness(:, : , :, :, 1, 1), stiffness(:, : , :, :, 2, 2)), stiffness(:, : , :, :, 3, 3)); -[C,I] = max(M(:)); - -[I1,I2,I3,I4] = ind2sub(size(stiffness(:, : , :, :, 3, 3)),I); -BP.leg.rad = BP_leg_radius(I1) -TP.leg.rad = TP_leg_radius(I2) -BP.leg.ang = BP_leg_ang(I3) -TP_leg_ang(I4) - -% %% -% for Blri = 1:length(BP_leg_radius) -% for Tlri = 1:length(TP_leg_radius) -% for Blai = 1:length(BP_leg_ang) -% for Tlai = 1:length(TP_leg_ang) -% if max_disp==intervalle1 -% i=i+1; -% s1(1,i)=BP_leg_radius(Blri); -% s1(2,i)=TP_leg_radius(Tlri); -% s1(3,i)=BP_leg_ang(Blai); -% s1(4,i)=TP_leg_ang(Tlai); -% else -% end -% end -% end -% end -% end -% diff --git a/Test.m b/Test.m index b3d6ee8..c8273bf 100644 --- a/Test.m +++ b/Test.m @@ -1,13 +1,13 @@ -%% paramétres variables +%% Variable parameters BP_leg_radius = 100:10:150; TP_leg_radius = 50:10:100; BP_leg_ang = 0:1:30; TP_leg_ang = 0:1:30; -%% intervalle -intervalle1=10e-6; +%% +intervalle1=10e-6; intervalle2=10e-3; -% variation=1e-3; +% variation=1e-3; %% Study the effect of the radius of the top platform position of the legs max_disp = zeros(length(BP_leg_radius),length(TP_leg_radius),length(BP_leg_ang),length(TP_leg_ang), 6); @@ -30,10 +30,10 @@ for Blri = 1:length(BP_leg_radius) end %% -M = min(min(stiffness(:, : , :, :, 4, 4), stiffness(:, : , :, :, 5, 5)), stiffness(:, : , :, :, 6, 6)); +M = min(max_disp(:, : , :, :, 1), max_disp(:, : , :, :, 2)); [C,I] = max(M(:)); -[I1,I2,I3,I4] = ind2sub(size(stiffness(:, : , :, :, 3, 3)),I); +[I1,I2,I3,I4] = ind2sub(size(max_disp(:, : , :, :, 3)),I); BP_leg_radius(I1) TP_leg_radius(I2) BP_leg_ang(I3) @@ -56,4 +56,4 @@ TP_leg_ang(I4) % end % end % end -% +% diff --git a/stewart_parameters.m b/stewart_parameters.m index 7fb3769..5c4959b 100644 --- a/stewart_parameters.m +++ b/stewart_parameters.m @@ -8,7 +8,7 @@ BP = struct(); BP.rad.int = 0; %mm BP.rad.ext = 150; %mm BP.thickness = 10; % mm -BP.leg.rad = 140; %mm +BP.leg.rad = 100; %mm BP.leg.ang = 5; %deg BP.density = 8000; %kg/m^3 BP.color = [0.5 0.5 0.5]; %rgb @@ -16,9 +16,9 @@ BP.color = [0.5 0.5 0.5]; %rgb %% TOP Plate TP = struct(); TP.rad.int = 0;%mm -TP.rad.ext = 150; %mm +TP.rad.ext = 100; %mm TP.thickness = 10; % mm -TP.leg.rad = 100; %mm +TP.leg.rad = 90; %mm TP.leg.ang = 5; %deg TP.density = 8000; %kg/m^3 TP.color = [0.5 0.5 0.5]; %rgb @@ -53,7 +53,7 @@ SP.density.top = 8000; %kg/m^3 SP.m = SP.density.bottom*2*pi*((SP.rad.bottom*1e-3)^2)*(SP.height.bottom*1e-3); %kg SP.color.bottom = [0.5 0.5 0.5]; %rgb SP.color.top = [0.5 0.5 0.5]; %rgb -SP.k.ax = 0; % N*m/deg +SP.k.ax = 1e2; % N*m/deg SP.ksi.ax = 10; SP = updateDamping(SP); diff --git a/stewart_simscape.slx b/stewart_simscape.slx index 24b7ad4..d34ba8b 100644 Binary files a/stewart_simscape.slx and b/stewart_simscape.slx differ