Work on Control (HAC-LAC) + Models
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
function [] = initializeController(args)
|
||||
|
||||
arguments
|
||||
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf'})} = 'open-loop'
|
||||
args.K (6,6) = ss(zeros(6, 6))
|
||||
args.type char {mustBeMember(args.type,{'open-loop', 'iff', 'dvf', 'hac-dvf'})} = 'open-loop'
|
||||
args.K (6,6) = ss(zeros(6, 6))
|
||||
end
|
||||
|
||||
controller = struct();
|
||||
@@ -14,6 +14,8 @@ switch args.type
|
||||
controller.type = 2;
|
||||
case 'iff'
|
||||
controller.type = 3;
|
||||
case 'hac-dvf'
|
||||
controller.type = 4;
|
||||
end
|
||||
|
||||
controller.K = args.K;
|
||||
|
@@ -23,7 +23,7 @@ arguments
|
||||
args.Frz_z logical {mustBeNumericOrLogical} = true
|
||||
end
|
||||
|
||||
load('./disturbances/mat/dist_psd.mat', 'dist_f');
|
||||
load('./mat/dist_psd.mat', 'dist_f');
|
||||
|
||||
dist_f.f = dist_f.f(2:end);
|
||||
dist_f.psd_gm = dist_f.psd_gm(2:end);
|
||||
|
@@ -1,7 +1,8 @@
|
||||
function [ground] = initializeGround(args)
|
||||
|
||||
arguments
|
||||
args.type char {mustBeMember(args.type,{'none', 'rigid'})} = 'rigid'
|
||||
args.type char {mustBeMember(args.type,{'none', 'rigid'})} = 'rigid'
|
||||
args.rot_point (3,1) double {mustBeNumeric} = zeros(3,1) % Rotation point for the ground motion [m]
|
||||
end
|
||||
|
||||
ground = struct();
|
||||
@@ -16,4 +17,6 @@ end
|
||||
ground.shape = [2, 2, 0.5]; % [m]
|
||||
ground.density = 2800; % [kg/m3]
|
||||
|
||||
ground.rot_point = args.rot_point;
|
||||
|
||||
save('./mat/stages.mat', 'ground', '-append');
|
||||
|
Reference in New Issue
Block a user