[Getdp] how to specify direction of hc?

Alexandr.Pulnikov at be.atlascopco.com Alexandr.Pulnikov at be.atlascopco.com
Mon Sep 14 17:33:14 CEST 2009



As mentioned in the manual
http://www.geuz.org/getdp/doc/texinfo/getdp_6.html#IDX549
you can access local coordinates through X[], Y[] and Z[] functions. The
rest is trivial.
Since you require a unit vector pointing out of a certain center {Xs,Ys,Zs}
towards the local
point, you could use the following relation for the magnetization:
Function{
Hc = 999000;
hc [Magnet] = Hc*Vector[(X[]-Xs)#1, (Y[]-Ys)#2, (Z[]-Zs)#3]/(Sqrt[#1*#1 +
#2*#2 + #3*#3]);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/getdp/attachments/20090914/716d1bf7/attachment.html>