Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I couldn't find an online example worked out, surprisingly.

Most of the stuff in the wiki article isn't needed for your case. What you need is the expression for the force on a current carrying wire: F = I (L X B). F is the force, I is the current. L is a vector with magnitude equal to the length of the wire, and its direction is the direction of the current flow. B is the magnetic field vector. All of this assumes a constant field along the wire and a straight wire.

That's likely not the case, so you have to go to infinitesimal wire segements and integrate: dF = I (dL x B).

I don't know if this has made it any clearer for you, I'm assuming from your post history that you have done stuff with vectors/numerical integration before and just needed the bullpucky separated from the stuff you need in the wiki article. If it hasn't helped, I wouldn't mind doing an example in Perl tonight/tomorrow evening if nobody else has.

Edit: How is your model of the situation stored? I assume you've got a function that, given x,y,z, gives you the magnetic field vector at that point, but what of the wire?


In reply to Re: (way)(OT): Lorentz Force worked numerical example. by amarquis
in thread (way)(OT): Lorentz Force worked numerical example. by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found