A script for calculating non-Maxwellianity#255
Conversation
Non maxwellianity
…annot be read from the bulk file, they are calculated from the VDF instead.
|
Great to get this in as well! But, comments:
|
|
More comments!
It would be nice to understand this discrepancy. It might be from this hard-coded threshold, so please check if syncing that with your test case fixes it: analysator/pyCalculations/non_maxwellianity.py Lines 54 to 55 in 3c0406b Worth adding a kword for the threshold, and a sensible default threshold value (or no threshold as default?). Vlasiator reducer just loops over everything with no threshold, no? https://github.com/fmihpc/vlasiator/blame/62ac639d96eba005b66ba589bd69c2093663db92/datareduction/datareductionoperator.cpp#L2005 Edit: Threshold kword added with default of 0 Suggest adding a feature to calculate the non-maxwellianity for nearest existing VDF, using get_cellid_with_vdf ( analysator/pyVlsv/vlsvreader.py Line 2118 in b6e96c4 analysator/pyPlots/plot_vdf.py Line 754 in b6e96c4 Multipop-Vspace reducers needs to be implemented for the reducer to work with modern data. Would you Vertti like to have a go at it? If not, we'll defer. analysator/pyVlsv/vlsvreader.py Line 810 in 3c0406b |
A pyCalculations script to calculate the non-Maxwellianity of a VDF, which has been previously available as a Vlasiator datareducer.
The output was tested using a 2D Kelvin-Helmholtz run from Tarvus et al. 2024.
Difference between the Vlasiator datareducer and this script is of the order of 1E-4 (significant values are typically > 1E-2).