llg3d.post.m1_vs_T¶
Plot the magnetization vs temperature and determine the Curie temperature.
Use the llg3d.m1_vs_T command line tool to plot the average magnetization versus
temperature from multiple result files:
$ llg3d.m1_vs_T -h
usage: llg3d.m1_vs_T [-h] [-i IMAGE_FILEPATH] [-s] files [files ...]
Plot the magnetization vs temperature and determine the Curie temperature.
positional arguments:
files Path to the result files.
options:
-h, --help show this help message and exit
-i IMAGE_FILEPATH, --image_filepath IMAGE_FILEPATH
Path to save the image (default: m1_vs_T.png)
-s, --show Display the plot (omit to disable display in non-
interactive runs). (default: False)
When calling the tool on a selection of result files:
$ llg3d.m1_vs_T run_*.npz -i m1_vs_T.png
Processing file: run_1000K.npz
Processing file: run_1100K.npz
Processing file: run_1200K.npz
Processing file: run_1300K.npz
Processing file: run_1350K.npz
Processing file: run_1375K.npz
Processing file: run_1390K.npz
Processing file: run_1400K.npz
Processing file: run_1410K.npz
Processing file: run_1450K.npz
Processing file: run_1500K.npz
Processing file: run_1550K.npz
Processing file: run_1700K.npz
Processing file: run_1900K.npz
T_Curie = 1397 K
Written to m1_vs_T.png
Functions
|
Parses the command line to execute processing functions. |
|
Plots the data (T, <m_1>). |
- plot_m1_vs_T(mag_data, image_filepath=None, show=False)[source]¶
Plots the data (T, <m_1>).
Interpolates the values, calculates the Curie temperature, exports to PNG.
- Parameters:
mag_data (MagTempData) – Magnetization data object
image_filepath (Path | str | None) – Path to save the image if None, the image will not be saved.
show (bool) – display the graph in a graphical window