Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Problem in Boundary Integration
Posted 15 feb 2012, 22:27 GMT-5 4 Replies
Please login with a confirmed email address before reporting spam
Hi,
I am having some issues with the command POSTINT. I am tyring to solve a much more complex problem than outlined in the attached document. However, if somebody can point out what is the issue in the sample problem attched, I can go figure out the issue in my original problem.
3
==============\
|*********************\
|****del^u=0*********\ 4 (u=1)
|***********************\
| 1 (u=0) *************/
|**********************/ 5 (u=1)
|********************/
=============/
2
I am solving Laplace's equation in the above 2D-domain where all the edges except 1,4 and 5 are insulated. Thus the current density (=-del(u)) when integrated over any boundary edge should give me the total current passing through the edge. I use:
% Current passing into the system through edges 4 and 5
v1 = postint(fem,'-(ux*(-nx)+uy*(-ny))','dl',[4,5],'edim',1)
% Current passing out of the system through edge 1
v2 = postint(fem,'-(ux*(nx)+uy*(ny))','dl',[1],'edim',1)
Since the edges 3 and 2 are insulated (i.e. del(u)=0), and the gometry is symmetric I should expect v1 = v2. But I get,
v1 = 0.8553
v2 = 0.8776
Why this discrepancy ? I have attached the code for your perusal and also the results.
Regards
Murali
I am having some issues with the command POSTINT. I am tyring to solve a much more complex problem than outlined in the attached document. However, if somebody can point out what is the issue in the sample problem attched, I can go figure out the issue in my original problem.
3
==============\
|*********************\
|****del^u=0*********\ 4 (u=1)
|***********************\
| 1 (u=0) *************/
|**********************/ 5 (u=1)
|********************/
=============/
2
I am solving Laplace's equation in the above 2D-domain where all the edges except 1,4 and 5 are insulated. Thus the current density (=-del(u)) when integrated over any boundary edge should give me the total current passing through the edge. I use:
% Current passing into the system through edges 4 and 5
v1 = postint(fem,'-(ux*(-nx)+uy*(-ny))','dl',[4,5],'edim',1)
% Current passing out of the system through edge 1
v2 = postint(fem,'-(ux*(nx)+uy*(ny))','dl',[1],'edim',1)
Since the edges 3 and 2 are insulated (i.e. del(u)=0), and the gometry is symmetric I should expect v1 = v2. But I get,
v1 = 0.8553
v2 = 0.8776
Why this discrepancy ? I have attached the code for your perusal and also the results.
Regards
Murali
Attachments:
4 Replies Last Post 8 ago 2012, 01:01 GMT-4