Debian Codegraph @

CHANGELOG

raw
1 v3.4.1 2022-10-19
2 * Expose utility for completely flattening a material composition to
3 Python interface, as a new info.getFlattenedComposition() method. This
4 is intended to better support materials with non-natural compositions in
5 the OpenMC bindings. Internally, the new method is using the same
6 machinery as what is already in place to provide the same functionality
7 for the Geant4 bindings.
8 * ncrystal_onlinedb2ncmat was not using new unified cmdline script
9 machinery introduced in v3.4.0, which has now been corrected.
10
11 v3.4.0 2022-10-12
12 * Modify location of CMake config files provided by an NCrystal
13 installation, to hopefully make it easier for downstream projects to
14 locate an existing NCrystal installation (more details on this MCPL
15 issue: https://github.com/mctools/mcpl/issues/58).
16 * Modify manner in which Geant4 bindings must be activated in downstream
17 CMake code. Previously they were enabled via a dedicated
18 "find_package(G4NCrystal)" call, but now they are instead provided as an
19 optional COMPONENT when requesting the NCrystal package:
20 "find_package(NCrystal COMPONENTS GEANT4BINDINGS )" and if succesful the
21 downstream binaries must be configured to depend on the G4NCrystal
22 interface by adding the NCrystal::G4NCrystal target as a dependency,
23 i.e. "target_link_libraries( mybinary NCrystal::G4NCrystal )". The
24 Geant4 bindings will not be enabled unless the GEANT4BINDINGS component
25 is explicitly requested.
26 * Unify manner in which shipped cmdline scripts look for NCrystal python
27 module.
28
29 v3.3.1 2022-10-06
30 * Fix info.getComposition() for multiphase materials in the Python
31 interface. This issue is not believed to have affected many users, but
32 a fix is crucial in order to support multiphase materials in OpenMC
33 hooks which are currently being prepared (github issue #102).
34 * Minor fix to make Geant4 hooks work with Geant4 release 11. Note that
35 this is still not the long awaited major update which makes the hooks
36 work with Geant4 in multithreaded mode.
37 * Rewrote internal code in NCIter.hh to avoid usage of deprecated
38 std::iterator. This avoids compilation warnings on newer platforms
39 (github issue #100).
40 * Reduce precision from %.15g to %.14g in output of ncrystal_ncmat2hkl to
41 get reproducible results across platforms.
42
43 v3.3.0 2022-08-23
44 * Updates to CMake code which is needed to support creation of
45 NCrystal conda packages.
46 * ncrystal_inspectfile now has --version and --versionnum arguments.
47
48 v3.2.0 2022-08-11
49 * Introduce a new quick TextData factory for gas mixtures, supporting
50 on-the-fly gas mixtures through cfg-strings like
51 "gasmix::0.7xCO2+0.3xAr/2bar/30C". The format is rather flexible, and
52 supports both mass and molar fractions, relative humidity, and has an
53 alias for normal air ("gasmix::air"). See more details on the wiki:
54 https://github.com/mctools/ncrystal/wiki/Announcement-Release3.2.0
55 * Introduce NCMAT v7 which adds a new optional @TEMPERATURE section to the
56 format, allowing the default temperature value to be modified from the
57 normal 293.15K, or even of locking the value at a certain value
58 (attempts at modifying it via cfg variables will then fail). This is
59 used by the new gasmix factory to error on the flawed but
60 correct-looking "gasmix::CO2/2bar;temp=200K" (which is not the same as
61 the correct "gasmix::CO2/2bar/200K"). Future developments might move the
62 gas mixture support to the NCMAT format itself (rather than just in the
63 pre-processing as now), which would solve the issue in a nicer way.
64 * At the C++ level, a new fmt_frac function allows easy printing of
65 floating point values which might be simple fractions, a dedicated
66 Pressure type was added, and a minor issue with confusing error messages
67 from NCMAT data from quick factories was addressed.
68
69 v3.1.0 2022-06-29
70 * Introduce cfg parameter named "ucnmode" which can be used to enable a
71 new dedicated modelling of UCN-production processes. Thus, appending
72 ";comp=inelas;ucnmode=only" to a given cfg-string, will result in a
73 scattering process which ONLY contains UCN-production
74 events. Conversely, appending ";ucnmode=remove" will provide a process
75 which contains everything EXCEPT UCN-production events. This splitup is
76 intended to facilitate usage of biasing and variance reduction tricks
77 when designing VCN or UCN moderators. The UCN threshold defaults to
78 300neV, but this can of course be modified. In addition to just
79 facilitating a process splitup, the UCN-production process resulting
80 from "ucnmode=only" is more precise (essentially exact) than the usual
81 S(alpha,beta) treatment - which is rather precise in general, but
82 currently contains some flaws when sampling events where the neutron
83 loose almost all energy (see also next item).
84 * Improve general (i.e. also when not running with special ucnmode)
85 scattering-kernel based inelastic physics for the case where the neutron
86 looses almost all energy. Specifically, the sampling of S(alpha,beta)
87 near the kinematic endpoint is greatly improved. We still have
88 additional plans for how to completely remove any artifacts related to
89 the numerical processing, if manpower allows at some point in the
90 future.
91 * Add internal utilities for evaluating S(alpha,beta) kernels at any
92 (alpha,beta) point, and add utilities for what is essentially exact
93 sampling or integration for cross sections. These utilities are useful
94 as they allow us to validate scattering kernel models better, and are
95 used directly in the new UCN-production models.
96 * Add notice to the ncrystal_preparemcstasdir for how to make it work when
97 using NCrystal with the McStas-Union geometry system.
98 * CMake now actually installs the "nctool" alias of "ncrystal_inspectfile".
99 * S(alpha,beta) kernels hardcoded in .ncmat files will now have any
100 null-edges discarded upon loading. This is often needed for kernels
101 converted from ENDF files, where the alpha/beta grid is often larger
102 than needed.
103 * Add PiecewiseLinearFct1D utility class (for some reason we had utilities
104 for cubic splines and sampling of piece-wise linear functions, but not
105 for simple evaluations of them!).
106 * Fix bug when accessing DynInfo of directly specified scattering kernels
107 with the Python interface (the DI_ScatKnlDirect was missing a required
108 initialisation).
109 * The process summaries printed via ncrystal_inspectfile or accessed via
110 the Python interface, now supports multiple layers of nested
111 processes. This was required to support the new ExcludeUCNScatter
112 process, which is implemented as a wrapper of two other processes.
113 * Adding experimental and incomplete support for converting raw parsed
114 NCMAT data to JSON. This is intended to help avoid the need for
115 resorting to custom parsing code, but is clearly an expert-only feature
116 as the data is presented as-is, without additional loading.
117
118 v3.0.0 2022-04-24
119 * The NCrystal v3.0.0 release brings both major new features and technical
120 improvements "under the hood", with around 19.000 lines of code changed
121 in more than 300 files! The list of specific changes is too long to
122 document here, but the following bullet points mention a few highlights
123 as well as a select number of very specific technical details. For a
124 more detailed and hopefully readable overview, please refer to the
125 following page in the wiki:
126 https://github.com/mctools/ncrystal/wiki/Announcement-Release3.0.0
127 Furthermore, we would like to encourage users to post questions
128 concerning the new release (or anything else NCrystal related obviously)
129 to the forum at: https://github.com/mctools/ncrystal/discussions
130 * Support for multiphase materials. These can be defined in terms of phase
131 volume-fractions, either in cfg-strings
132 ("phases<0.9*Al_sg225.ncmat&0.1*Be_sg.ncmat>"), in NCMAT data, or a
133 combination of those. All interfaces and tools have been updated to
134 properly integrate multiphase materials, in a manner which is believed
135 to not add complications when working with single-phase materials.
136 * Framework-level support for Small Angle Neutron Scattering (SANS)
137 physics. The release includes resources to facilitate future development
138 of advanced SANS models, and already include a hard-sphere SANS model
139 (useful both by itself, and as proof-of-concept for other models).
140 * Material densities can now be easily modified. This can be done by
141 either specifying a relative scaling,
142 "Polyethylene_CH2.ncmat;density=0.9x", or an absolute one:
143 "Polyethylene_CH2.ncmat;density=0.88gcm3" (g/cm^3) or
144 "Polyethylene_CH2.ncmat;density=0.1perAa3" (atoms/Aa^3).
145 * Support for quickly setting up unstructured materials with just a
146 cfg-string and without a data file for such simple materials. For
147 instance, a He3 gas might be defined via the cfg-string
148 "freegas::He/0.17kgm3/He_is_He3". This makes it easy to add materials
149 for which the structure is not deemed important (e.g. in a strong
150 absorber).
151 * The various new features can be combined for quickly settting up
152 advanced materials. For instance, here is how to define a low-density
153 polyethylene with enriched B4C pellets, even without a dedicated data
154 file for B4C:
155 "phases<0.99*Polyethylene_CH2.ncmat;density=0.8x&0.01*solid::B4C/2.5gcm3/B_is_0.95_B10_0.05_B11>"
156 * Improve documentation of cfg-string parameters, with the code now able
157 to provide dynamic documentation, which can be accessed either
158 programatically (with the Python/C/C++ API or by running
159 ncrystal_inspectfile --doc), or on the new wiki page:
160 https://github.com/mctools/ncrystal/wiki/CfgRefDoc
161 * Introduce for convenience a new cfg-string parameter "comp", which can
162 be used to easily pick out one or more of the components contributing to
163 the scattering cross section. For instance, appending ";comp=inelas" to
164 any cfg-string (i.e. "Al_sg225.ncmat;comp=inelas"), will disable all
165 components *except* inelastic models.
166 * Reflection (hkl) planes provided by NCrystal are now grouped according
167 to the symmetry-equivalency indicated by the space group. This has the
168 benefit of drastically improving both the initialisation time and memory
169 usage needed for hkl lists, and additionally makes it easier to use
170 reflection lists from NCrystal with other software which often depends
171 on such symmetry groupings. Additionally, ondemand loading for quicker
172 inspection (e.g. --dump will be almost instantaneous even for the most
173 complicated crystal structures), and by default only the 10 planes with
174 largest dspacing is shown.
175 * Improve and update McStas support:
176 - Make NCrystal work with both the McStas v2.7 and McStas v3.0 branches.
177 - Add ncrystal_ncmat2hkl cmd-line utility for converting NCMAT files to
178 the .laz and .lau files needed by the McStas PowderN and
179 Single_crystal components (note that this only includes Bragg
180 diffraction, not inelastic/incoherent/SANS/multiphase physics for
181 which direct NCrystal usage in the NCrystal_sample component or
182 McStas-Union system is needed).
183 - Utilities for better/easier integration between NCrystal and the
184 McStas-Union system for complex geometries.
185 * Remove the few optional files which were not copyrighted by the NCrystal
186 developers, ensuring that the entire NCrystal release now has a single
187 well-defined license (Apache 2.0). The removed files were used to
188 support the semi-obsolete .nxs file format, and will still be available
189 as a separately distributed plugin if really needed.
190 * Stop supporting Python 3.5. Oldest supported Python version is now
191 Python 3.6.
192 * Introduce NCMAT v6 which adds a new optional @OTHERPHASES section to the
193 format, allowing secondary phases to be defined via volume fractions and
194 cfg-strings.
195 * Remove NCMatCfg::isPolyCrystal which used to return the opposite of
196 isSingleCrystal(). This was obviously misleading for non-crystalline
197 materials.
198 * Vector::normalise() now does nothing if the squared magnitude is already
199 within 2 ULP's of unity. This is to avoid repeated calls to this
200 function from inducing slight changes due to numerical inaccuracies in
201 the normalisation process.
202 * Add cyclical dependency detection in NCrystal factories to exit with
203 clear error instead of deadlocking. This is in particular needed to
204 handle cyclic dependencies in multiphase materials in which a phase is
205 wrongly defined by recursively referring back to the top level material.
206 * Type safe AtomData::captureXS in C++.
207 * Add utilities for encoding data in JSON format, which for now is used to
208 enable conversion of MatCfg objects as JSON objects. On the python side
209 this means that a cfg-string can be decoded into a Python dictionary
210 using the new decodeCfg function (a new encodeCfg function re-encodes
211 this into a cfg-string).
212 * Fix bug where scattering kernels generated on-the-fly from VDOS curves
213 with vdoslux values less than 3 (the default) were subsequently treated
214 to the "beta-thickening" procedure introduced in release v2.6.1. This
215 procedure is now, as intended, only applied to externally provided
216 kernels, since the on-the-fly generated ones already have an optimised
217 grid layout.
218 * ncrystal_inspectfile gets --energy/--liny/--logy/--xrange options to
219 control more aspects of the generated plots.
220 * Introduce an alias, nctool, for the ncrystal_inspectfile command (this
221 is done in anticipation of a future actual renaming of the command).
222 * Fix misleading @ATOMDB examples in NCMAT documentation where cohSL
223 numbers for Si and Al were a factor of 10 off from realistic numbers,
224 which might confuse users to think they have to use a unit of 0.1fm
225 rather than fm for such numbers (github issue #77).
226
227 v2.9.93 2022-04-21
228 * Release candidate #3 for release 3.0.0.
229 * Detailed ChangeLog to come.
230
231 v2.9.92 2022-04-10
232 * Release candidate #2 for release 3.0.0.
233 * Detailed ChangeLog to come.
234
235 v2.9.91 2022-03-02
236 * Release candidate #1 for release 3.0.0.
237 * Detailed ChangeLog to come.
238
239 v2.7.3 2021-09-09
240 * Add missing import statement in ncrystal_hfg2ncmat (github issue #71).
241 * C++ API gets ekin2ksq and ksq2ekin utility functions.
242 * Cleanup the PointwiseDist utility class and add new sampleBelow and
243 commulIntegral utility functions
244 * Add new internal IofQHelper utility class which can be used to
245 implement elastic physics described via an I(Q) curve
246 * Fix some obscure -Wshadow warnings on some rare platforms when some
247 local variable named s or m clashes with global variables of the same
248 name from Geant4.
249
250 v2.7.2 2021-07-08
251 * Various compilation fixes, affecting only users of Geant4-hooks with
252 the most recent Geant4 release (10.07.p02) or users with the rather
253 outdated gcc 4.8.5 (github issue #69).
254
255 v2.7.1 2021-06-17
256 * Fix single crystal alignment bug which was inadvertantly introduced
257 among the many technical changes in release v2.5.0, essentially
258 swapping the meaning of @crys: and @crys_hkl: in the parts of the cfg
259 strings defining the crystal orientation.
260
261 v2.7.0 2021-05-31
262 * Introduce NCMAT v5 which two updates for the format, both meant to
263 facilitate modelling of amorphous (i.e. non-crystalline) solids.
264 Firstly, Debye temperatures can now be specified directly in @DYNINFO
265 sections of vdosdebye type, meaning that such sections can now also be
266 used in non-crystalline materials where @DEBYETEMPERATURE sections are
267 disallowed. Secondly, a new optional @STATEOFMATTER section can be used
268 to explicitly indicate the state of matter if needed. If @STATEOFMATTER
269 is not specified, materials with crystal structure or vdos curves are
270 assumed to be solids, otherwise the state will be undefined. Amorphous
271 solids will currently get both inelastic and elastic physics determined
272 from the VDOS curves - with coherent components approximated via the
273 incoherent approximation.
274 * Improve HKL plane initialisation code to make it 200% faster (i.e. a
275 factor of 3 speedup)! This was mostly achieved by using our own custom
276 sin+cos implementations, which are much faster than the standard ones,
277 but with no impact on precision. As a result, the heuristics picking a
278 default dcutoff value were updated so that structures with more than 40
279 atoms per unit cell now defaults to dcutoff=0.2Aa, as opposed to
280 dcutoff=0.25Aa before (the default value for other materials remain
281 dcutoff=0.1Aa).
282 * Add ncrystal_hfg2ncmat script for convenient production of NCMAT files
283 for hydrogen rich amorphous materials, based on concept and data from
284 Romanelli et. al. (2021), https://dx.doi.org/10.1088/1361-648X/abfc13
285 * Add ncrystal_onlinedb2ncmat script for creating materials with crystal
286 structure taken from online databases (materialprojects.org or
287 Crystallography Open Database). The script also has options for copying
288 material dynamics from existing .ncmat files, and for verifying that
289 NCMAT files containing comments containing specific links to entries in
290 these databases, actually contain those structure (by overlaying Bragg
291 cross section curves). Internally the script uses the Python Materials
292 Genomics (pymatgen) Python module to access the online databases.
293 * Add ncrystal_verifyatompos script for verifying that the list of
294 @ATOMPOSITIONS in an .ncmat file is consistent with the indicated
295 @SPACEGROUP number. Internally the script uses the Atomic Simulation
296 Environment (ASE) Python module to handle the symmetries.
297 * Add 16 new amorphous materials. Most are created with the
298 ncrystal_hfg2ncmat script: Epoxy_Araldite506_C18H20O3 Kapton_C22H10N2O5
299 Nylon11_C11H21NO Nylon12_C12H23NO Nylon610_C16H30N2O2
300 Nylon66or6_C12H22N2O2 PEEK_C19H12O3 Polycarbonate_C16O3H14
301 Polyester_C10H8O4 Polylactide_C3H4O2 Polypropylene_C3H6 Polystyrene_C8H8
302 PVC_C2H3Cl Rubber_C5H8. The material Polyethylene_CH2.ncmat is not
303 created with the ncrystal_hfg2ncmat script (although it could have
304 been), but is instead based on phonon DOS curves provided by Kemal Ramic
305 from the ESS Spallation Physics group, (based on modelling with Phonopy,
306 VASP and OCLIMAX software). Finally, AcrylicGlass_C5O2H8.ncmat
307 (a.k.a. "Plexiglass" or "Lucite"), is based on a VDOS curve used in
308 ENDF/B-VIII.0 due to Petersen, et. al. (NCSU)., as it gave a slightly
309 better fit to experimental data.
310 * Add CaSiO3_sg2_Wollastonite.ncmat. The main motivation for adding this
311 is that our library should contain at least one triclinic material, to
312 make sure we exercise all code paths. For now, the material does not
313 have VDOS curves and the dynamics are described via the Debye model.
314 * Thanks to work by K. Ramic and J. I. Marquez Damian from the ESS
315 Spallation Physics group under the HighNESS EU project, a massive number
316 (64) of new crystalline materials are added to the data library, which
317 along with the 16 new amorphous materials brings the number of material
318 files shipped with NCrystal to a whooping total of 131! Additionally,
319 VDOS curves were added for 4 existing materials so that now only two
320 crystalline materials (gamma-calcium and wollastonite) in the entire
321 library have dynamics based purely on the less accurate Debye model. The
322 64 new crystalline materials are mostly polyatomic materials of interest
323 to the wider community of nuclear scientists, neutronics, and neutron
324 scattering instrumentation. All these materials come fully described
325 with both crystal structures and phonon VDOS curves, and have been
326 carefully validated. Crystal structures are mostly taken from the
327 Crystallography Open Database and the Materials Project, with most
328 structures verified by verification against multiple DB entries (using
329 the ncrystal_onlinedb2ncmat script). The VDOS curves are mostly based on
330 calculations with Phonopy and OCLIMAX software with input files from the
331 Phonon database at Kyoto university
332 (http://phonondb.mtl.kyoto-u.ac.jp/). VDOS curves for two materials,
333 magnesium hydride (MgH2) and magnesium deuteride (MgD2), were provided
334 by Davide Campi and Marco Bernasconi from University of Milano-Bicocca,
335 based on DFPT calculations with the Quantum-ESPRESSO package. All
336 materials were validated against total cross section curves where
337 available, VDOS curves were verified to be in agreement with
338 experimentally measured heat capacity curves, predicted material
339 densities were verified to be in accordance with known densities, and
340 crystal symmetries were verified with the ncrystal_verifyatompos script.
341 * Files for a few existing materials (SiLu2O5, UO2, SiO2) were renamed for
342 consistency, and Crystallography Open Database reference numbers were
343 added for all existing crystalline files.
344 * Fixed bug where some hkl planes slightly above the d-spacing cutoff were
345 left out of the final calculated list. Cubic, tetragonal, and
346 orthorombic space groups were not affected by this bug, and since our
347 default d-spacing cut off value is rather low, the effect was in any
348 case unlikely to have affected many users.
349 * Fixed bug where some hkl planes could very rarely be left out in
350 crystals containing elements with negative coherent scattering
351 lengths. It is not believed to be likely that this bug has affected any
352 users, but a few of the new materials would have been affected.
353 * Updated calcium scattering lengths due to improved measurements,
354 Palomino et al. (2019), DOI:10.1016/j.nima.2019.02.072. This was
355 implemented as a modification of b_coh for natural Ca and the dominant
356 isotope Ca40, increasing the values of both b_coh parameters by roughly
357 23%.
358 * NCrystal.directMultiCreate now works with NCrystal.TextData objects.
359 * Improve wrapping and indentation in code produced by the Python
360 formatVectorForNCMAT utility function.
361 * Add --stdout option to ncrystal_vdos2ncmat for easier usage in scripts.
362 * Small fix for NCMAT parser which previously allowed multiple entries in
363 @DENSITY section.
364 * Add unofficial mechanism for removing certain contributions when
365 expanding a VDOS to a scattering kernel. This is primarily intended to
366 allow people working on plugins with detailed coherent physics to avoid
367 double-counting by making it possible to exclude components otherwise
368 created based on the incoherent approximation. The mechanism is
369 implemented via the @CUSTOM_ support in NCMAT data, and it should be
370 understood that files with such sections are always considered "under
371 development", and unlikely to be suitable for general usage.
372 * Expose VDOS analysis utilities from NCVDOSEval.hh to Python and C
373 interfaces. In Python this is available both as a global analyseVDOS
374 function, and as a member function in DI_VDOS objects. Return value is a
375 dictionary with quantities derived from the VDOS curve: Debye
376 temperature, mean-squared-displacements, effective temperature, etc.
377 * Rename Python crossSectionNonOriented method to crossSectionIsotropic
378 for consistency, keeping crossSectionNonOriented as a backwards
379 compatible alias.
380 * Fix python NCrystal.atomDB method where some situations of querying for
381 unknown isotopes would always result in an exception even when called
382 with throwOnErrors=False (github issue #65).
383 * Type safe VDOSEval::elementMassAMU in C++.
384 * Conversion from shared_obj<T> to pointer T* in C++ is made explicit to
385 avoid footgun "const Info* info = NC::createInfo(..)". The footgun is
386 still available for references (const Info& info = ...), but that is a
387 necessary tradeoff since the implicit conversion to a reference is so
388 useful when passing shared objects to functions taking reference
389 parameters.
390
391 v2.6.1 2021-05-03
392 * Workaround for numerical artifacts in inelastic cross sections arising
393 from low-granularity beta-grids. In practice this affected materials
394 which either used hard-coded low-granularity scattering kernel, or those
395 with phonon VDOS curves that had large empty regions (often the case for
396 hydrogen VDOS curves in materials with C-H bounds). The workaround for
397 external low-granularity kernels consists of a simple "thickening" of
398 the beta-grid, while the workaround for VDOS-based kernels consists in
399 modifying the beta-grid generation code to ensure points are inserted
400 into any large gaps in the single-phonon region.
401
402 v2.6.0 2021-04-05
403 * Introduce NCMAT v4 which introduces a few new features, as described in
404 detail in the ncmat_doc.md file. The most important new feature relies
405 on the fact that it is possible to estimate atomic
406 mean-squared-displacements directly from a phonon density of state
407 distribution (VDOS), meaning that it is now allowed (and actually
408 recommended) to skip @DEBYETEMPERATURE's for crystalline materials where
409 atoms have VDOS curves available). This is not only useful, but improves
410 low-temperature reliability of the Debye-Waller factors used in the
411 elastic scattering components. This development was helped by Kemal
412 Ramic and Jose Ignacio Marquez Damian from the ESS Spallation Physics
413 group, and more details are available in the ncrystal GitHub issue
414 #58. The other new feature in NCMAT v4 is a new optional syntax for the
415 @CELL section, which allows more compact specification for certain
416 crystal systems (in particular cubic systems).
417 * The vast majority of crystalline materials in the NCrystal data library
418 were updated to take advantage of the new features, and in addition the
419 number of VDOS curves was increased dramatically, meaning that the
420 dynamics in almost all crystalline materials are now described using
421 actual VDOS curves rather than just Debye temperatures.
422 * Missing VDOS curves for all elements in beryllium-fluoride (BeF2),
423 aragonite (CaCO3), cuprite (Cu2O), periclase (MgO), and quartz (SiO2)
424 were provided by Kemal Ramic from the ESS Spallation Physics group,
425 based on modelling with Phonopy, VASP and OCLIMAX software.
426 * Missing VDOS curves for 14 mono-atomic materials were added (fixing
427 github issue #39): Au, Ba, Cr, Mg, Mo, Na, Nb, Pd, Pt, Rb, Sc, Sn, Y,
428 and Zn. Refer to comments in the individual NCMAT files for references
429 concerning the origin of these curves.
430 * Missing VDOS curves were added to uranium oxide (UO2), taken from
431 DOI:10.1103/PhysRevB.102.134312. Note that UO2 NCMAT files with VDOS
432 tuned for specific temperatures are available (refer to comments in the
433 UO2 NCMAT file for details).
434 * All existing files with VDOS have been update to NCMAT v4, and had
435 @DEBYETEMPERATURE sections removed in order to benefit from the better
436 performance of getting the atomic displacements from the VDOS.
437 * Added new material: gamma-Iron (Fe_sg225_Iron-gamma.ncmat) with VDOS
438 curve. At the same time, the not particularly useful beta-Iron file was
439 removed, so the NCrystal data library now contains both alpha- and
440 gamma-iron, both with VDOS curves.
441 * Expose debyeIsotropicMSD and debyeTempFromIsotropicMSD functions from
442 NCDebyeMSD.hh header to C and Python, allowing conversions between
443 atomic mean-squared-displacement and Debye temperature.
444 * Improve robustness of the function debyeTempFromIsotropicMSD. Previously
445 the internally deployed root-finding algorithm could fail under some
446 scenarios (e.g. non-ultra cold rubidium).
447 * Various improvements for ncrystal_vdos2ncmat.
448 * Compilation fix for pre-Catalina OSX where the aligned_alloc function is
449 apparently missing.
450 * Fix bug where early calls to removeAllDataSources could get reverted by
451 subsequent plugin loading.
452 * Before defining macros in public headers, check if present already and
453 if so undefine.
454
455 v2.5.81 2021-04-01
456 * RC2 for incoming release v2.6.0.
457
458 v2.5.80 2021-03-25
459 * RC1 for incoming release v2.6.0.
460
461 v2.5.0 2021-03-21
462 * The NCrystal v2.5.0 release brings major technical improvements to
463 NCrystal "under the hood", with around 15.000 lines of code changed in
464 more than 200 files! Although massive, the changes are mostly technical
465 in nature and mainly affects the C++ API, so people using NCrystal in
466 another way (e.g. through Python, C, Geant4, McStas, ANTS2, ...), should
467 still find that everything keeps working as before - although perhaps
468 with slightly improved performance and with a few new useful function
469 having been added to the Python/C API's.
470 * The list of specific changes is too long to document here, but we
471 have tried to provide a high-level overview of the developments
472 in the wiki, so please find additional information at:
473 https://github.com/mctools/ncrystal/wiki/Announcement-Release2.5.0
474
475 v2.4.81 2021-03-16
476 * RC2 for incoming release v2.5.0.
477
478 v2.4.80 2021-03-15
479 * RC1 for incoming release v2.5.0.
480
481 v2.4.0 2020-12-17
482 * Properly support delivery of NCMAT data files from plugins. For clarity,
483 and to avoid name clashes, such data files must follow a clear naming
484 scheme "ncplugin-<PLUGINNAME>_*.ncmat". The mechanism for making the
485 data files available will depend on how the plugin is used, and is of
486 course automatic. For a static plugin, built into a given NCrystal
487 installation, the data file will be installed along with all of
488 NCrystal's own data files (either as physical files or compiled into the
489 NCrystal library, depending on the NCrystal configuration). For a
490 dynamic plugin, built separately and later loaded by adding the plugin's
491 shared library to NCRYSTAL_PLUGIN_LIST, the data file will be compiled
492 into the plugin library. Finally, for plugin developers, the data files
493 will be made available via a symlink, ensuring that it is possible to
494 directly edit the data file during development.
495 * Support (on unix) relative paths in NCRYSTAL_PLUGIN_LIST.
496 * Add option to ncrystal_ncmat2cpp for injecting include statements in
497 generated code.
498 * Plugin developers can now also see their test .ncmat files in the list
499 provided by ncrystal_inspectfile --browse.
500 * Export more information to client cmake projects.
501
502 v2.3.1 2020-12-17
503 * Small bugfix fixing the loading of dynamic plugins.
504 * Ensure plugins are loaded before file searching is carried out. This
505 allows plugins to register in-memory files.
506
507 v2.3.0 2020-12-11
508 * Replace span class with a fully home-grown solution. This means that all
509 core NCrystal code is once more fully available under the primary
510 license (the Apache 2.0 license).
511 * Cfg parameters scatfactory and absnfactory now supports exclusion of
512 specific named factories. This is used to (by default) exclude current
513 factory from consideration when globalCreateScatter/Absorption is
514 invoked from a factory (github issue #51).
515 * Replace the '$(ncrystal-config --setup)' idiom with one which works also
516 when entries in PATH contains spaces: 'eval $(ncrystal-config --setup)'
517 (github isse #52).
518 * Rename internal radius variable in McStas sample, to avoid clashes with
519 component parameter (apparently this gave issues for McStas 3.0).
520
521 v2.2.2 2020-12-11
522 * Bugfix for system-wide installations. Input files were
523 accidentally opened in RW mode rather than just readonly, causing
524 permission errors when user invoking NCrystal did not have
525 write-permission to the input file. Thanks to the McStas crew for
526 noticing this.
527
528 v2.2.1 2020-12-02
529 * Bugfix restoring support for .nxs/.laz/.lau files which was accidentally
530 disabled in v2.2.0.
531 * Modify CMake code slightly to avoid warnings or unset CMAKE_BUILD_TYPE
532 under certain conditions where NCrystal is included as a sub-project.
533
534 v2.2.0 2020-12-02
535 * Support plugins (github issue #50)! Such plugins can be externally
536 developed (for instance on GitHub), and either loaded dynamically at
537 run-time by NCrystal or statically compiled into the NCrystal library
538 (see the next item). How to use or develop plugins is described in
539 more detail at https://github.com/mctools/ncrystal/wiki/Plugins .
540 * Major revamp and modernisation of CMake configuration code. Client code
541 can now find NCrystal via find_package statements (github issue #45),
542 which makes an NCrystal::NCrystal library target available. Geant4-code
543 needing the Geant4-NCrystal hooks must instead search for G4NCrystal
544 with find_package and add a dependency on the G4NCrystal::G4NCrystal
545 target. The new CMake code also facilitates static inclusion of
546 externally developed plugins (if for some reason this is preferred to
547 dynamic loading of the plugins). NCrystal now requires CMake 3.10.
548 A side-effect of the modernised CMake code is that installation
549 directories are affected somewhat.
550 * Add ncrystal-config script which can be queried for details about a
551 given installationn, or even used to setup the user environment by
552 typing $(./path/to/ncrystal/installation/bin/ncrystal-config --setup) in
553 a shell. The installed setup.sh file now simply wraps such a call.
554 A side-effect of the work on ncrystal-config and CMake is that NCrystal
555 installations are in general more relocatable and should continue to
556 function even if the installation directory is moved.
557 * Officially stop support of Python2 (github issue #48). Python2 (and many
558 major Python projects) had EOL January 2020, and PyPI (aka pip install)
559 has announced end of support for Python2 by January 2021. Users needing
560 to use NCrystal with Python2 will have to stick with NCrystal release
561 v2.1.1.
562 * Add support for NCRYSTAL_DATA_PATH variable, checked after
563 NCRYSTAL_DATADIR env. var and NCRYSTAL_DATADIR preprocessor definition
564 (github issue #49).
565 * Add ability to browse a list of available .ncmat files (of course only
566 those in the current working directory or search path). Can for instance
567 be accessed via "ncrystal_inspectfile --browse" (github issue #5). The
568 same tool can also --extract content of available files, and display
569 available plugins with --plugins.
570 * Fix Python interface cleanup-order bug where __del__ method could refer
571 to an already removed ctypes module at programme shutdown.
572 * Fix silly bug where W was left out of the alphabet in a few places.
573 * Fix big affecting printing of MatCfg objects with in-memory datafiles.
574 * Remove obsolete functions naturalElementDB and naturalElementDBByName
575 from Python interface (use the atomDB function instead), and update the
576 ncrystal_endf2ncmat script to work with new atomDB interface.
577 * Modernise C++ code, preventing raw new/delete usage and associated
578 memory management woes. RCHolder objects can be automatically converted
579 when possible (to const ptr or base class ptr), and add makeRC / castRC
580 / static_castRC functions, similar to std::make_unique and
581 std::make_shared, but for instantiating classes derived from RCBase
582 directly into an RCHolder object. Apply new features throughout
583 codebase, and fix a slew of compilation warnings (mostly for clang12 or
584 gcc 4.8).
585 * Add DynLoader utility class for dynamic loading of shared libraries and
586 access to contained functions (used for dynamic plugin loading).
587 * Add common utilities for reading environment variables.
588 * Add ncglob function for file globbing.
589 * Add FactoryBase::combineScatterObjects helper method to encapsulate
590 the workarounds still needed in custom scatter factories.
591
592 v2.1.1 2020-11-07
593 * Reverse minor change in NCDefs.hh, which meant that client code which
594 was including public NCrystal C++ headers was prevented from using constants
595 like M_PI and friends (of course, usage of such constants is not
596 portable, and thus not really recommended). Release 2.1.1 is otherwise
597 completely identical to release 2.1.0.
598
599 v2.1.0 2020-11-06
600 * Introduce the NCMAT v3 format, which supports @ATOMDB (github issue #21)
601 and @CUSTOM_ sections (github issue #42). As usual, the file
602 docs/ncmat_doc.md documents the new format in detail.
603 * With the @ATOMDB section (and the related configuration parameter named
604 atomdb, documented in NCMatCfg.hh), it is now possible to configure
605 atomic compositions in a highly flexible manner. Thus, both enriched
606 elements and impurities/dopants are now supported, and physics constants
607 such as neutron scattering lengths can be overridden from the data file
608 -- but most users will likely find plenty of materials in the internal
609 database. This internal database has now been expanded with 261 isotopes
610 in addition to the natural elements previously included (note that the
611 constants for some natural elements have received slight tweaks for
612 consistency).
613 * The @CUSTOM sections provides a way to embed custom data in NCMAT files
614 and having it end up on the Info object (accessible from
615 C/C++/Python). This is mainly intended for people working on extending
616 NCrystal with custom or experimental physics models, who need a
617 mechanism for providing the extra data. Note that by default NCrystal
618 emits warnings when loading NCMAT files with @CUSTOM_ sections. This is
619 because files with such sections are by their very nature associated
620 with custom code development, and therefore can not be expected to
621 provide consistent physics if shared with a wider community. It is
622 possible to silence these warnings, via the C++ API or an environment
623 variable.
624 * Support for using in-memory NCMAT data (github issue #20). This makes
625 it possible to initialise materials from dynamic string-data in
626 C++/Python/C, rather than needing on-disk files.
627 * Add script ncrystal_ncmat2cpp which can be used to convert NCMAT files
628 to C++ code which embeds the data directly in a binary, using the the
629 new feature for in-memory NCMAT data.
630 * Add CMake installation option for embedding the shipped .ncmat data
631 files into the NCrystal shared library. Enable via CMake configuration
632 flag -DEMBED_DATA=ON. The files are still accessible via their usual
633 names in NCrystal cfg strings, e.g. createScatter("Al_sg225.ncmat") will
634 still work, even if there will be no physical Al_sg225.ncmat file
635 installed.
636 * Added advanced C++ example which shows how it is possible to customize
637 NCrystal and add a new physics model. The example also use the new
638 features for in-memory files and @CUSTOM_ section in .ncmat files.
639 The example is in the file examples/ncrystal_example_customphysics.cc
640 (which compiles to the executable bin/ncrystal_example_customphysics
641 when installing via CMake).
642 * The internal database of elements and isotopes is now accessible also in
643 the C and Python interfaces. In Python, one can iterate through all
644 entries using the new module-level function named iterateAtomDB, or
645 extract specific entries using the new module-level function named
646 atomDB. The latter accepts either Z and A values, or strings such as
647 "Al", "He3", etc.
648 * The Python-API is made slightly more convenient, by equipping the
649 Process and Scatter classes with new methods named xsect and
650 genscat. These methods optionally accepts neutron wavelengths (by the wl
651 parameter), and will delegate the calls to oriented and non-oriented
652 functions depending on whether the parameter named direction was provided.
653 * Various other improvements were done for the Python interface as well:
654 AtomInfo, Compositions, and all Debye temperature methods are now
655 accessible as well, there are now functionality for efficiently
656 generating large amount of oriented scatterings, and finally all classes
657 and methods now have proper doc-strings.
658 * Various improvements were carried out in the C++ code: removed obsolete
659 __cplusplus >= 201103L precompiler checks, added more string utility
660 functions, made wl2ekin and ekin2wl constexpr, made createInfo(..)
661 multi-thread safe, added NCRYSTAL_API macro to new classes and functions
662 (including those introduced in v2.0.0). Remove custom UniquePtr class in
663 favour of std::unique_ptr from C++11. Improve RCHolder class (*,->
664 overloading, move semantics).
665 * Fix radian->degree conversion in the plot of scatter angles versus
666 wavelength provided by ncrystal_inspectfile (it was multiplying by 57
667 instead of 180/pi which is 0.5% off).
668 * Support the rare use-case of wanting HKL structure factors calculated
669 with Debye-Waller factors forced to unity (github issue #22). Setting
670 the NCRYSTAL_FILLHKL_FORCEUNITDEBYEWALLERFACTOR environment variable
671 will now result in just this.
672 * Parsing of NCMAT v1 files now more strictly adheres to the
673 specification, and does not allow comments except as full-line comments
674 before the first data section.
675 * Info dumps will now detect and display simple fractions in atomic
676 positions (e.g. "1/3" instead of "0.666667"). This only happens for
677 denominators <=64 and for exact matches at full double-precision.
678 * Internal NCrystal header files are now exposed in the internal sub-
679 directory (github issue #46) with include statements like #include
680 "NCrystal/internal/NCMath.hh" . These are meant to facilitate
681 experimental development of new features, and are not guaranteed to
682 present a stable API. They also do not in general contain NCRYSTAL_API
683 statements needed for symbol visibility in certain builds.
684
685 v2.0.0 2020-08-13
686 * Milestone 2.0.0 release!
687 * The main feature of this release is that it finally brings proper
688 state-of-the-art inelastic physics to NCrystal. Additionally, also
689 incoherent-elastic scattering was cleaned up and made self-consistent,
690 so NCrystal v2.0.0 can truly be said to be the release in which NCrystal
691 finally moves beyond its former focus on Bragg diffraction. Additionally
692 and also for the first time, NCrystal can now support the modelling of
693 certain non-crystalline materials (e.g. liquids).
694 * The actual changes between NCrystal v1.0.0 and v2.0.0 took place in ~500
695 commits touching several hundreds of files, and are far too vast to list
696 here in detail. However, the release announcement page for NCrystal
697 2.0.0 attempts to provide a short summary of user-facing changes
698 concerning physics capabilities, the materials data library, and the
699 syntax of NCrystal configuration strings:
700 https://github.com/mctools/ncrystal/wiki/Announcement-Release2.0.0
701 * A few technical details warrent highlighting here though as they
702 potentially impact deployment: Firstly, NCrystal now requires C++11 or
703 later for compilation, the older standards C++98 and C++03 are no longer
704 supported. Secondly, in order to support C++11, the standard NCrystal
705 CMakeLists.txt file now requires CMake 3.1.0 or later (as opposed to the
706 previous requirement of CMake 3.0.0). Finally, in order to backport
707 std::span from C++20 for internal usage in NCrystal code, a single file
708 (NCSpan.hh) is for now covered under the Boost Software License (the
709 license text is included in the file NCSpan.hh itself). This license is
710 even more permissive than the Apache 2.0 license which still covers the
711 rest of the core NCrystal code, and as such this should not add any new
712 licensing burdens to users.
713
714 v1.99.1 2020-08-11
715 * Release candidate number 1 for the new major release v2.0.0. The only
716 difference between this release and the release v2.0.0 is in a few
717 pieces of documentation and changed wording in an error message. Thus,
718 for all practical purposes it is identical to release v2.0.0.
719
720 v1.0.0 2019-07-05
721 * Milestone 1.0.0 release!
722 * Introduce new optional modelling of more realistic energy transfers in
723 inelastic scattering which can be enabled by setting
724 bkgd=phonondebye:modeldeltae. This feature is still to be considered
725 highly experimental and unvalidated.
726 * C-buffer length fixes for gcc 8.2.0.
727 * Prefer importlib.import_module rather than exec in ncrystal_inspectfile
728
729 v0.9.19 2019-02-19
730 * Default value of sccutoff parameter is moved slightly down, from 0.5Aa
731 to 0.4Aa and to make the effect less complicated, fsquared values are no
732 longer taken into account. The effect of the change is very small,
733 influencing the single crystal mosaicity distributions slightly for
734 neutrons with wavelengths below 1Aa.
735
736 v0.9.18 2019-01-24
737 * SPACEGROUP field is now optional in .ncmat files (but is always provided
738 in all official ones).
739 * The loadNCMAT function now accepts std::string for convenience.
740
741 v0.9.17 2019-01-11
742 * Change source for Quartz data file (results in small numerical changes only).
743 * Add new datafile for Sodalite.
744 * Updated year in copyright notice in all files.
745
746 v0.9.16 2018-12-18
747 * Fix small mistake preventing compilation of McStas component.
748
749 v0.9.15 2018-12-18
750 * Add three new materials, expanding coverage of data library: Uraninite,
751 Aragonite and SiLu2O5.
752 * Lower default dcutoff value for most .ncmat files to 0.1Aa, in response
753 to validation plots of Uraninite.
754 * Updated year in copyright notice in all files.
755 * Laz/Lau file loader now deals correctly with missing lattice_b/lattice_c
756 parameters, and performs sanity checks in all cases.
757 * Provide convenience functions/methods to Info objects, providing
758 d-spacing of a given hkl value.
759 * FillHKL use numerically stable summation when calculating structure factors.
760 * Add NCrystal version printout from the NCrystal_sample component in
761 McStas. Also sanity check the header file and library versions found.
762 * Add NCDebyeMSD utilities for getting mean squared atomic displacements
763 in the Debye model and use in .ncmat factory (to replace isotropic
764 Debye/Glauber model everywhere for consistency).
765 * For cosmetic reasons, avoid signed negative zero in atomic positions.
766 * Minor updates to .ncmat files (mostly cosmetic or rounding of numbers).
767
768 v0.9.14 2018-10-17
769 * Minor change in Geant4 interface to support Geant4 10.4 and later releases.
770
771 v0.9.13 2018-09-27
772 * Stop shipping hand-written .nxs files. Instead, attempt to auto-generate
773 .nxs files from all shipped .ncmat files, and where possible ship
774 those. This is done in order to ensure greater consistency and a lower
775 burden of maintenance moving forward. During this process a few issues
776 were found with Wyckoff positions in a few .nxs files, which should now
777 be fixed by the new procedure.
778 * Changed dcutoff for crystals with complex unit cells (like yttrium
779 oxide) from 0.4Aa to 0.25Aa when loading from .ncmat. For all other
780 .ncmat files in our data library, the value stays at 0.15Aa.
781 * Fix LCBragg error in case of the double degenerate case where both
782 neutron and lcaxis are parallel to (0,0,1).
783 * Faster fillHKL function, in particular for very small dcutoff values.
784 * The fillHKL function now supports the NCRYSTAL_FILLHKL_IGNOREFSQCUT
785 environment variable, which can be used to disable the fsquarecut entirely.
786 * Increased numerical stability in structure factor summation during
787 PCBragg initialisation.
788 * Phase out usage of non-standard constants like M_PI.
789 * Increase MC overlay safety factor slightly for LCBragg scatter generation.
790 * Improve colors and linestyles in ncrystal_inspectfile script.
791 * LCBraggRef models use numerically stable summation.
792
793 v0.9.12 2018-08-28
794 * Fix GaussMos cache-polution bug, where planes with similar d-spacing but
795 different Fsquared could get wrong Q-factor in single crystals with large
796 mosaicity.
797 * Fix uninitialised variable in NCMatCfg.cc, affecting only floating point
798 parameters not supporting units.
799 * Allow re-seeding of the RandXRSR fallback RNG.
800 * Add McStas example instrument file.
801 * More checks for invalid geometry parameters in the McStas component.
802
803 v0.9.11 2018-08-18
804 * Mark API functions and classes in an attempt to support Windows DLL
805 builds and UNIX builds with -fvisibility=hidden (see github issue #17).
806 * Add missing include in NCPCBragg.cc.
807
808 v0.9.10 2018-08-15
809 * This release represents a large amount of work in many areas, and in
810 particular focusing on aspects of Bragg diffraction in single crystals.
811 * The Gaussian mosaicity modelling code was completely reimplemented,
812 going back to the fundamental equations and making sure everything is
813 carried out in a consistent and precise manner. Cross-section evaluation
814 automatically selects between efficient numerical Romberg integrations
815 and evaluation of new improved closed-form expressions, which takes the
816 relevant spherically geometric into account. The code thus now
817 gracefully handles everything from backscattering to forward scattering
818 scenarios, and a large dynamic range of mosaicities, covering at least a
819 range of 0.01arcseconds to tens of degrees. Despite this, computational
820 speed is also improved, thanks to various enhancements and in particular
821 faster code for searching through the available plane normals. A new
822 parameter, mosprec, can be used to tune the tradeoff between precision
823 and speed. The default value of 1e-3 is likely adequate for almost all
824 users.
825 * Introducing a completely new and precise modelling of layered crystals,
826 with the LCBragg class. This class, primarily intended to be used for
827 modelling of Pyrolythic Graphite, by default takes the rotational
828 aspects of such crystal into account using an from-first-principles
829 approach to figuring out which sets of normals will contribute to the
830 scattering cross-sections, and then finding the exact contribution
831 through efficient numerical integrals. A crystal is considered to be a
832 layered crystal if it has the lcaxis vector parameter set. Additionally,
833 the lcmode parameter can be used to select slower reference parameters,
834 which simply sample an SCBragg single-crystal instance many times, in
835 different rotated systems.
836 * Huge speedup when modelling low-wavelength (<1Aa) neutrons in single
837 crystals: Approximate the very large number of very weak and
838 uninteresting scatter planes at 2*d-spacings < 1Aa with an isotropic
839 mosaicity distribution, which is a rather appropriate approximation due
840 to the very large number of very weak planes involved. The cutoff value
841 of dspacing=0.5Aa can be modified with the new sccutoff parameter.
842 * Bragg diffraction in powders and polycrystals was never slow, but the
843 PCbragg class was nonetheless rewritten to become even faster by working
844 on energies directly, avoiding internal conversions to wavelength at
845 each call.
846 * Embedded an NCRYSTALMATCFG[lcaxis=0,0,1] statement in the data file
847 C_sg194_pyrolytic_graphite.ncmat, so that it will by default be modelled
848 as a layered crystal with the correct rotation axis, which is likely
849 what almost all users will want.
850 * Calling generateScattering where cross-sections are vanishing now
851 generally leads to nothing happening (i.e. scatter_angle = 0 and
852 delta_ekin=0) rather than the previous fallback of isotropic elastic
853 scattering.
854 * Retire RandSimple and introduce instead RandXRSR implementing the
855 xoroshiro128+ generator. This means that the fall-back RNG option
856 shipped with NCrystal is now not only fast, but also fully suitable for
857 scientific work.
858 * Fix bug in the NCrystal McStas component which resulted in wrong
859 attenuation factors being calculated for the default absorption mode.
860 * Changed the conversion constants used in the McStas component in order
861 to make unit conversion issues in the NCrystal-McStas interface less
862 likely to produce undesired imprecision. Further discussions with McStas
863 devs will be needed in order to completely address the issue.
864 * Code creating lattice rotation matrices was updated in order to avoid
865 small rounding errors in the generated normals in most cases.
866 * More sanity checks and input pruning of atomic positions and lattice
867 structure loaded from input files. Also improved robustness of .nxs file
868 loading.
869 * Remove spurious ref-count increase in CalcBase::setRandomGenerator
870 (thanks to A. Morozov for the report).
871 * Fix windows builds (see github issue #17). Many thanks to A. Morozov for
872 a detailed report.
873 * Many general infrastructure improvements: Refactor random sampling
874 algorithms from CalcBase objects (a necessary step for future enhanced
875 MT support). Refactor orientation code from SCBragg (now used by both
876 SCBragg and LCBragg). Refactor .ncmat loading code to disentangle the
877 parsing code from the code. Lots of new utilities: Cubic splines,
878 Romberg integration, root finding, derivative estimation. Single header
879 NCDefs.hh providing all ubiquitous definitions and infrastructure
880 related to memory handling and error reporting, and also handles
881 includes which must get special treatment due to differences between
882 platforms or C++ versions. Add UniquePtr (similar to C++11's
883 unique_ptr). Add PlaneProvider (supported in PCBragg, SCBragg, LCBragg),
884 for customizing which planes goes in which process. Avoid bind1st usage
885 as it is removed in C++17. Custom functions for evaluating sine and
886 cosine of angles in various ranges - between 5-10 times faster than the
887 standard functions at 15 significant digits. Also add fast
888 approximations for atan and exp. Performed careful changes to ncmin and
889 ncmax functions with large performance implications (surprisingly,
890 std::fmax generates very inefficient machine code:
891 https://godbolt.org/g/Dxy52A ). Add helper class for efficiently
892 generating sine and cosine values for all grid-points in a grid. PCBragg
893 supports more custom constructors.
894
895 v0.9.9 2018-03-26
896 * Expose loadNCMAT function to client C++ code, making it possible to work
897 with .ncmat files completely independent from the factory
898 infrastructure.
899 * Cleanup internal .ncmat loading code, splitting out fillHKL to a new
900 utility file and renaming old loader code to be purely a parser.
901 * Allow Wyckoff positions and mean-squared-displacement parameters on
902 NCInfo.
903 * Rename standard factories to stdnxs, stdncmat, stdlaz, stdscat and
904 stdabs respectively.
905 * Allow factory-specific parameters to be passed along to info
906 factories. Thus, expandhkl which was until now a global NCMatCfg
907 parameter, is now a parameter specific to the stdncmat factory. The
908 stdnxs factory gets two flags: mcstaslike and fixpolyatom. The former
909 makes nxs-provided bkgd curves use same composition as in the McStas nxs
910 component (the default is to compose as in NXSG4).
911 * Remove polyatom fix in wrapped nxslib code, so bkgd=external xs curves
912 for .nxs files are now completely as in NXSG4, apart from the fact that
913 our version contains fixes for crashes (reported upstream).
914 * Rename NonOrientedScatter to IsotropicScatter.
915 * Fix compilation error under some compilers in NCRCBase.hh.
916
917 v0.9.8 2018-03-19
918 * Decouple PhononDebye background cross-section code from .ncmat format,
919 making it the new default also for .nxs files. For .nxs files, it is
920 still possible to select the old behaviour of using curves provided by
921 nxslib itself by configuring those files with "bkgd=external". A side
922 benefit of this splitout can in some cases result in significant faster
923 initialisation times when working with .ncmat files.
924 * Major cleanup and renaming of configuration variables, in preparation of
925 the 1.0.0 release milestone. The renames are: "mosaicity"->"mos",
926 "orientationprimary"->"dir1", "orientationsecondary"->"dir2",
927 "orientationtolerance"->"dirtol", "packingfactor"->"packfact",
928 "dcutoffupper"->"dcutoffup", "scatterbkgdmodel"->"bkgd",
929 "scatterfactory"->"scatfactory, "absorptionfactory"->"absnfactory" and
930 "skippbragg" becomes "bragg" but with opposite logic, e.g. "bragg=0"
931 disables Bragg diffraction. Removed entirely was the variables
932 braggonly (use "bkgd=none" or "bkgd=0" instead now) and
933 "nphonon". Experts can now instead tune parameters for specific
934 background models by embedding them in the "bkgd" parameter value
935 itself, e.g. "bkgd=phonondebye:nphonon@20".
936 * Temporarily disable single-crystal speedup code while we investigate
937 further, due to concerns that it is too aggresive (see github issue #13).
938
939 v0.9.7 2018-03-06
940 * Don't produce floating point exception when loading .ncmat files with H,
941 Li, Ti, V or Mn (github issue #8).
942 * McStas component now actually applies requested packingfactor for powder
943 materials (github issue #9).
944
945 v0.9.6 2018-02-07
946 * Fix visualisation of box-shaped sample in McStas component.
947 * Rename McStas component parameter multscatt to multscat.
948
949 v0.9.5 2018-02-05
950 * Add support for python3 (github issue #6).
951
952 v0.9.4 2018-01-31
953 * Correct version numbers.
954
955 v0.9.3 2018-01-31
956 * NCrystal_sample.comp (McStas interface): Fix link flags on OSX
957 (github issue #3) and compilation warnings (github issue #4).
958
959 v0.9.2 2018-01-23
960 * Fix cross-section and material composition bugs in Geant4
961 interface. Only affects Geant4 users.
962 * CMakeLists.txt: Always use absolute rpath (needed on OSX).
963 * Fix gcc7 compilation.
964
965 v0.9.1 2017-08-30
966 * Proper behaviour of python interface if Numpy is absent.
967
968 v0.9.0 2017-08-30
969 * First github based public release of NCrystal.