Search for question
Question

EXERCISE 2: Closed-Loop Controller Design and Simulation of H-bridge

DC/AC Inverter with PV

Objectives:

- Getting familiar how a PV source operates when interfaced with an H-bridge PV Inverter

Author: Babak Parkhideh, PhD

You need to take the "PV Array" block from the Simulink Library. Choose the SolarWorld Sunmodule

Plus SW 250 mono Black from the Module data drop-down list. We use only one panel throughout the

lab.

First, consider the nominal operating points defined in the PV panel datasheet (mentioned in the Simulink

interface too). Use the nominal parameters you have chosen in Exercise 1. You need to consider a DC

link capacitor in parallel to the PV panel. Make sure the DC link voltage ripple in less than 2V at the

nominal operating point.

Construct the closed-loop feedback simulation model of the inverter interfacing with the PV array. If you

have constructed the model in the previous labs, update the model. You can use the architecture shown

below. Use the PID block in Simulink. Choose a proper Time Domain you have worked with, Continuous

vs. Discrete.

+

Note that the modulation index must be sinusoidal to generate a 60Hz output. Make sure the compensator

output is multiplied by Sin(2pi60t). Or, use the dq transformation or similar to extract the rms or mean

value of the current. Multiply the current controller output by Sin(2pi60t).

DC Link Voltage-

Reference

(PV Voltage)

PID

lac-ret

Revised 10/04/2021

Duty cycle

Page 4 of 6

Current

Controller

PWM

PV Inverter

DC link Voltage, Voc

Fig: 1


Most Viewed Questions Of Matlab And Simulation

Problem 1. (25 pts) Use the AE5031_HMW1_1.m code to solve the ODE df/dt = -f, f(0) = 1. a) [5 pts] Find the exact solution. b) [10 pts] Use the code for various timesteps 4t and calculate the error= | Exact- Numerical/Exact as a function of the Dt at time time t = 1. c) [10 pts] Plot the error versus the At on a logarithmic scale to confirm that the error decreases proportionally to the 4t (1st order accuracy)


Question 1 20 pts For cruise control, the longitudinal motion of a vehicle on a flat road can be modeled by the first-order nonlinear differential equation mvu - Kv - Kav², where m is the vehicle's mass, v is its speed, u is the tractive force generated by the engine, is the viscous friction force, and is the aerodynamic drag. Suppose m = 4500 lbs, Kf = 2.5N/(m/s), and K = 0.8N/(m/s)². (3+7 + 10 = 20 pts) 1. Define equilibrium values for all variables of interest for the desired equilibrium point where the equilibrium speed is ū=65 mph. 2. Linearize the system around this equilibrium point, defining all variables in the equation clearly, and specify the linearized transfer function (numerical values). 3. Suppose that the custom is at/n3. Suppose that the system is at equilibrium (at 65mph), and the road grade suddenly increases to 3% (see Elevation Grade Calculator (omnicalculator.com) if you need help with this term). The equations will now change to mi = u - K₁v-K₁v² - mgsin(0), and the speed will drop. Can you use linearization to design a control law of the form u=ū+ Au, Au=-kAv, Av=v- i , where k is the gain of the controller that you will choose by "experimentation" (too small a gain and it won't have much effect, too large a gain might cause the throttle to saturate in a real-world scenario) to bring the car speed back (close) to the equilibrium value of 65mph ? If so, show me a simulation for 10 min of the system where the grade abruptly changes from 0 to 3% at 5mins, and then drops back to zero at 7mins. Include 2 subplots, one where there is no feedback control. I.e.. Ava - SO/nequilibrium value of 65mph ? If so, show me a simulation for 10 min of the system where the grade abruptly changes from 0 to 3% at 5mins, and then drops back to zero at 7mins. Include 2 subplots, one where there is no feedback control, i.e., Au = 0, so that u =ū, and a second subplot where you have designed the above controller for an appropriately chosen gain k. Are you able to make the error converge to zero? Why do you think the above controller is unable to do so ? Later on in the course, we will see how to use integral control to make the "steady-state error" (i.e, the error as t → ∞o) zero. Upload Choose a File


2. Start running MATLAB at your computer. The first window that MATLAB loads up is the command window, which is blank except for the prompt »>. Change the current working directory to the mymatlab directory, i.e. type: >> cd c:\temp\mymatlab


The simple all-revolute 4-bar linkage shown below has an input angle of 60 degrees. Write a MATLAB.m file that performs the Newton-Raphson's method to solve for 3 and 4. Submit your code and your answer for full credit. 90'0 2 0.15 m 0.18 m 3 4 0₂ 3 0.08 m Ө.


Problem #1: Finite element beam problem L=1m Radius of the beam r=2 cm, and elastic modulus E = 200 GPa. Assume the beam is undergoing a small linearly elastic deformation. 8 a) Using MATLAB, analytically compute the deflection at the free end of the beam using the following equation: P = 100 N Px² 6EI (3L - x) b) Using the finite element method (FEM) with five beam elements of equal length: Generate the individual stiffness matrices K₂ for each element of the beam and assemble them into the global stiffness matrix Kg. Print each of the individual matrices and the global stiffness matrix. Calculate and print the displacements and rotations (in degree) for each node of the beam. Calculate and print the reaction forces and moments at each node of the beam. c) On the same figure, plot the vertical deflection throughout the beam for both analytical and FEM solution. Include title, axis labels, legends, and grid. Compare and discuss the two solutions. d) Discuss how you would increase the bending stiffness of the beam when the cross-sectional area and material must be kept the same. e) Perform Model (Frequency) Analysis of the beam in Solidworks. Take screen shot of the first three modal shapes along with their frequencies (make sure the values are readable). f) Validate the 1st natural frequency from part (e) using analytical modal analysis for cantilever beam


Throughout the next several weeks you will be developing a computer program to perform a complete analysis of a four-bar linkage. This current assignment only requires the position analysis. Velocity, acceleration, and force analyses will be added in the future. You may use any programming language. I suggest that you will want a procedural language (eg, Matlab, C++, Fortran). Input the rigid dimensions of a four-bar linkage. Your program should be flexible enough to readily accept any dimensions, ie, it should not be hard-wired for only one specific set of dimensions. Perform a position analysis of the linkage for the complete range of motion of the input link. Allow for choice of form of assembly. Inputs: R₁, R₂, R3, R4. Bp. p.Open or crossed, increment of 2 Outputs: 3, 4, and the absolute position of P, all tabulated for the entire range of 2 (b) (c) Rp (d) R₂ Homework 4 ME 3313 Fall 2023 Assigned: 9/5/2023 Bp Y answers. Program listing: P 0₂ 03 R₁ Each programming submission should include the following, submitted as a scanned image or pdf file: (a) R4 04 X Cover memo: This memo should briefly summarize what follows. Describe any known bugs or incorrect This is a text document of the program code, not the MATLAB executable. The program must be documented. Make it easy to understand what is going on. Sample run: Show a sample run with the output of the program using the following data: R₁ = 0.6 m; R₂= 0.2 m; R3 = 0.3 m; R4= 0.4 m; Bp = 0.2 m; p= 35° Verification of answers: It is important to verify your answers. In addition to the penalty for incorrect answers, you can lose another 10% for not knowing that your answers are incorrect. There is no excuse for not checking the validity of your numbers. Don't skip or skimp this part of the assignment. Include documentation that shows your verification. You will want to spot check the results for at least one position, including open and crossed configuration. You will also want to confirm that your range of motion is correct.