Coder Social home page Coder Social logo

ssinha254 / vsmanalyser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhijeetbyte/vsmanalyser

0.0 1.0 0.0 83 KB

A quick and portable way to analyze vibrating-sample-measurement (VSM) data

License: Creative Commons Zero v1.0 Universal

Python 100.00%

vsmanalyser's Introduction

VSManalyser

A quick and portable way to analyze VSM data

This is a Python script creates a graphical user interface (GUI) using the Tkinter library. The GUI allows the user to select a text file containing magnetic data from a Vibrating Sample Magnetometer (VSM) measurement. The script reads the data, converts the units to SI units, calculates key magnetic parameters (saturation moment, coercivity, remanence, magnetic moment, anisotropy constants, and magnetic susceptibility), and then displays the key parameters on both a plot and a text label in the GUI.

Features:

  • Open VSM measurement data in .txt format
  • Convert units to SI units
  • Calculate key parameters such as saturation moment, coercivity, remanence, magnetic moment, anisotropy constants, and magnetic susceptibility
  • Fit the data to a model to extract anisotropy constants
  • Plot the data and key parameters
  • Save analysis parameters for later use
  • Portable, no installation required

Download

Latest stable release.

Releases and prereleases contain links to standalone packages (and installers for full releases) for Windows

Your computer must be running Windows 10 or newer.


VSM data file

VSM sample data



The script uses NumPy and SciPy libraries for numerical operations and curve fitting, and Matplotlib library for plotting. The GUI contains a single button that when clicked, opens a file dialog to select a text file containing magnetic data. Once the user selects a file, the script reads the data, calculates the key parameters, and displays them on the plot and a text label in the GUI.

The key parameters displayed in the text label include the saturation moment, coercivity, remanence, magnetic moment, anisotropy constants, and magnetic susceptibility. The plot shows the magnetic moment as a function of the magnetic field, and also displays the saturation moment, coercivity, and remanence as horizontal and vertical lines.

The code is organized into a single function called Main(), which is called when the user clicks the button to select the file. The function contains all the code for reading the data, calculating the key parameters, and displaying the results in the GUI.

Overall, provides a simple but powerful tool for analyzing magnetic data from a VSM measurement.

License

Copyright © 2023 Abhijeet kumar. All rights reserved.

Licensed under the CC0-1.0 License.

vsmanalyser's People

Contributors

abhijeetbyte avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.