GNG1106代写、代做Electrical Engineering、代写python, C/C++程序设计代写Python程序|帮做C/C++编

GNG1106 – Fundamentals of Engineering ComputationCourse ProjectElectrical EngineeringDesign of an RLC Electrical CircuitYuhan Zhang 300057292Xiaomeng Yang 300028425Date : Nov 13th, 20181. Problem Identification and StatementThis project is aimed to determine the resistance of the resistor R in an RLCcircuit shown in ‘ELG project’ and reveals whether the charge dissipates to the itsinitial percentage of charge in the during the given time. As required, usersshould input the following values : the inductance of components (L), thecapacitance of components (C ), the battery voltage, the rate of dissipation (td)and the ideal percentage of the original charge to reach (Pc) in dissipation time(td). After calculation, the software can give the value of the resistor. Meanwhile,at most 5 results can be saved into the files. In other words, users can select thestored data or input a new value. Aiming to reach this function, we need todetermine the exact interval to find roots. The software will provide an upperbound for resistor and a plotted function for users searching the root of functionby selecting an appropriate interval. ‘g(R) = e-Rt/(2L)- pc’ is utilized to determinethe value of R, and when time varies, q will be calculated and the relationshipbetween it and time will be found and plotted by graph.2. Gathering of Information and Input/Output Description2.1 subsection 1The study of transient and steady-state behavior of electric circuits is usually basedon Kirchhoff’s laws. In this project, our concentration is on circuits that current andvoltage vary over time until they become a steady state. And that occurs when we closethe switch.Figure aFor the values users input should be in a certain range.The values of R (resistance in Ohms): 1 ohm to 1*106 ohms ( 1 Mohm)The values of inductor (L in Henrys H): 1*10-9 Henrys (1 nH) to 1*10-2 Henrys (1000μH)The values of capacitance (C in Farads F ): 1*10-12 Farads (1 pF) to 1*10-2 Farads (1000μF)Then the voltage drop can be determined across every device.VR = iR Equation 1Equation 1 is utilized to determine the voltage drop across the resistor.VL = L (di / dt) Equation 2Equation 2 is utilized to determine the voltage drop across the inductor.VC = q / C Equation 3Equation 3 is utilized to determine the voltage drop across the capacitor.2.2 subsection 2L (di / dt) + Ri + q / C = 0 Equation 4Kirchhoffs second law shows that the sum of voltage drops around the closed circuit iszero.i = dq / dt Equation 5In this equation, i means current and we got another equation to express therelationship between current and the amount of charges in the circuit.Thus,L (d2q/ dt2) + R(dq / dt) + q / C = 0 Equation 6All theGNG1106作业代写、代做Electrical Engineering作业、代写python, C/C++程序设计作业 values we calculate are known.Equation 7The value of q can be solved by utilizing a second-order linear ordinary differentialequation. When t = 0, q = q0 = V0C, and V0 is equal to the voltage from the chargingbattery. And the relationship between t and q0is graphically shown below. The valuesof L and C are selected and in a certain rate, the energy is dissipated by a properresistor. The rate of dissipation would be defined as the time, td, it takes for the chargeon the capacitor to reach a desired percentage of its original charge, pc = q/q0.Figure bq(t) = q0e-Rt/(2L) Equation 8Due to the fact that we focus on the rate of dissipation, the cosine function is reducedand we get a new function which matches dashed lines in Figure b.2.3 subsection 3 (Solving for the Resistor R)pc=q/q0 Equation 9 q(td) = pcq0 = q0e-Rt/(2L) Equation 10pc=e-Rt/(2L) Equation 11We combine Equation 9 and Equation 10 to determine the value of R (the properresistor) by the known value of inductance and the percentage of original charge pc.g(R) = e-Rt/(2L)- pc Equation 12Equation 12 provides better value of R by using numerical calculation method, though,weve already got the answer from Equation 11 by analysing.Using the bisection method to find roots in softwareFirstly, setting a range of interval by the desired lower value of xL and upper value ofxU is aimed to changing signs and it also can be checked by f(xL)f(xU)estimate of the root xR is determined by xR = (xL + xU)/2. Thirdly, it should follow thefollowing equationsa). If f(xL)f(xR)return to the previous step.b). If f(xL)f(xR)> 0, the root lies in the upper subinterval. Therefore, set xL = xR andreturn to the previous step.c).If |f(xL)f(xR)| root equals xR; The computation would be terminated.2.4 subsection 4 (Input and Output)● Input ( values are all collected by users)1. L = the value of the inductor (Henrys),2. C = the value of the Capacitor (Farads),3. V0 = the voltage of the battery across the capacitor at time t = 0 (volts),4. td = the time of dissipation (s).5. pc = percentage value of the original charge on the capacitor after thedissipation time td.Equation 136. Equation 13 is utilized to find the precise value of R after software determinethe range of R by calculating the upper bound by square root term in thefunction g(R).7. The solution of g(R) can plot a graph that user is able to choose an interval bylooking at the graph.● Output ( values calculated by software)The value of R and the function graph plotted from t = 0 to time td.转自:http://ass.3daixie.com/2018112774198719.html

你可能感兴趣的:(GNG1106代写、代做Electrical Engineering、代写python, C/C++程序设计代写Python程序|帮做C/C++编)