# Unit Cell Position Numbers (UPNs)

<div align="left"><figure><img src="/files/fdywrz8n11b7cjxP2bel" alt="" width="369"><figcaption><p>Unit cell position numbers (UPNs) with respect to the x and y orientations on the metalens layer. p: unit cell period. </p></figcaption></figure></div>

Once you have finished building a metalens in BUILD module, results will be exported to the directory `your_SMDPRO_project_folder/results/build` . In this folder, you will find txt files that contain the dimensions of all unit cells across the lens (e.g. dimensions\_style#.txt). In these files, the numbers to the right of the unit cell dimension symbols are the unit cell position numbers (UPNs). For example, for 'R1', 'R' stands for radius of the circular unit cell and '1' is the UPN. The UPN increases by 1 along the positive x direction in SMD PRO.

If the flip or translation option of GDS in SETTIGNS is used, then the same coordinate conversion should be applied to match the dimensions in the txt file with the shapes in the GDS file. For example, if GDS translation is used, the UPN '1' corresponds to the 'bottom right' unit cell in the GDS file instead of 'bottom left'.


---

# 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://simplemetalens.gitbook.io/docs/smd-pro/topical-discussions/unit-cell-position-numbers-upns.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.
