2020-02-17 18:21:20 +01:00
|
|
|
function [axisc] = initializeAxisc(args)
|
|
|
|
|
|
|
|
arguments
|
2020-02-18 16:46:35 +01:00
|
|
|
args.type char {mustBeMember(args.type,{'none', 'rigid', 'flexible', 'modal-analysis'})} = 'flexible'
|
2020-02-17 18:21:20 +01:00
|
|
|
end
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2020-02-03 17:50:52 +01:00
|
|
|
axisc = struct();
|
2018-10-29 12:57:13 +01:00
|
|
|
|
2020-02-17 18:21:20 +01:00
|
|
|
switch args.type
|
|
|
|
case 'none'
|
|
|
|
axisc.type = 0;
|
|
|
|
case 'rigid'
|
|
|
|
axisc.type = 1;
|
|
|
|
case 'flexible'
|
|
|
|
axisc.type = 2;
|
2020-02-18 16:46:35 +01:00
|
|
|
case 'modal-analysis'
|
|
|
|
axisc.type = 3;
|
2020-02-17 18:21:20 +01:00
|
|
|
end
|
|
|
|
|
2020-02-03 17:50:52 +01:00
|
|
|
% Structure
|
|
|
|
axisc.structure.density = 3400; % [kg/m3]
|
|
|
|
axisc.structure.STEP = './STEPS/axisc/axisc_structure.STEP';
|
2018-10-29 12:57:13 +01:00
|
|
|
|
2020-02-03 17:50:52 +01:00
|
|
|
% Wheel
|
|
|
|
axisc.wheel.density = 2700; % [kg/m3]
|
|
|
|
axisc.wheel.STEP = './STEPS/axisc/axisc_wheel.STEP';
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2020-02-03 17:50:52 +01:00
|
|
|
% Mass
|
|
|
|
axisc.mass.density = 7800; % [kg/m3]
|
|
|
|
axisc.mass.STEP = './STEPS/axisc/axisc_mass.STEP';
|
|
|
|
|
|
|
|
% Gear
|
|
|
|
axisc.gear.density = 7800; % [kg/m3]
|
|
|
|
axisc.gear.STEP = './STEPS/axisc/axisc_gear.STEP';
|
|
|
|
|
|
|
|
save('./mat/stages.mat', 'axisc', '-append');
|