├── ProjectA ├── scripts │ ├── A1.m │ └── A2.m └── photos │ ├── A1.1.png │ ├── A1.2.png │ ├── A2.1.png │ ├── A2.2.png │ ├── A2.3.png │ └── energy.png ├── ProjectB ├── scripts │ ├── B1.m │ └── B2.m └── photos │ ├── B1 │ ├── eig.png │ ├── B1.1.png │ ├── B1.7.png │ ├── TE01.png │ ├── TE11.png │ ├── TE21.png │ ├── TE31.png │ ├── TE41.png │ ├── TM01.png │ ├── TM02.png │ ├── TM11.png │ ├── TM12.png │ ├── TM21.png │ ├── TM31.png │ └── modes.png │ └── B2 │ ├── A_e.png │ ├── B2.0.png │ ├── B2.1.png │ ├── B2.2.png │ ├── B2.3.png │ ├── B2.4.png │ ├── B2.5.png │ ├── B2.6.png │ ├── B2.7.png │ ├── B2.8.png │ ├── E_inc.png │ ├── a_param.png │ └── Dirichlet.png └── README.md /ProjectA/scripts/A1.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/scripts/A1.m -------------------------------------------------------------------------------- /ProjectA/scripts/A2.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/scripts/A2.m -------------------------------------------------------------------------------- /ProjectB/scripts/B1.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/scripts/B1.m -------------------------------------------------------------------------------- /ProjectB/scripts/B2.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/scripts/B2.m -------------------------------------------------------------------------------- /ProjectA/photos/A1.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/A1.1.png -------------------------------------------------------------------------------- /ProjectA/photos/A1.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/A1.2.png -------------------------------------------------------------------------------- /ProjectA/photos/A2.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/A2.1.png -------------------------------------------------------------------------------- /ProjectA/photos/A2.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/A2.2.png -------------------------------------------------------------------------------- /ProjectA/photos/A2.3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/A2.3.png -------------------------------------------------------------------------------- /ProjectA/photos/energy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectA/photos/energy.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/eig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/eig.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/A_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/A_e.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/B1.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/B1.1.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/B1.7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/B1.7.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TE01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TE01.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TE11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TE11.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TE21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TE21.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TE31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TE31.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TE41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TE41.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM01.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM02.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM11.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM12.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM21.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/TM31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/TM31.png -------------------------------------------------------------------------------- /ProjectB/photos/B1/modes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B1/modes.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.0.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.1.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.2.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.3.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.4.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.5.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.6.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.7.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/B2.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/B2.8.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/E_inc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/E_inc.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/a_param.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/a_param.png -------------------------------------------------------------------------------- /ProjectB/photos/B2/Dirichlet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/konstantd/Computational_Electromagnetics/HEAD/ProjectB/photos/B2/Dirichlet.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Computational Electromagnetics 2 | 3 | This repository contains the series of assignments for the Academic Course "Computational Electromagnetics" taught in the Spring of 2018-2019 in Aristotle University of Thessaloniki - Electrical & Computer Engineering. Both projects are written in Matlab and are focused on **FEM (Finite Element Method)** on **Electrostatic** and **Electromagnetic wave propagation** problems using the **Galerkin** method, weighted residuals formulation. 4 | 5 | The below simulations were examined: 6 | 7 | Electrostatic: 8 | 9 | - A1 - **Coaxial air-dielectric cable** 10 | - A2 - **Finite parallel-plate capacitor** 11 | 12 | Electromagnetic wave propagation: 13 | 14 | - B1 - **Metallic circular waveguide modes (TM/TE)** 15 | - B2 - **Scattering from a PEC (Perfect Electric Conductor) cylinder, using PML (Perfectly Matched Layers)** 16 | 17 | 18 | 19 | ## Project A - Electrostatic Field 20 | 21 | The goal of this project is to implement Finite Element Analysis in order to simulate the electric field and the electric potential in a **coaxial air-dielectric cable** (**A1**) as well as in a **finite parallel-plate capacitor (A2)**. Furthermore other parameters (for example the total energy stored in the electric field in the given surface) were calculated and compared to the analytical solutions for different number of refinements. 22 | 23 | 24 | 25 | ## A1 - Coaxial air-dielectric cable 26 | 27 | - Originally , we define the variables that describe the geometry (radius of the interior and external conductor) and construct the geometry description table. We use the **decsg** function to make the decomposed solid geometry matrix, excluding the internal area of the conductor. We make the original grid with **initmesh** function. For 1 refinement we get this geometry: 28 | 29 | 30 | 31 |
32 |
33 |
48 |
49 |
79 |
80 |
111 |
112 |
117 |
118 |
124 |
125 |
204 |
205 |
211 |
212 |
218 |
219 |
225 |
226 |
232 |
233 |
239 |
240 |
245 |
246 |
252 |
253 |
259 |
260 |
265 |
266 |
271 |
272 |
277 |
278 |
286 |
287 |
332 |
333 |
341 |
342 |
349 |
350 |
360 |
361 |
367 |
368 |
374 |
375 |
382 |
383 |
394 |
395 |
401 |
402 |