m3flow_analysis¶
Provider for analysis tasks: trajectories, MSD/diffusion, RDF, densities, and other property extraction from simulation artifacts.
m3flow_analysis.main
¶
m3flow-analysis: analysis/validation tasks (MDAnalysis + freud + numpy).
Implements the analysis/validation/utility tasks of tasks/analysis/.
Result artifacts carry their payload both as data (for conditions and
downstream references) and as a result.json file (portability).
Statistics conventions
equilibration_fractionis always the fraction of samples DISCARDED from the start of a series;tail_fractionis the fraction KEPT at the end. Both are validated, and 0 is a legal value (never replaced by a default).semis the standard error of the mean of a time series, estimated by Flyvbjerg-Petersen blocking with the Lee-Morales-Umrigar optimal-block criterion (time-correlated samples are not independent).stdis the sample standard deviation of the samples. A statistic that cannot be estimated is null with an explicit status — never NaN.- Time axes come from artifact metadata (actual sampling intervals); a trajectory without them is rejected rather than given a default.
- Reduced (lj) inputs produce reduced results unless an explicit physical mapping (sigma, tau, ...) is supplied.
blocking_sem(x)
¶
Standard error of the mean of a correlated series.
Flyvbjerg-Petersen blocking: repeatedly average neighbouring pairs and
take the SEM at each level; the Lee-Morales-Umrigar criterion picks the
smallest block size B with B^3 > 2 n (sem_B / sem_0)^4. When no level
qualifies (series short compared with its correlation time) the largest
estimate over levels with >= 4 blocks is returned and converged is
False — a conservative, flagged answer instead of an optimistic one.
Source code in providers/src/m3flow_analysis/main.py
msd_fft(x)
¶
Time-origin-averaged MSD for lags 0..T-1 of x[T, N, 3] (Kneller / Calandrini FFT algorithm; identical to the direct multi-origin average up to round-off, at O(T log T) instead of O(T^2)).
Source code in providers/src/m3flow_analysis/main.py
check_polymer_equilibration(req)
¶
Thermodynamic stationarity gate for one sampling window.
Each check is passed / failed / insufficient_data / error; the report is
equilibrated only when every required check passed. Missing evidence
never counts as a pass. The report is bound to the evidence it examined
(artifact ids + content hashes + producing task run) and, when given, to
the state it certifies.
Source code in providers/src/m3flow_analysis/main.py
892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 | |
compute_adhesion(req)
¶
Interfacial interaction-energy density -
This is the group/group interaction energy per interface area. It is NOT the reversible work of adhesion (no entropy, surface reconstruction or separation path); the payload says which energy terms it contains.
Source code in providers/src/m3flow_analysis/main.py
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 | |
compute_species_msd(req)
¶
Species-resolved MSD from an extxyz trajectory (mlip provider format).
v1 supports trajectories written as unwrapped extxyz frame series plus a topology structure file (cif). LAMMPS dcd inputs are rejected with a structured error.
Source code in providers/src/m3flow_analysis/main.py
fit_arrhenius(req)
¶
Per-temperature Einstein fits over fanned-in MSDResults, then Arrhenius.