{"id":26561879,"url":"https://github.com/burnycoder/harmonic-oscillator","last_synced_at":"2026-05-01T17:33:34.985Z","repository":{"id":281510602,"uuid":"945498049","full_name":"BurnyCoder/harmonic-oscillator","owner":"BurnyCoder","description":"Interactive web-based harmonic oscillator visualization with adjustable parameters and real-time plots in Numpy and Flask","archived":false,"fork":false,"pushed_at":"2025-03-09T15:17:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T16:23:31.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BurnyCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-09T15:10:40.000Z","updated_at":"2025-03-09T15:19:11.000Z","dependencies_parsed_at":"2025-03-09T16:23:32.938Z","dependency_job_id":"a6e49dfe-2710-4826-9769-2d4a954f7de2","html_url":"https://github.com/BurnyCoder/harmonic-oscillator","commit_stats":null,"previous_names":["burnycoder/harmonic-oscillator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fharmonic-oscillator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fharmonic-oscillator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fharmonic-oscillator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BurnyCoder%2Fharmonic-oscillator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BurnyCoder","download_url":"https://codeload.github.com/BurnyCoder/harmonic-oscillator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966520,"owners_count":20539797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-22T14:18:39.051Z","updated_at":"2026-05-01T17:33:34.924Z","avatar_url":"https://github.com/BurnyCoder.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interactive Harmonic Oscillator Visualization\n\nA web-based interactive harmonic oscillator visualization tool that allows users to explore the dynamics of a simple harmonic oscillator. This tool includes mathematical equations, animated visualizations, and interactive plots.\n\n![image](https://github.com/user-attachments/assets/ac6820c9-b157-47f3-b55b-33616658a910)\n\n## Features\n\n- Interactive controls to adjust:\n  - Mass\n  - Spring constant\n  - Damping coefficient\n  - Initial position\n  - Initial velocity\n  - Time span\n- Real-time animation of the oscillating mass-spring system\n- Plots of position, velocity, and energy components\n- Mathematical equations explaining the harmonic oscillator physics\n- Support for undamped, underdamped, critically damped, and overdamped systems\n\n## Requirements\n\n- Python 3.6+\n- Flask\n- NumPy\n- Plotly\n- Modern web browser with JavaScript enabled\n\n## Installation\n\n1. Clone this repository\n2. Install the required packages:\n   ```\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\n1. Start the Flask server:\n   ```\n   python app.py\n   ```\n2. Open your web browser and navigate to `http://localhost:5000`\n3. Use the interactive controls to adjust parameters and observe the changes in the system behavior\n\n## Physics Background\n\nThe simple harmonic oscillator is a fundamental model in physics that describes oscillatory motion where a restoring force is proportional to the displacement from equilibrium. The core equation of motion is:\n\n```\nm(d²x/dt²) + b(dx/dt) + kx = 0\n```\n\nWhere:\n- m is the mass\n- b is the damping coefficient\n- k is the spring constant\n- x is the displacement from equilibrium\n\nThe behavior of the system depends on the damping ratio (ζ = b/(2√(km))):\n- ζ = 0: Undamped oscillation\n- 0 \u003c ζ \u003c 1: Underdamped oscillation\n- ζ = 1: Critically damped\n- ζ \u003e 1: Overdamped\n\n## License\n\nMIT \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnycoder%2Fharmonic-oscillator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburnycoder%2Fharmonic-oscillator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburnycoder%2Fharmonic-oscillator/lists"}