×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

3d Electric field

3d Electric field

3d Electric field

(OP)
Hi there...
  I'm trying to simulaate an elesctric field in 3D. I'm using certain assumtions... like the fact that this formula is correct

    qx=k*Q(4)*(Q(1)-P(1))/(distance(Q,P)^3);
    qy=k*Q(4)*(Q(2)-P(2))/(distance(Q,P)^3);
    qz=k*Q(4)*(Q(3)-P(3))/(distance(Q,P)^3);
    q=k*Q(4)/(distance(Q,P)^2);
    e = [qx qy qz q];

this is the function that calculates the charge at each point in the 3d array.
 there are muliple charges in the space, so this function is run for each point in respect to each of these charges, and then gets added up(that's another assumption I have made that just adding it up will work)

 however when I run it I get slightly different results from what I really want.
I get something like this
[URL=http://img197.imageshack.us/my.php?image=field7mt.jpg][IMG]http://img197.imageshack.us/img197/1244/field7mt.th.jpg[/IMG][/URL]
where I would expect the charges to be in the middle of the field.
  anyone know what I'm doing wrong ?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources