GithubHelp home page GithubHelp logo

mschollmeier / braggcalculator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.98 MB

BraggCalculator is a simple, GUI-based tool to quickly evaluate the Bragg equation for x-ray reflection

License: GNU General Public License v3.0

QMake 10.38% C++ 85.25% C 4.37%
x-ray-diffraction x-ray-physics physics

braggcalculator's Introduction

License

What is BraggCalculator?

BraggCalculator is a simple, GUI-based tool to quickly evaluate the Bragg equation for x-ray reflection:

mλ = 2d sin θ

where m is the order of reflection, λ the x-ray wavelength, d the lattice spacing of the crystal, and θ the angle of incidence with respect to the surface.

BraggCalculator will be part of a larger suite to design x-ray optical instruments that is currently under development.

Overview

  • evaluates the Bragg equation for any given x-ray energy or wavelength, lattice spacing, and reflection order
  • calculates both the angle to the surface and to the normal
  • PDF and text export
  • adjustable precision
  • load/save files
  • Undo/Redo (mainly for me as a learning experience)

Build instructions

BraggCalculator requires Qt5 or Qt6, which can be obtained from https://www.qt.io.

Once Qt is installed, run the following:

qmake
(n)make

This creates an executable in the binaries/<operating system>/release folder.

braggcalculator's People

Contributors

mschollmeier avatar

Stargazers

 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.