Solving Double integral equations

조회 수: 3 (최근 30일)
chizom wornu
chizom wornu 2022년 10월 1일
댓글: chizom wornu 2022년 10월 1일
I tried implementing this double integral equations. However, am getting error when i implemented with the following equation
u_0 = 1.25663706*1e-6; % permeability of free space
L = 12.4; % Axial distance between rotor back plates
p =8; % Number of pole pairs
R1 = 55; % Inner radii of magnets
R2 = 100; % Outer radii of magnets
Kn = 1;
n=1
n = 1
x=0.05
x = 0.0500
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5*.1/R))./(sinh(n*p*L*.1/R))).*cosh(n*p*(L-y)*.1/R).*cos(n*p*(xx(x))*.1/R),R1,R2,0,1)
Error using /
Matrix dimensions must agree.

Error in solution (line 13)
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5*.1/R))./(sinh(n*p*L*.1/R))).*cosh(n*p*(L-y)*.1/R).*cos(n*p*(xx(x))*.1/R),R1,R2,0,1)

Error in integral2Calc>integral2t/tensor (line 228)
Z = FUN(X,Y); NFE = NFE + 1;

Error in integral2Calc>integral2t (line 55)
[Qsub,esub] = tensor(thetaL,thetaR,phiB,phiT);

Error in integral2Calc (line 9)
[q,errbnd] = integral2t(fun,xmin,xmax,ymin,ymax,optionstruct);

Error in integral2 (line 105)
Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);

채택된 답변

Torsten
Torsten 2022년 10월 1일
u_0 = 1.25663706*1e-6; % permeability of free space
L = 12.4; % Axial distance between rotor back plates
p =8; % Number of pole pairs
R1 = 55; % Inner radii of magnets
R2 = 100; % Outer radii of magnets
Kn = 1;
n=1
n = 1
x=0.05
x = 0.0500
sol1 =integral2(@(R,y)u_0*Kn*((cosh(n*p*L*0.5./R))./(sinh(n*p*L./R))).*cosh(n*p*(L-y)./R).*cos(n*p*x./R),R1,R2,0,1)
sol1 = 7.7928e-05

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by