2019-07-15 11:07:24 +02:00
|
|
|
% Spindle
|
|
|
|
% :PROPERTIES:
|
2019-11-22 10:36:26 +01:00
|
|
|
% :header-args:matlab+: :tangle ../src/initializeRz.m
|
2019-07-15 11:07:24 +02:00
|
|
|
% :header-args:matlab+: :comments org :mkdirp yes
|
|
|
|
% :header-args:matlab+: :eval no :results none
|
|
|
|
% :END:
|
|
|
|
% <<sec:initializeRz>>
|
|
|
|
|
2019-11-22 10:36:26 +01:00
|
|
|
% This Matlab function is accessible [[file:../src/initializeRz.m][here]].
|
2019-07-15 11:07:24 +02:00
|
|
|
|
|
|
|
|
2018-10-24 15:08:23 +02:00
|
|
|
function [rz] = initializeRz(opts_param)
|
|
|
|
%% Default values for opts
|
|
|
|
opts = struct('rigid', false);
|
|
|
|
|
|
|
|
%% Populate opts with input parameters
|
|
|
|
if exist('opts_param','var')
|
2019-11-22 10:36:26 +01:00
|
|
|
for opt = fieldnames(opts_param)'
|
|
|
|
opts.(opt{1}) = opts_param.(opt{1});
|
|
|
|
end
|
2018-10-24 15:08:23 +02:00
|
|
|
end
|
|
|
|
|
2018-06-16 22:57:54 +02:00
|
|
|
%%
|
|
|
|
rz = struct();
|
|
|
|
|
2018-10-29 12:57:13 +01:00
|
|
|
%% Spindle - Static Properties
|
|
|
|
% Spindle - Slip Ring
|
|
|
|
rz.slipring.density = 7800; % [kg/m3]
|
|
|
|
rz.slipring.color = [0.792 0.820 0.933];
|
|
|
|
rz.slipring.STEP = './STEPS/rz/Spindle_Slip_Ring.STEP';
|
|
|
|
% Spindle - Rotor
|
|
|
|
rz.rotor.density = 7800; % [kg/m3]
|
|
|
|
rz.rotor.color = [0.792 0.820 0.933];
|
|
|
|
rz.rotor.STEP = './STEPS/rz/Spindle_Rotor.STEP';
|
|
|
|
% Spindle - Stator
|
|
|
|
rz.stator.density = 7800; % [kg/m3]
|
|
|
|
rz.stator.color = [0.792 0.820 0.933];
|
|
|
|
rz.stator.STEP = './STEPS/rz/Spindle_Stator.STEP';
|
|
|
|
|
2018-10-24 15:08:23 +02:00
|
|
|
% Estimated mass of the mooving part
|
2018-10-12 13:22:29 +02:00
|
|
|
rz.m = 250; % [kg]
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-29 12:57:13 +01:00
|
|
|
%% Spindle - Dynamical Properties
|
2018-10-24 15:08:23 +02:00
|
|
|
|
|
|
|
if opts.rigid
|
2019-11-22 10:36:26 +01:00
|
|
|
rz.k.rot = 1e10; % Rotational Stiffness (Rz) [N*m/deg]
|
|
|
|
rz.k.tilt = 1e10; % Rotational Stiffness (Rx, Ry) [N*m/deg]
|
|
|
|
rz.k.ax = 1e12; % Axial Stiffness (Z) [N/m]
|
|
|
|
rz.k.rad = 1e12; % Radial Stiffness (X, Y) [N/m]
|
2018-10-24 15:08:23 +02:00
|
|
|
else
|
2019-11-22 10:36:26 +01:00
|
|
|
rz.k.rot = 1e6; % TODO - Rotational Stiffness (Rz) [N*m/deg]
|
|
|
|
rz.k.tilt = 1e6; % Rotational Stiffness (Rx, Ry) [N*m/deg]
|
|
|
|
rz.k.ax = 2e9; % Axial Stiffness (Z) [N/m]
|
|
|
|
rz.k.rad = 7e8; % Radial Stiffness (X, Y) [N/m]
|
2018-10-24 15:08:23 +02:00
|
|
|
end
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2019-11-22 10:36:26 +01:00
|
|
|
% Damping
|
|
|
|
rz.c.ax = 0.1*sqrt(rz.k.ax*rz.m);
|
|
|
|
rz.c.rad = 0.1*sqrt(rz.k.rad*rz.m);
|
|
|
|
rz.c.tilt = 0.1*sqrt(rz.k.tilt*rz.m);
|
|
|
|
rz.c.rot = 0.1*sqrt(rz.k.rot*rz.m);
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-11 10:25:57 +02:00
|
|
|
%% Save
|
|
|
|
save('./mat/stages.mat', 'rz', '-append');
|
2018-06-16 22:57:54 +02:00
|
|
|
end
|