# Medium
Defines the electromagnetic properties of the structure's medium.
name: User defined medium name.
type: Definition of medium properties.
Options:
# Add Medium
You can add new mediums to your simulation using the following methods:
# New Medium
Click "New Medium", select the model type, and then set the model properties.
# Material Library
Click "Material Library" and select an existing material from the Public or the Private library.
# Material Fitter
Click "Material Fitter", upload a refractive index file, and then fit the raw data. See Material Fitter for more details.
# Import Material
Click "Import Material" and upload a medium defined as an HDF5 file. To create an HDF5 file with the proper format, use the Python API.
For example:
import tidy3d as td
mat = td.Medium(permittivity=3.47**2)
mat.to_hdf5("./non_dispersive_medium.hdf5")
# Related Content:
- Mediums Tutorial (opens new window)
- Modeling dispersive materials (opens new window)
- Fitting dispersive material models (opens new window)
- Defining fully anisotropic materials (opens new window)
- Defining gyrotropic materials (opens new window)
- Defining spatially-varying dielectric structures (opens new window)
- Thermally tuned waveguide (opens new window)