> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# read_size_field

#### FileIO.read\_size\_field(file\_name, params)

Read a PyPrimeMesh size field (PSF and PSF.GZ) file from disk.

**Parameters:**

**file\_name**

Path to the size field file on disk.

**params**

Parameters for reading size field file.

**Returns:**

**[`SizeFieldFileReadResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.SizeFieldFileReadResults)**

Results from reading the size field file.

**Return type:**

[`SizeFieldFileReadResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.SizeFieldFileReadResults)

### Notes

This method does not support Unicode paths.

### Examples

```python theme={null}
>>> file_io = prime.FileIO(model=model)
>>> params = prime.ReadSizeFieldParams(model=model)
>>> results = file_io.read_size_field("/tmp/my_prime_sizefield.psf", params)
```
