Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Electrical Engineering Question

Electrical Engineering Question

Electrical Engineering Question

Description

Unformatted Attachment Preview

Answer to the Question No: 01
(a)
(b)
Differential Equation for the system:
??(??)
+C
??
????(??) 1
????
+?? ? ?? (??) dt= 0
2nd derivative,
1 ????(??)
??
????
+C
??2 ??(??) 1
???? 2
+?? ??(??) = 0
So, the differential equation is,
1 ????(??)
??
????
+C
??2 ??(??) 1
???? 2
+ ??(??) = 0
??
Boundary condition:
t0=0s;
v0=0mV=0V
t1=50 ms=0.05s;
v50=105.914mV= 0.105914m
(c)
Deriving the differential equation along with appropriate
coefficient values:
From (a) we get,
1 ????(??)
??
????
+C
??2 ??(??) 1
???? 2
+?? ??(??) = 0n(i)
We the central difference formula,
f(????+1 )?f(?????1 )
1st order, f?(???? ) =
2nd order, f??(???? )=
2?
f(????+1 )?2f(???? )+f(?????1 )
?2
Now applying the central difference formula in equation (i)
1 ????+1 ??????1
??
2?
????+1 ?2???? +?????1 1
+C
?2
+?? ???? =0
Solving the equation we get,
2???????2
?2 ?2????
?????1 ( 2???3 ) +???? ( ???2 ) + ????+1 (
??
??1???0
0.05?0
0.05
h= ??? = ??+1 = ??+1 = ??+1 = ??+1
Also,
R=10?
L=1mH=0.001H
C=1mF=0.001F
?2 +2?????
2???3
)=0
2????????(???)2
?????1 (
2??(???)3
(???)2 ?2????
) +???? ( ??(???)2 ) + ????+1 (
(???)2 +2???????
2??(???)3
)=0
Now we can write the equation along all with appropriate
coefficient values:
??.???? ??.???? ??
?(
)
??+?? ??+??
??.???? ??
??ÿ???è
)
??+??
??ÿ???ÿ?.??????Ê??????? (
??.???? ??
(
) +???? ( ??+??
) ???ÿ?.??????ÿ?.??????
??.???? ??
)
??+??
??.??????è
(
??.???? ??
)+ ????+?? ( ??+??
??.????
ÿ???ÿ?.??????
??+??
??.???? ??
??ÿ???è
)
??+??
) +??Ê)=0
So,
a=
2????????(???)2
b=
2??(???)3
(???)2 ?2????
??(???)2
(???)2 +2???????
c=
2??(???)3
d=0
(d)System equations in matrix forms including the boundary
conditions:
Answer to the Question No: 02
clc
close all
clear
t0= 0; %s
t1=0.05; %s
v0=0; %V
v50=0.105914; %V
R=10; %ohm
L=0.001; %H
C=0.001; %F
n=1000;
l=t1-t0;
dx=(t1-t0)/(n+1);
a= (C*2*R*(dx)-(dx)^2)/(2*R*dx^3);
b=((dx)^2-2*L*C)/(L*dx^2);
c=((dx)^2+2*dx*R*C)/(2*R*dx^3);
d=0;
A=zeros(n,n);
fori=1:n
A(i,i)=b;
end
fori=1:n-1
A(i,i+1)=c;
end
fori=2:n
A(i,i-1)=a;
end
B=ones(n,1)*d;
B(1)=d-a*v0;
B(n)=d-c*v50;
vu=inv(A)*B;
t= linspace(t0,t1,n+2);
V(1)=v0;
V(2:n+1)=vu;
V(n+2)=v50;
Is=4;
Answer to the Question No: 03
%exact solution
a1=1/(2*R*C);
w=1/(sqrt(L*C));
S1=-a1+(sqrt(a1^2-w^2));
S2=-a1-(sqrt(a1^2-w^2));
A=-Is/(C*(S1-S2));
vexact=A.*exp(S1.*t)-A.*exp(S2.*t)
pexact=(vexact.^2)./R;
Answer to the Question No: 04
(a)
%IC
fori=1:(n+1)
Ic(i)=C*((V(i+1)-V(i))/(t(i+1)-t(i))); %using Forward
difference 1st order formula.
end
Ic(n+2)=nan;
figure
plot(t,Ic)
xlabel(‘t’)
ylabel(‘Ic’)
(b)
%PR
fori=1:(n+2)
Pr(i)=(V(i)^2)/R;
end
figure
plot(t,Pr)
xlabel(‘t’)
ylabel(‘Pr’)
(c)
%PC
fori=1:(n+2)
Pc(i)=V(i)*Ic(i);
end
figure
plot(t,Pc)
xlabel(‘t’)
ylabel(‘Pc’)
Answer to the Question No: 05
(a)
For n=100
%5(a)
figure
plot(t,V);
xlabel(‘t’)
ylabel(‘V’)
Exact solution in same plot for n=100
figure
plot(t,V);hold on;
plot(t,vexact)
Vexact
V
%Error
ei=vexact-V;
En=sqrt(sum(ei)^2/n);
Workspace value: for 100
(b)
For n=100
%5(b)
figure
plot(t, Ic)
xlabel(‘t’)
ylabel(‘Ic’)
(C)
For n=100
%5(c)
figure
plot(t,Pr);
xlabel(‘t’)
ylabel(‘Pr’)
Exact solution in same plot for n=100
figure
plot(t,Pr);hold on;
plot(t,pexact);
Vexact
V
(d)
Repeating a,b,c for n=200,500,1000,5000
n
200
V vs t
Vand Vexact vs t
Vexact
V
500
1000
5000
n
200
500
1000
5000
En
n
200
500
1000
5000
Ic vs t
n
200
500
1000
5000
Pr vs t
Pr and pexact vs t
(d) We can see from above plots as the value of n increases, the error
decreases. In n=5000 the exact value (vexact) and V are in same
position. So, the accuracy improved as n increases.
Workspace values of 1st code

Purchase answer to see full
attachment

User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20