Giter Site home page Giter Site logo

qft_sims's Introduction

QFT_Sims

The two main files are clftanimv_2.py and qftanim.py. When run, each of these files should create a new directory in the current working directory where they will place a series of .png images corresponding to each time step. The only necessary inputs should be the number of oscillators (N), the max time to run the simulation (tmax), the starting time (t), and the starting label number (label). These inputs are found at the bottom of each program.

For large N values, the program runs noticeably slower, so the final two inputs were included so that a single simulation can be run over multiple sessions. The recommended way to do this is as follows: in the output directory, find the most recently created image file (e.g. img134.png). Then, change the starting time to this number divided by 10 (e.g. t=13.4) and the starting label to this number plus 1 (e.g. label=135). This will continue the program from where it left off without overwriting any old files.

A note on the outputs: colors are normalized to the highest values at a given time slice. So, for example, in the classical case, the most compressed spring will have an RGB value of (1,0,0) and all other RGB values will be normalized based on this length.

The .pdf file contained in the repository gives a description of the math used for creating the code.

qft_sims's People

Contributors

zapphysics 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.