Giter VIP home page Giter VIP logo

melipass / umayor-vip-python-nanomagnetismo Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 2.0 39.35 MB

This repository contains code written during Universidad Mayor's Vertically Integrated Project 'Python animations for applications in nanomagnetism', meant to help physics researchers create spins animations in Blender.

License: GNU General Public License v3.0

Python 100.00%
python blender physics physics-based-animation universidad-mayor spins georgia-tech

umayor-vip-python-nanomagnetismo's Issues

Z-axis not working as expected

Whenever ArrowAnimation(axis="z") is used, spins are expected to appear orthogonal to the lattice that's formed when the dimensions are [x,y,1], with x and y above 1.
This is not happening right now, every axis used appears parallel to the lattice, and should be fixed.

Godot proof of concept.

We're trying to use the Godot engine in order to be able to show our spin matrices on a web browser, since GDScript follows Python's syntax and godot-python exists. Godot allows exporting a project as HTML5 and also uses WebGL, we must prove this is viable for our intended use.

  • Create a simple 2D/3D parameterized spin matrix.
  • Export as a website.
  • Use GitHub Pages to host the result.

Animate the Stern-Gerlach experiment

  • Create a new Blender project
  • Code 3D movement
    • Spins should move through the beam's 3D space
      We may use Qiskit to define a spin's destination, measuring a quantum circuit with a Hadamard gate
  • Rotation could be random until the final destination is set
    We could use our current paramagnetism operator, being called every X frames

Ideally, the oven, slit, magnets and screen should be programatically created.

Files aren't organized properly

Problem:

The Blender folder is quite messy, having all Python code along other files such as the Blender project file, the arrow 3D object file and a paramagnetism image.

Suggestions:

  • Python files should be placed inside a src folder, probably config.json should be there too.
  • The output folder currently holds rendered videos that are excluded from the GitHub repository. This should be placed somewhere else, probably at the root of the local repository, as it's not relevant to the code.
  • The out folder should be named matrices.
  • An assets folder would be ideal for files such as arrow.mtl and arrow.obj.
  • Many .blend files aren't in use and should be deleted. The only file that's currently in use is spins1D.blend, a better name would be useful (demo.blend?)
  • The root folder is quite messy too, and an images folder could be useful. Blender/paramagnetism.png would be better located there.

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.