150 likes | 588 Vues
KDB. Klystron Database Robert Steele Klystron Department Stanford Linear Accelerator Center (SLAC) November 2007. KDB. Based on Ajdisk, a 1.5D Klystron specific simulation C++ implementation of a Japanese Fortran application from long ago. Modified for sheetbeam klystron models
E N D
KDB Klystron Database Robert Steele Klystron Department Stanford Linear Accelerator Center (SLAC) November 2007
KDB • Based on Ajdisk, a 1.5D Klystron specific simulation • C++ implementation of a Japanese Fortran application from long ago. • Modified for sheetbeam klystron models • Inputs are tube characteristics (e.g. M, R/Q, q0, qe, etc.) instead of geometry with the minor exception of the axis location (Z). • There are a limited number of fixed inputs (roughly 100) and a limited number of outputs (roughly 30).
KDB • The basic concept of KDB is to store a large number of Ajdisk runs by building permutations of existing runs quickly with a purpose built GUI and reviewing the results with the same GUI. • Permutations are entered into the database and subsequently run with the results returned to the database. • GUI based permutation selection and arbitrary axis plotting allow the user to evaluate the results quickly.
KDB • No matter how fast the simulation is, a database query is likely much faster, usually instant. • Tens of thousands of runs can be stored without any significant slowdown.
KDB GUI • Name/Value pairs are in the column on the left • Plots are on the right • NV pairs can specify • an exact value • match any value • match only a range of values • can specify a set of permutations to be run (implying a range).
KDB GUI • Arbitrary plots axis are controlled explicitly by the user. • Plot points that vary only by the two axis chosen are plotted with connecting lines. This helps the user understand the impact of the parameterization.
KDB Details • Implemented in Java using JDBC. • Runs on Linux and Windows. • Database can be local or remote. • Ajdisk jobs can be run from a server daemon. • KDB setups are often started from Ajdisk .dsk files. • KDB setups are stored in XML. • On Windows, Ajdisk can be invoked directly from the GUI for more simulation detail.