> For the complete documentation index, see [llms.txt](https://anufrievroman.gitbook.io/freepaths/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anufrievroman.gitbook.io/freepaths/basic-tutorials/scattering-map.md).

# 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_PARTICLES            = 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 is better to run with a limited number of phonons, because otherwise the scattering map will become large and difficult to open. Below it the example of obtained scattering map.

<figure><img src="/files/SY7MUhklKZwsvGPKH815" 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 events become visible as well.

<figure><img src="/files/VxGd7t6xFcYKmLN0QHa9" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
