current sink and source - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

current sink and source

allystoneallystone Posts: 2Member
I am having problems modelling an input and output current source. This is my code at the moment:

xSamp = .1;
ySamp = .1;
[X, Y] = meshgrid(0:xSamp:10,0:ySamp:10);
IIn = [min(min(X)) min(min(Y))]';
IOut = [max(max(X)) max(max(Y))]';
I = 10;

Which obviously has I = 10 at both Iin and Iout. I need to have the current at Iout to be equal and opposite to that at Iin. I was thinking of maybe trying to model them as wells, but i think that gets into fluid flow problems.

I also need to place an equipotential boundary at the edges of my plane (which here runs from 0 to 10 in both the x and y directions).

Again, my knowledge of Matlab is very basic, which i guess is painfully obvious from my questions, so if i am asking stupid questions please just humour me.

Cheers for your time (again)


Sign In or Register to comment.