{"id":26912896,"url":"https://github.com/thealphajas/waveguide_vis","last_synced_at":"2025-10-13T08:04:25.167Z","repository":{"id":263739999,"uuid":"891336787","full_name":"TheAlphaJas/WaveGuide_Vis","owner":"TheAlphaJas","description":"Rectangular waveguide simulation of EM Waves","archived":false,"fork":false,"pushed_at":"2025-02-27T11:54:33.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T16:22:51.219Z","etag":null,"topics":["electromagnetism","em-waves","waveguide"],"latest_commit_sha":null,"homepage":"https://waveguide-vis-emw.streamlit.app/","language":"Python","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/TheAlphaJas.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":"2024-11-20T06:37:13.000Z","updated_at":"2025-02-27T11:54:37.000Z","dependencies_parsed_at":"2024-11-20T07:36:03.903Z","dependency_job_id":"62ec8abb-b44a-4a63-8fa8-b8bf6cc3e632","html_url":"https://github.com/TheAlphaJas/WaveGuide_Vis","commit_stats":null,"previous_names":["thealphajas/waveguide_vis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlphaJas%2FWaveGuide_Vis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlphaJas%2FWaveGuide_Vis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlphaJas%2FWaveGuide_Vis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAlphaJas%2FWaveGuide_Vis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAlphaJas","download_url":"https://codeload.github.com/TheAlphaJas/WaveGuide_Vis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246663797,"owners_count":20813965,"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":["electromagnetism","em-waves","waveguide"],"created_at":"2025-04-01T15:37:33.182Z","updated_at":"2025-10-13T08:04:20.134Z","avatar_url":"https://github.com/TheAlphaJas.png","language":"Python","readme":"# Rectangular Waveguide Field Visualization\n\nThis project provides an interactive simulation for visualizing electromagnetic field distributions in a **rectangular waveguide** for both **TE (Transverse Electric)** and **TM (Transverse Magnetic)** modes. The simulation is built using **Streamlit**, **NumPy**, and **Matplotlib**, and includes the following features:\n\n- **Complex permittivity $$(\\epsilon_r)$$ and permeability $$(\\mu_r)$$** for modeling attenuation.\n- Visualization of fields across different cross-sections ($$xy$$, $$yz$$, and $$zx$$ planes).\n- Calculation of key waveguide parameters like cutoff frequency, phase constant, attenuation constant, and guide wavelength.\n- **Dynamic field plotting** with user-adjustable parameters such as frequency, mode, geometry, and material properties.\n\n---\n\n## Features\n\n### 1. **Cutoff Frequency Calculation**\n   - Computes the cutoff frequency for a given mode and waveguide geometry.\n   - Supports both TE and TM modes.\n\n### 2. **Electromagnetic Field Visualization**\n   - Generates field distributions for $$E_x, E_y, E_z$$ and $$H_x, H_y, H_z$$.\n   - Visualizes the fields on cross-sections: $$xy$$, $$yz$$, and $$zx$$.\n\n### 3. **Waveguide Parameter Computations**\n   - **Phase Constant ($$\\beta$$)**\n   - **Attenuation Constant ($$\\alpha$$)** (for lossy materials)\n   - **Guide Wavelength ($$\\lambda_g$$)**\n\n### 4. **Interactive Interface**\n   - Adjustable input parameters:\n     - **Frequency:** Select operational frequency for visualization.\n     - **Mode:** Specify TE or TM modes and indices $$m$$, $$n$$.\n     - **Waveguide Dimensions:** Set width and height.\n     - **Material Properties:** Customize $$\\epsilon_r$$ and $$\\mu_r$$.\n\n---\n\n## Getting Started\n\n### Prerequisites\nEnsure you have the following installed:\n- **Python 3.8+**\n- **Streamlit**\n- **NumPy**\n- **Matplotlib**\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/waveguide-visualization.git\n   cd waveguide-visualization\n   ```\n2. Install requirements and run file:\n   ```bash\n   pip install -r requirements.txt\n   streamlit run app.py\n   ```\n\n### Contributors\n1. [Jasmer Singh Sanjotra](https://github.com/TheAlphaJas)\n2. [Ayush Kumar Awasthi](https://github.com/ayushawasthi24)\n   \nThis repo was created as a course project for EE305 - EM Waves (Autumn 2024), @ Indian Institute of Technology Indore, India\n\nCredits to our course instructor [Dr. Saptarshi Ghosh](http://people.iiti.ac.in/~sghosh/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthealphajas%2Fwaveguide_vis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthealphajas%2Fwaveguide_vis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthealphajas%2Fwaveguide_vis/lists"}