{"id":29032505,"url":"https://github.com/cfdby/pv-panel-cooling-with-air-flow","last_synced_at":"2025-06-26T11:02:14.973Z","repository":{"id":297844026,"uuid":"998067199","full_name":"CFDBY/PV-Panel-Cooling-with-Air-Flow","owner":"CFDBY","description":"A computational fluid dynamics (CFD) study simulating air-cooling effects on a photovoltaic panel under 800 W/m² solar load, implemented in ANSYS Fluent using SST k-ω turbulence modeling with 60,000+ mesh elements.","archived":false,"fork":false,"pushed_at":"2025-06-08T22:28:15.000Z","size":581,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T11:01:53.600Z","etag":null,"topics":["ansys-fluent","cfd","matlab","renewable-energy","solar-panels"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CFDBY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-06-07T19:47:38.000Z","updated_at":"2025-06-08T22:28:19.000Z","dependencies_parsed_at":"2025-06-07T21:32:11.977Z","dependency_job_id":null,"html_url":"https://github.com/CFDBY/PV-Panel-Cooling-with-Air-Flow","commit_stats":null,"previous_names":["cfdby/pv-panel-cooling-with-air-flow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CFDBY/PV-Panel-Cooling-with-Air-Flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CFDBY%2FPV-Panel-Cooling-with-Air-Flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CFDBY%2FPV-Panel-Cooling-with-Air-Flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CFDBY%2FPV-Panel-Cooling-with-Air-Flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CFDBY%2FPV-Panel-Cooling-with-Air-Flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CFDBY","download_url":"https://codeload.github.com/CFDBY/PV-Panel-Cooling-with-Air-Flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CFDBY%2FPV-Panel-Cooling-with-Air-Flow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262053537,"owners_count":23251214,"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":["ansys-fluent","cfd","matlab","renewable-energy","solar-panels"],"created_at":"2025-06-26T11:00:40.582Z","updated_at":"2025-06-26T11:02:14.964Z","avatar_url":"https://github.com/CFDBY.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📌 CFD Project: PV Panel Cooling with Air Flow (2D - Steady)\n\n![CFD Simulation Overview](Static_Temperature.png)\n\nThis project is a **CFD + Thermal analysis** study modeling the cooling of a 2D photovoltaic (PV) panel with natural external air flow. It was conducted as part of the preparation for the **Smart Renewable Energy Engineering** master's program at Gdansk University of Technology.\n\n## 🎯 Objectives\n\n- Model the heat input equivalent to constant solar radiation on the PV panel (800 W/m²)\n- Analyze how effectively the air flow cools the panel\n- Obtain outputs such as `Total Heat Transfer`, `Panel Surface Temperature`, and `Velocity Field`\n- Calculate and compare results with MATLAB and CFD\n\n---\n\n## ⚙️ Simulation Details\n\n![Mesh](Mesh.png)\n\n- **Software**: ANSYS Fluent R1 2025 (Student Version)\n- **Geometry**: 2D, rectangular PV panel (1m × 0.2m)\n- **Mesh**: 60,000+ elements, refined in critical regions\n- **Flow Type**: Incompressible, Steady-State, **Turbulent (SST k-ω)**\n- **Initial Model**: Laminar; switched to SST k-omega due to solution instability\n- **Panel Definition**: Solid body, heat flux applied to outer surfaces to simulate heat input\n\n---\n\n## 🧪 Boundary Conditions\n\n| Surface         | Definition                   |\n|-----------------|------------------------------|\n| Inlet           | Velocity Inlet (2 m/s, 300 K) |\n| Outlet          | Pressure Outlet (0 Pa)       |\n| Panel Perimeter (4 edges) | Heat Flux: 800 W/m² |\n| Other Walls     | Symmetry or adiabatic        |\n\n**Total surface area** (panel perimeter):  \n\\[\nA = 2 \\times 1.0 + 2 \\times 0.2 = 2.4 \\, \\text{m}^2\n\\]  \n**Total heat input**:  \n\\[\nQ_{\\text{input}} = 800 \\times 2.4 = 1920 \\, \\text{W}\n\\]\n\n---\n\n## 📈 Results Visualization\n\n### Temperature Distribution\n![Temperature Contour](Static_Temperature_Closer.png)\n\n### Air Flow Patterns\n![Velocity Vectors](Velocity_Vectors.png)\n\n### Convergence Monitoring\n![Solution Convergence](Scaled_Residuals.png)\n\n---\n\n## 📊 Key Results\n\n- **Average panel temperature**: 374.60 K\n- **Total Heat Transfer Rate** (Fluent): 1920 W\n- **Inlet air temperature**: 300 K\n- **Heat transfer coefficient (h)**: 26.60 W/m²·K (calculated with MATLAB)\n\n![Heat Transfer Analysis](Total_Heat_Transfer_Rate.png)\n\n\n## Revision Notes for Heat Flux Implementation\n\n### Issue Identified\nIn my previous simulation, I applied a heat flux of 800 W/m² uniformly across **four surfaces**.  \nThis configuration is **physically unrealistic** for solar panels, as incident heat flux only originates from the **top surface** in real-world scenarios.\n\n### Impact \u0026 Corrections\nWhile the model remains **mathematically valid**, the unphysical setup affected key results.  \nTo resolve this, I've updated:\n1. **Total Heat Transfer Rate** graph  \n2. **Area-Weighted Static Temperature** distributions  \n\n### Visual Documentation\n![Total Heat Transfer Rate](total_heat_transfer.png)  \n![Area Weighted Average of Temperature](temperature.png)  \n\n### Key Technical Takeaways\n- **Physical vs. Mathematical Validity**: Aligning boundary conditions with real-world constraints is critical.  \n- **Data Transparency**: Revisions documented with standardized graphs for reproducibility.  \n\n---\n\n\n\n\n\n\n\n---\n\n## 📉 MATLAB Code Analysis\n\nThe complete MATLAB analysis script is available here:  \n[Matlab_Analysis.m](Matlab_Analysis.m)\n\n```matlab\n% Input Data\nq_flux = 800;                   % W/m²\ntotal_surface_area = 2.4;       % m²\nQ_input = q_flux * total_surface_area;   % W\n\nQ_removed = 1920;               % W\nT_panel = 374.60;               % K\nT_inlet = 300.00;               % K\n\n% Efficiency\neta = Q_removed / Q_input;\n\n% Heat Transfer Coefficient\ndelta_T = T_panel - T_inlet;\nh = Q_removed / (total_surface_area * delta_T);\n\n% Outputs\nfprintf('--- CFD Heat Transfer Results ---\\n');\nfprintf('Q_input: %.2f W\\n', Q_input);\nfprintf('Q_removed: %.2f W\\n', Q_removed);\nfprintf('Efficiency: %.2f%%\\n', eta * 100);\nfprintf('Heat Transfer Coefficient h: %.2f W/m²K\\n', h);\n```\n\n---\n\n✉️ **Contact**: [Burak Yorukcu](mailto:burakyorukcu@outlook.com)  \n🔗 **Project Owner**: [@burakyorukcu](mailto:burakyorukcu@outlook.com) \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfdby%2Fpv-panel-cooling-with-air-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfdby%2Fpv-panel-cooling-with-air-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfdby%2Fpv-panel-cooling-with-air-flow/lists"}