Phil Bentley
unread,Sep 22, 2010, 3:20:21 AM9/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jnads
In English: jnads is now quite a bit faster if you use mathematica to
scan parameters or for optimisation of guide optics. I'm going to
upload a mathematica package and an example file so that you can see
how to just call a mathematica function and have jnads return the flux
as a return value.
In Tech language: This new version adds direct mathematica
functionality via j/link. jnads objects can be created inside
mathematica and manipulated directly. The extra functionality is not
mathematica-dependent, however. Any software that can create and
manipulate java objects can make use of these features and play with
the jnads.jar contents.
This means that when using mathematica for optimisation, or making
tables of calculations, for each jnads calculation it can run on the
same java virtual machine(s) and the mathematica kernel only has to
load the virtual machine once. When performing many short
calculations, most of the calculation time is loading the virtual
machine.
The mathematica package that I'm going to upload shortly wraps up the
initialisation of the java virtual machine and shows how to manipulate
the objects. In the long term, this j/link functionality means that
beam monitors and acceptance diagrams could soon be transferred
directly into mathematica tables without being forced to export them
as files and re-import them to graph them.