Math Problem Statement

Description_of_the_Assignment__1_ (1).pdf

204.31 KB

  1. soruyu mathlab kodlamasıyla çöz

Solution

To solve Question 3 from the provided document using MATLAB, we need to derive and compute the transfer functions between the input zz (pilot valve displacement) and the output yy (carriage position), as well as between the disturbance fdf_d and the output yy.

Here’s a MATLAB script to determine these transfer functions:

MATLAB Code

matlab
% Define parameters (include A, B, C as required by ID numbers XXXABC) A = ...; % Last 3 digits of ID number B = ...; C = ...; % Given numerical values m = 4 + A/C; % Mass (kg) K = 20 - B; % Spring constant (N/m) b = 20 + A; % Damping coefficient (Ns/m) Av = 0.5; % Area (m^2) rho = 8.84; % Oil density (kg/m^3) V = 0.5; % Oil volume (m^3) Koil = 5; % Compressibility modulus of oil (N/m^2) L = 0.1 + B/C; % Loss coefficient (ms) ps = 500e3; % Pressure (Pa) g = 9.81; % Gravitational acceleration (m/s^2) do = 0.05; % Diameter of ducts (m) c1 = 1 + B/C; c2 = 1 + B/C; % Linearized equilibrium points (example values) y_bar = 0.5; % Position at equilibrium (m) z_bar = 0; % Valve displacement at equilibrium (m) p_bar = ps; % Pressure difference at equilibrium (Pa) % Define transfer function variables s = tf('s'); % Derived constants C1 = c1 * 0.05 * sqrt(2 * g / (rho * g)); C2 = c2 * 0.05 * sqrt(2 * g / (rho * g)); delta_p = Av * s / (m * s^2 + b * s + K); % Input-output transfer function (z to y) TF_z_y = (C1 - C2) * delta_p; % Disturbance-output transfer function (fd to y) TF_fd_y = 1 / (m * s^2 + b * s + K); % Display the results disp('Transfer function (z to y):'); TF_z_y disp('Transfer function (fd to y):'); TF_fd_y % Optional: Plot step responses for qualitative analysis figure; subplot(2,1,1); step(TF_z_y); title('Step Response: Input z to Output y'); subplot(2,1,2); step(TF_fd_y); title('Step Response: Disturbance fd to Output y');

Explanation of the Code:

  1. Parameter Initialization:

    • Parameters from the problem are initialized, including constants dependent on the ID number A,B,CA, B, C.
  2. Equilibrium and Derived Constants:

    • The equilibrium point values are plugged into the system equations.
    • Δp\Delta p dynamics and nonlinear contributions are linearized around y=yˉy = \bar{y}, z=zˉz = \bar{z}, and Δp=Δpˉ\Delta p = \bar{\Delta p}.
  3. Transfer Functions:

    • The transfer function for the input zz to output yy is derived using linearized system dynamics.
    • Similarly, the transfer function for disturbance fdf_d to yy is computed.
  4. Visualization:

    • Step responses are plotted to show qualitative behavior, allowing an initial assessment of system performance.

Would you like me to explain any part of the derivation process or expand the analysis with numerical examples?


Related Questions:

  1. How can we verify the stability of these transfer functions?
  2. What simplifications are reasonable for the system if LL and VV are small?
  3. How does the nonlinearity in qq affect the overall system response?
  4. What additional information can we extract from Bode diagrams for these transfer functions?
  5. How can this system be optimized to handle varying disturbance frequencies?

Tip: Use MATLAB's bode and nyquist functions for deeper stability and performance analysis.

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Control Systems
State-Space Representation
Transfer Functions
System Dynamics Linearization

Formulas

Transfer Function Derivation: TF(s) = Output(s) / Input(s)
Dynamics: mρ(d²y/dt²) + b(dy/dt) + Ky = AvΔp + fd
Pressure Dynamics: Avρ(dy/dt) + ρV/K_oil(dΔp/dt) + LΔp = q
Flow Equation: q = f(z, Δp) = C1√(ps − Δp)(d₀/2 + z) − C2√(ps + Δp)(d₀/2 − z)

Theorems

Linearization of Nonlinear Systems
System Stability and Pole-Zero Analysis

Suitable Grade Level

Undergraduate (Advanced), Graduate