nass-simscape/initialize/initializeTy.m

30 lines
779 B
Mathematica
Raw Normal View History

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
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
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
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
%% Save
save('./mat/stages.mat', 'ty', '-append');
2018-06-16 22:57:54 +02:00
end