Galaxy | Tool Preview

MuSpinSim Configure (version 2.2.1+galaxy0)
A name with which to label this configuration
Use a file containing a structure to obtain the spins and generate interactions.
Spins
Spins 0
Spin Interactions
Spin Interactions 0
Experiment Parameters
Experiment Parameters 0
Fitting Parameters
Fitting Parameters 0

Tool to create input parameter file for MuSpinSim.

This tool creates a structured text file with keywords and values which describe the system to model for MuSpinSim. See MuSpinSim docs for more information https://muon-spectroscopy-computational-project.github.io/muspinsim/input/.

MuSpinSim allows expressions and special functions to be used when defining certain keywords. This tool also allows this. Check the hint at the bottom of each input to see what, if any, special function or expressions can be used.

Default expressions include the use of the operators + - * / and ^ for exponentiation. Expressions should not contain whitespace. For example, use 1+2 not 1 + 2.

Default constants include:
  • pi: ratio of a circle and its diameter
  • e: base of the natural logarithm
  • deg: conversion factor between radians and degrees, equivalent to 180/pi
  • inf: infinity
Special constants include:
  • muon_gyr: gyromagnetic ratio of muon (135.5388 MHz/T)
  • MHz: 1/(2*muon_gyr)
Default functions include:
  • sin(x): sine
  • cos(x): cosine
  • tan(x): tangent
  • arcsin(x): inverse of the sine
  • arccos(x): inverse of the cosine
  • arctan(x): inverse of the tangent
  • arctan2(y, x): inverse of the tangent taking two arguments as (sine, cosine) to resolve the quadrant
  • exp(x): exponential with base e
  • log(x): natural logarithm
  • sqrt(x): square root
Special functions include:
  • range(x, y, z): get z equally spaced values between x and y
  • zcw(n): Zaremba-Conroy-Wolfsberg helper function
  • eulrange(n): helper function to create regular grid of n × n × n Euler angles with appropriate weights.
To enter vectors or matrices the following formats are accepted:
  • [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  • 1 2 3 4 5 6 7 8 9
  • [1 2 3] [4 5 6] [7 8 9]

The fitting (function minimization) algorithms available are:

Nelder-Mead
  • A direct search method.
  • Starting with a 'simplex' of candidates, the algorithm will iteratively move the position of the worst candidate towards the optimum until all candidates converge (have values within a predefined tolerance level).
  • Scipy default tolerance is 1e-4
L-BFGS
  • Limited Memory Broyden–Fletcher–Goldfarb–Shanno algorithm.
  • A second-order Quasi-Newton optimization algorithm
  • Makes use of second-order derivative (Hessian Matrix) to converge on optimum.
  • Scipy default tolerance is 1e-5