Mercurial > repos > muon-spectroscopy-computational-project > muspinsim_config
comparison config_macros.xml @ 3:331d0776abb4 draft
planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/muspinsim_config commit 4f06b404d8b7fb83995f3052faa7e2ec7811f507
author | muon-spectroscopy-computational-project |
---|---|
date | Fri, 03 Feb 2023 15:39:07 +0000 |
parents | |
children | e1e338f56656 |
comparison
equal
deleted
inserted
replaced
2:52d3a28902e8 | 3:331d0776abb4 |
---|---|
1 <macros> | |
2 <xml name="celio_options"> | |
3 <section name="celio_params" expanded="true" title="Celio's Method" help="Celio's method is an approximate method for computing asymmetry values over a range of times. It is particularly useful for larger systems of higher spins."> | |
4 <conditional name="celio_options"> | |
5 <param name="celio_enabled" type="select" label="Use Celio's method?" display="radio"> | |
6 <option value="true">Yes</option> | |
7 <option selected="true" value="">No</option> | |
8 </param> | |
9 <when value="true"> | |
10 <param name="celio_k" type="integer" value="10" label="Trotter number, k" help="Value used in the Trotter expansion."/> | |
11 <param name="celio_averages" type="integer" optional="true" label="Number of averages" help="When given a value MuSpinSim will randomise initial polarisation states and perform an average. This method is more approximate but much faster and reduces memory usage. It will also assume T->inf and zero magnetic fields. See the MuSpinSim docs for more info."/> | |
12 </when> | |
13 <when value=""/> | |
14 </conditional> | |
15 </section> | |
16 </xml> | |
17 <xml name="times"> | |
18 <repeat name="times" title="Time" help="A time or range of times (μs)"> | |
19 <param name="time" type="text" label="Time" help="Either a single time value or `range` function - allows default expressions, default constants, and special 'range()' function (see help section)" optional="true" value="range(0, 10, 101)"/> | |
20 </repeat> | |
21 </xml> | |
22 <xml name="fields"> | |
23 <repeat name="fields" title="Fields" help="Magnetic fields"> | |
24 <param name="field" type="text" value="0" label="Field" optional="true" help="Optional, (default is 0). Accepts 1X3 vector, or scalar value. Scalar value means field is assumed to be aligned with z axis. Allows default expressions, constants and functions, plus MHz, muon_gyr constants and special 'range()' function (see help section)"/> | |
25 </repeat> | |
26 </xml> | |
27 <xml name="intrinsic_fields"> | |
28 <repeat name="intrinsic_fields" title="Intrinsic Fields" help="Intrinsic magnetic fields (these are unaffected by rotations when using angular averaging via the orientations parameter)."> | |
29 <param name="intrinsic_field" type="text" value="0" label="Intrinsic Field (T)" optional="true" help="Optional, (default is 0). Accepts 1X3 vector, or scalar value. Scalar value means field is assumed to be aligned with z axis. Allows default expressions, constants and functions, plus MHz, muon_gyr constants and special 'range()' function (see help section)"/> | |
30 </repeat> | |
31 </xml> | |
32 <xml name="polarizations"> | |
33 <repeat name="polarizations" title="Polarizations" help="The direction along which the muon should be polarized when starting, as well as the one in which it will be measured. Each entry will generate a separate calculation when MuSpinSim is run"> | |
34 <conditional name="polarization_options"> | |
35 <param name="polarization_preset" value="custom" type="select" display="radio" label="Polarization" help="transverse: along x-axis, longitudinal: along z-axis, custom: define vector"> | |
36 <option value="longitudinal">longitudinal</option> | |
37 <option value="transverse">transverse</option> | |
38 <option selected="true" value="custom">custom</option> | |
39 </param> | |
40 <when value="custom"> | |
41 <param name="polarization" type="text" value="" label="Enter custom vector for polarization" help="Accepts 1X3 vector. Allows default expressions, constants and functions (see help section)"/> | |
42 </when> | |
43 <when value="longitudinal"/> | |
44 <when value="transverse"/> | |
45 </conditional> | |
46 </repeat> | |
47 </xml> | |
48 <xml name="orientations"> | |
49 <repeat name="orientations" title="Orientations" help="Orientations to use for crystallites - (define powder averages)"> | |
50 <conditional name="orientation_options"> | |
51 <param name="orientation_preset" type="select" display="radio" label="Orientation" optional="false" help="Polar angles: Define two polar angles θ and ϕ, defining only the direction of the z-axis (recommended for powder averages). Euler angles: Define 3 Euler angles defining a new frame, convention used is ZYZ by default. Euler angles with weight: define 3 Euler angles and a weight (will be normalized automatically). Euler angles helper function: eulrange(n). Zaremba-Conroy-Wolfsberg helper function: zcw(n)"> | |
52 <option value="2_polar">Polar angles</option> | |
53 <option value="3_euler">Euler angles</option> | |
54 <option value="4_euler">Euler angles with weight</option> | |
55 <option value="eulrange">Euler angles helper function (eulrange(n))</option> | |
56 <option selected="true" value="zcw">Zaremba-Conroy-Wolfsberg helper function (zcw(n))</option> | |
57 </param> | |
58 <when value="eulrange"> | |
59 <param name="eul_n" type="text" value="0" label="n" help="Value for n for eulrange(n) - allows default expressions, constants and functions. WARNING: large values are more computationally expensive."/> | |
60 </when> | |
61 <when value="zcw"> | |
62 <param name="zcw_n" type="text" value="0" label="n" help="Value for n for zcw(n) - Allows default expressions, constants and functions. WARNING: large values are more computationally expensive."/> | |
63 </when> | |
64 <when value="2_polar"> | |
65 <param name="theta" type="text" value="" label="θ (theta/inclination) angle" help="All polar angle entries allow default expressions, constants and functions"/> | |
66 <param name="phi" type="text" value="" label="ϕ (phi/azimuth) angle" help="All polar angle entries allow default expressions, constants and functions"/> | |
67 </when> | |
68 <when value="3_euler"> | |
69 <param name="eul_1" type="text" value="" label="Euler angle 1" help="All Euler angle entries allow default expressions, constants and functions"/> | |
70 <param name="eul_2" type="text" value="" label="Euler angle 2" help="All Euler angle entries allow default expressions, constants and functions"/> | |
71 <param name="eul_3" type="text" value="" label="Euler angle 3" help="All Euler angle entries allow default expressions, constants and functions"/> | |
72 </when> | |
73 <when value="4_euler"> | |
74 <param name="eul_1" type="text" value="" label="Euler angle 1" help="All Euler angle entries allow default expressions and constants"/> | |
75 <param name="eul_2" type="text" value="" label="Euler angle 2" help="All Euler angle entries allow default expressions and constants"/> | |
76 <param name="eul_3" type="text" value="" label="Euler angle 3" help="All Euler angle entries allow default expressions and constants"/> | |
77 <param name="weight" type="float" value="0" label="Weight" help="Allows only floating point value, weights will automatically be normalised"/> | |
78 </when> | |
79 </conditional> | |
80 </repeat> | |
81 </xml> | |
82 <xml name="euler_convention"> | |
83 <param name="euler_convention" type="select" display="radio" label="Euler Convention" help="Euler angle convention to use for orientation definitions (ignored if Euler angles not defined)"> | |
84 <option selected="true" value="zyz">ZYZ</option> | |
85 <option value="zxz">ZXZ</option> | |
86 </param> | |
87 </xml> | |
88 <xml name="temperatures"> | |
89 <repeat name="temperatures" title="Temperature" help="Temperature or range of temperatures (K)"> | |
90 <param name="temperature" type="text" help="Either single value or 'range()' function - allows default expressions, default constants, and special 'range()' function (see help section). Warning: both density matrices and dissipative couplings for finite temperatures are only calculated approximatively, see MuSpinSim docs." optional="true" value="inf"/> | |
91 </repeat> | |
92 </xml> | |
93 <xml name="average_axis_options_no_time"> | |
94 <param name="average_axes" type="select" display="checkboxes" multiple="true" optional="true" value="orientation" label="Average axes" help="Keywords that should have an average carried out over them. Each keyword ticked should have a range specified. Keywords not ticked or set as X axis, but which have a range set, will generate separate calculations for each value in the range when muspinsim is run."> | |
95 <option value="field">field</option> | |
96 <option value="intrinsic_field">intrinsic_field</option> | |
97 <option value="temperature">temperature</option> | |
98 <option value="polarization">polarization</option> | |
99 <option selected="true" value="orientation">orientation</option> | |
100 </param> | |
101 </xml> | |
102 <xml name="average_axis_options_no_field"> | |
103 <param name="average_axes" type="select" display="checkboxes" multiple="true" optional="true" value="orientation" label="Average axes" help="Keywords that should have an average carried out over them. Each keyword ticked should have a range specified. Keywords not ticked or set as X axis, but which have a range set, will generate separate calculations for each value in the range when muspinsim is run."> | |
104 <option value="time">time</option> | |
105 <option value="intrinsic_field">intrinsic_field</option> | |
106 <option value="temperature">temperature</option> | |
107 <option value="polarization">polarization</option> | |
108 <option selected="true" value="orientation">orientation</option> | |
109 </param> | |
110 </xml> | |
111 <xml name="restricted_axes_options"> | |
112 <param name="average_axes" type="select" display="checkboxes" multiple="true" optional="true" value="orientation" label="Average axes" help="Keywords that should have an average carried out over them. Each keyword ticked should have a range specified. Keywords not ticked or set as X axis, but which have a range set, will generate separate calculations for each value in the range when MuSpinSim is run."> | |
113 <option selected="true" value="orientation">orientation</option> | |
114 <option value="temperature">temperature</option> | |
115 </param> | |
116 </xml> | |
117 <xml name="axes_options"> | |
118 <conditional name="axes_options"> | |
119 <param name="y_axis" type="select" value="asymmetry" display="radio" label="Y axis" help="Range to use as y axis for output file(s). Asymmetry: use muon's polarization. Integral: use muon's polarization integral over time."> | |
120 <option selected="true" value="asymmetry">asymmetry</option> | |
121 <option value="integral">integral</option> | |
122 </param> | |
123 <when value="asymmetry"> | |
124 <conditional name="x_axis_options"> | |
125 <param name="x_axis" type="select" value="time" display="radio" label="X axis" help="Range to use as X axis for output file(s)"> | |
126 <option selected="true" value="time">time</option> | |
127 <option value="field">field</option> | |
128 </param> | |
129 <when value="time"> | |
130 <expand macro="average_axis_options_no_time"/> | |
131 </when> | |
132 <when value="field"> | |
133 <expand macro="average_axis_options_no_field"/> | |
134 </when> | |
135 </conditional> | |
136 </when> | |
137 <when value="integral"> | |
138 <param name="x_axis" type="select" value="time" display="radio" label="X axis" help="Range to use as X axis for output file(s)"> | |
139 <option selected="true" value="field">field</option> | |
140 </param> | |
141 <expand macro="average_axis_options_no_field"/> | |
142 </when> | |
143 </conditional> | |
144 </xml> | |
145 </macros> |