[Getdp] Calculation the mechnical force between magnets.

Bernhard Kubicek bernhard.kubicek at arsenal.ac.at
Wed Jul 23 11:02:29 CEST 2008

Maybe this pro/.sh file is more correct:

On Wed, 2008-07-23 at 10:17 +0200, Bernhard Kubicek wrote:

> Dear Sebastian, 
> I just played around a bit with your files, and maybe I have a method
> that somehow can calculate the force.
> You create different meshes, where the magnets are varied in position.
> As an output for each mesh, you calculate the total field energy.
> the force should then be the variation of the field energy divided by
> the dislocation distance.
> but I have not verified things, only thing is I wrote an script that
> does the variation.
> after the script (that should work with linux after setting the paths
> correctly, or with cywin in windows) you can do the manual
> calculations to get the force.
> I _think_ that you just need to add the field energies of all domains.
> but what confuses me is that the magnets have negative energy?? I
> quite in a hurry now, and cannot investigate much further right now.
> nice greetings,
> bernhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/getdp/attachments/20080723/597ac046/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2Dmagnet.pro
Type: text/x-csrc
Size: 4083 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20080723/597ac046/attachment.pro>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wobble.sh
Type: application/x-shellscript
Size: 1063 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/getdp/attachments/20080723/597ac046/attachment.sh>