comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Force Field
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Force Field [message #45491] Wed, 14 September 2005 04:03 Go to previous message
panblosky is currently offline  panblosky
Messages: 17
Registered: May 2005
Junior Member
>
> Assuming that you are happy with first-order, centered differences, you
> want something like this
>
> grad_x = (SHIFT(phi, -1, 0) - SHIFT(phi, 1, 0))/(2.0*dx)
> grad_y = (SHIFT(phi, 0, -1) - SHIFT(phi, 0, 1))/(2.0*dy)
>
> where phi is the potential It think this handles the periodic boundary
> conditions properly, but check to make sure.
>
> Cheers, Ken Bowman

Thanks Ken, it does work, and really fast!!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Poscript Component Selection
Next Topic: Replication question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:22:13 PDT 2025

Total time taken to generate the page: 0.00425 seconds