from Structural Vibration Control System by M.Mohsin Siraj
Simulation of structural vibration control system using semi actively controlled MR Dampers.

paramters.m
clear all, clc, close all

% Load Elcentro Earthquake Signals
load t % time vector
load g % Ground acceleration in m/s2

% Tend = t(2000)

% Building Parameters interms of mass, stiffness and damping
m = 100; % Model mass
k = m*(1*2*pi)^2; % stiffness
w = sqrt(k/m);
zetta = 0.01; % damping factor
c = (2*m*w)*zetta;  % amount of damping

A = [0 1;-k/m -c/m];
B = [0;-1] ; 
C = [1 0;0 1;-k/m -c/m];
D = [0;0;0];
B2 = [0;-1/m];
D2 = [0;0;-1/m];


% MR damper Model
% F = Ke*x + Ce*x. + Fmr*sgn (x.)
%where x = displacement
% x.= velocity
%sgn = signum function

Ke = 0.527e-02;
Ce = 1300;

% H=(1000*I)/0.002;
% FMR=(0.003*(H^1.25))*sign(z2)
% where I is the output of the current driver




% Controllers Parameters

p = [0 1;1 1]; %Arbitrary value
b = [0;-1];
vmax = 5;



Contact us at files@mathworks.com