+++
title = "Average materials"
weight = 40
+++

## Option: use average materials

By default (since release 24), the refractive properties of material layers
are computed by taking the average of the matrix material and the embedded
particles. This behavior can be disabled by setting
```python
simulation.options().setUseAvgMaterials(False)
```
