jnads version 0.9.3 is out

6 views
Skip to first unread message

Phil Bentley

unread,
Sep 22, 2010, 3:20:21 AM9/22/10
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.



Reply all
Reply to author
Forward
0 new messages