Effective Approach To Calculate Magnetocaloric Effect Of Any Magnetic Material Using Python
Project description
magnetocaloric 1.2.0
Developed by Supratim Das
Effective approach to determine magnetocaloric performance of any magnetic material using python programming. From isotherm M(H) curves, using the Maxwell Relation the magnetocaloric performance of a material can be calculated with the help of this module.
What's New
- Relative cooling power (RCP) can be calculated.
- A method to visualize 'Full Width Of Half Maxima' has been employed.
- Another methods to illustrate Tricritical mean field model, 3D Heisenberg model and 3D Ising model have also been employed.
- Intuitive Graphical User Interface: Simplifying Program Interaction. Experience seamless interaction with our TKinter-powered UI. Standalone Python executable created using PyInstaller - no additional dependencies required.
For the Python programming approach, follow the steps in the README.
Examples of How To Use
1. Installation
Use the package manager pip to install magnetocaloric package.
pip install magnetocaloric==1.2.0
2. Manage Excel Spreadsheet
- Check the main excel spreadsheet from where the M-H data will be fetched by the program, data must be arranged in this format given below.
- And add one extra magnetic field (Hmax + del_H) with null magnetic moment values. This is nothing else than to bring magnetic moment values of the last row under calculation.
- Create two new files (file extension xlsx) to hold the results obtained after the calculation and definitely make them closed, other wise XlsxWriter will not get access.
3. Execution
Run the code at any python based environment ( IDLE, PyCharm, Spyder etc.). But I recommend you simply execute this code using command prompt or IDLE.
import magnetocaloric.mcepy as mc
mc.mce(a, b)
Here, 'a' is the total number of temperature and 'b' is the total number of applied magnetic field.
Contributing
We Welcome Your Contributions!
If you're interested in contributing to the development of this project, your contributions are highly appreciated. Whether you find a bug, have an idea for a new feature, or want to improve the code, you can do so by raising an issue or pull request on our GitHub repository. Your input helps make this project better for everyone.
Feel free to explore the code, try out the application, and share your thoughts with us. We value the contributions of our community members and look forward to collaborating with you. Let's make this project even more amazing together!
Caution
- Before adding the Hmax + del_H value into the M(H) spreadsheet, The maximum value of applied magnetic field (Hmax) must be the multiple of (10xdel_H). As an example, if del_H = 500 Oe / 0.05 T, Hmax must be like 5000 Oe/0.5 T, 10000 Oe / 1 T, 15000 Oe / 1.5 T,........ or any other multiple of (10x500 Oe) whether the value of the magnetic field is Tesla or Oersted. For another example, if del_H = 700 Oe / 0.07 T, Hmax must be like 7000 Oe/0.7 T, 14000 Oe / 1.4 T, 21000 Oe / 2.1 T,........ or any other multiple of (10x700 Oe). Otherwise Hmax for not being a proper numbered figure, an error may occur. This caution is also applicable to the previous versions of the package as well.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for magnetocaloric-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdae6c5e25c2619f2f856c35176bc0a3503da7839bc7306d48211d4dadeea90e |
|
MD5 | be5ed672797d4d491ee44a7e7eb67423 |
|
BLAKE2b-256 | 6097064ecddbb695d75353ac69e411d3f977c6e612d8d745fb7dd675fbee23cc |