Tutorial: 2D Cylindrical Wave


 * Download the latest matlab file using gitweb: CylindricalWave_CC.m
 * Simulation Time: ~ 20 min

We will cover in this tutorial:
 * setup a cylindrical mesh including five nested sub-grids
 * define vtk and hdf5 dumps
 * read, evaluate and visualize dumped field data with matlab

First Steps

 * Install and verify your openEMS installation: Tutorial: First Steps

Matlab Simulation Script

 * Start the script within an empty environment:


 * Setup basic simulation parameter

The maximum simulation radius is set to 2560.

There are 5 sub-domains, and as the radius increases past a sub-domain boundary, the number of azimuthal points double. This prevents severe oversampling of the fields at the centre of the simulation space.

The location of the source is also specified, which is off-centre and at an angle of 45 degrees (convert to radians later).


 * Cylindrical FDTD setup

This is where the multigrid option is selected.


 * Setup the cylindrical mesh

The number of azimuthal mesh lines in the outer simulation sub-domain is calculated.

Note that  also defines a cylindrical grid.

Also note that  will not show the subgrid, instead the finest azimuthal mesh is displayed for all radii.


 * Setup an off-center excitation


 * Define the dump boxes


 * Create the simulation folder/ write the xml file and run openEMS


 * Visualize the field in the frequency domain as defined in the dump box