2018-10-24 15:08:23 +02:00
|
|
|
function [ty] = initializeTy(opts_param)
|
|
|
|
%% Default values for opts
|
|
|
|
opts = struct('rigid', false);
|
|
|
|
|
|
|
|
%% Populate opts with input parameters
|
|
|
|
if exist('opts_param','var')
|
|
|
|
for opt = fieldnames(opts_param)'
|
|
|
|
opts.(opt{1}) = opts_param.(opt{1});
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-06-16 22:57:54 +02:00
|
|
|
%%
|
|
|
|
ty = struct();
|
|
|
|
|
2018-10-12 13:22:29 +02:00
|
|
|
ty.m = 250; % [kg]
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-24 15:08:23 +02:00
|
|
|
if opts.rigid
|
|
|
|
ty.k.ax = 1e10; % Axial Stiffness for each of the 4 guidance (y) [N/m]
|
|
|
|
else
|
|
|
|
ty.k.ax = 1e7/4; % Axial Stiffness for each of the 4 guidance (y) [N/m]
|
|
|
|
end
|
2018-10-12 18:17:03 +02:00
|
|
|
ty.k.rad = 9e9/4; % Radial Stiffness for each of the 4 guidance (x-z) [N/m]
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-06-21 11:42:46 +02:00
|
|
|
ty.c.ax = 100*(1/5)*sqrt(ty.k.ax/ty.m);
|
|
|
|
ty.c.rad = 100*(1/5)*sqrt(ty.k.rad/ty.m);
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-11 10:25:57 +02:00
|
|
|
%% Save
|
|
|
|
save('./mat/stages.mat', 'ty', '-append');
|
2018-06-16 22:57:54 +02:00
|
|
|
end
|