# Scattering map

In `examples/scattering_map.py` we learn how to output the map of scattering processes. Let us set the parameters suitable for this demonstration and switch on the scattering map:

```
OUTPUT_FOLDER_NAME             = 'Scattering map in fishbone nanowire'
NUMBER_OF_PHONONS              = 300
T                              = 50.0
OUTPUT_SCATTERING_MAP          = True

SIDE_WALL_ROUGHNESS            = 2e-9
HOLE_ROUGHNESS                 = 2e-9
TOP_ROUGHNESS                  = 0.2e-9
BOTTOM_ROUGHNESS               = 0.2e-9
```

Note that it's to run for a limited number of phonons because otherwise the scattering will become huge and difficult to open. Below it the example of obtained scattering map.

<figure><img src="https://664157142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7rdk0xqy0YirGWqTjhkv%2Fuploads%2FR6heYPmcBbXXMftRI8zY%2Fimage.png?alt=media&#x26;token=557a3e0d-b243-45d1-9c0c-19678658590d" alt=""><figcaption><p>Illustrations of phonon trajectories and coordinated of scattering events.</p></figcaption></figure>

We can observe side walls mostly experience diffuse scattering, while top and bottom walls show mainly specular scattering because of the roughness we set above.

A more detailed example below from Ref. 1 shows how the scattering maps evolve as the temperature is increased. Specifically, we can see how lots of specular scattering events are present at 4 K, but at higher temperatures diffuse scattering becomes dominant at 50 K, and at 100 K internal scattering event become the visible as well.

<figure><img src="https://664157142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7rdk0xqy0YirGWqTjhkv%2Fuploads%2Frbfa6vokqt3Pem2KpzQO%2Fexample_freepaths.jpg?alt=media&#x26;token=bda38bd2-5bb1-4d46-b0e6-fcb0b6c4afe3" alt=""><figcaption><p>Another example of phonon scattering maps.</p></figcaption></figure>

### Reference

1. Anufriev *et al*. [Nanoscale, 11, 13407-13414 (2019)](https://pubs.rsc.org/en/content/articlehtml/2019/nr/c9nr03863a)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://anufrievroman.gitbook.io/freepaths/basic-tutorials/scattering-map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
