Calculating a surface integral over a regular shape

let's suppose a function given in polar coordinate F(r,phi) and our purpose is to calculate the surface integral, say F(r,phi)dA over the region S defined by
S={ |Z|<b , |z-z0|>a } where Z=r*exp(1j*phi). it means the regions between the circles |Z|=b , |z-z0|=a . However, F(r,phi) has singularities inside the circle |z-z0|=a . therefore, we are not able to use integral(over circle |Z|<b )-integral(over circle |z-z0|<a) .
your help and consideration are much appreciated.

댓글 수: 3

Please any help.
Hi Oussama,
I am assuming that z and Z are basically the same thing, is that correct? Are z0 and 'a' such that the 'a' circle is totally contained in the b circle? Or the other way round? Is z0 real, or can it be complex?
yes z is the same as Z (typing mistake). yes exactly the z0 and 'a' are chosen such that the circle |Z-z0|=a is totally inside the bigger circle |Z|=b.

댓글을 달려면 로그인하십시오.

 채택된 답변

Oussama GASSAB
Oussama GASSAB 2019년 11월 24일
편집: Oussama GASSAB 2019년 11월 24일

0 개 추천

i have solved by using the following, where F(x,y)=F(r,phi). i have used x-y coordinate and quad2d.
the result was so accurate.
y1= @(x) -sqrt(b^2-x.^2) ; y2=@(x) sqrt(b^2-x.^2) ;
y3= @(x) -sqrt(a^2-(x-z0).^2) ; y4= @(x) sqrt(a^2-(x-z0).^2) ;
intg1 = quad2d(F,-b,z0-a,y1,y2) ;
intg2 = quad2d(F,z0-a,z0+a,y1,y3) ;
intg3 = quad2d(F,z0-a,z0+a,y4,y2) ;
intg4 = quad2d(F,z0+a,b,y1,y2) ;
integ_total=intg1+intg2+intg3+intg4 ;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 11월 22일

편집:

2019년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by