> For the complete documentation index, see [llms.txt](https://simplemetalens.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simplemetalens.gitbook.io/docs/smd-pro/tutorial/lens-characterization/aberration-analysis.md).

# Aberration Analysis

This section will walk you through how to analyze lens aberrations using SMD PRO. The analyses are based on the imaging system introduced in [2.2. Imaging](/docs/smd-pro/tutorial/basic-workflow/2.-simulate/2.2.-imaging.md).

## Distortion

See [Distortion](/docs/smd-pro/topical-discussions/aberrations/distortion.md) for the discussion of distortion in a lens system.

### 1) Get Image Height for Ideal Rays

In imaging mode of SIMULATE module, enter parameters as shown in the image below. For the object height 25 µm, h' = -2.58 µm is the image height for ideal rays, as seen in the Paraxial Parameters.

<figure><img src="/files/lZ62yVtFxIQyxwTTYJEN" alt=""><figcaption></figcaption></figure>

### 2) Get Image Height for Real Rays

Run simulation with the parameters shown in the above image. Click the ANALYZE button in the sidebar and look for the imaging simulation results for tangential axis, as shown in the below image. We will take the value of "y at peak intensity" as the image height for real rays, which is -2.76 µm. &#x20;

<figure><img src="/files/MIq9lYn0mwnzMcA3DBw4" alt=""><figcaption></figcaption></figure>

### 3) Calculate Distortion

$$Distortion\ (%)\ = {{-2.76\ +\ 2.58} \over -2.58 } \* 100 = 6.98\ %$$


---

# 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://simplemetalens.gitbook.io/docs/smd-pro/tutorial/lens-characterization/aberration-analysis.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.
