# Other Supported File Formats

The data structure for other file types are provided in order to understand and correctly use or post-process these files externally.

## .cgm files

This file contains the number of iterations and the resulting residue from the iterative solving process of the matrix equation.

## .snp files

The Touchstone S-parameter file name contains the number of ports in the model. The extension is, for example, .s1p for a 1-port, .s2p for a 2-port. The file contains a header (following the “#” character) that specifies the frequency unit, the parameter type, the data format and the normalising impedance for all the ports. This is followed by the data lines (which may be repeated for multiple frequencies):

1-port: | frequency | $\left|{\text{S}}_{11}\right|\text{}\angle {\text{S}}_{11}$ | |||

2-port: | frequency | $\left|{\text{S}}_{11}\right|\text{}\angle {\text{S}}_{11}$ | $\left|{\text{S}}_{21}\right|\text{}\angle {\text{S}}_{21}$ | $\left|{\text{S}}_{12}\right|\text{}\angle {\text{S}}_{12}$ | $\left|{\text{S}}_{22}\right|\text{}\angle {\text{S}}_{22}$ |

3-port: | frequency | $\left|{\text{S}}_{11}\right|\text{}\angle {\text{S}}_{11}$ | $\left|{\text{S}}_{12}\right|\text{}\angle {\text{S}}_{12}$ | $\left|{\text{S}}_{13}\right|\text{}\angle {\text{S}}_{13}$ | |

$\left|{\text{S}}_{21}\right|\text{}\angle {\text{S}}_{21}$ | $\left|{\text{S}}_{22}\right|\text{}\angle {\text{S}}_{22}$ | $\left|{\text{S}}_{23}\right|\text{}\angle {\text{S}}_{23}$ | |||

$\left|{\text{S}}_{31}\right|\text{}\angle {\text{S}}_{31}$ | $\left|{\text{S}}_{32}\right|\text{}\angle {\text{S}}_{32}$ | $\left|{\text{S}}_{33}\right|\text{}\angle {\text{S}}_{33}$ | |||

4-port: | frequency | $\left|{\text{S}}_{11}\right|\text{}\angle {\text{S}}_{11}$ | $\left|{\text{S}}_{12}\right|\text{}\angle {\text{S}}_{12}$ | $\left|{\text{S}}_{13}\right|\text{}\angle {\text{S}}_{13}$ | $\left|{\text{S}}_{14}\right|\text{}\angle {\text{S}}_{14}$ |

$\left|{\text{S}}_{21}\right|\text{}\angle {\text{S}}_{21}$ | $\left|{\text{S}}_{22}\right|\text{}\angle {\text{S}}_{22}$ | $\left|{\text{S}}_{23}\right|\text{}\angle {\text{S}}_{23}$ | $\left|{\text{S}}_{24}\right|\text{}\angle {\text{S}}_{24}$ | ||

$\left|{\text{S}}_{31}\right|\text{}\angle {\text{S}}_{31}$ | $\left|{\text{S}}_{32}\right|\text{}\angle {\text{S}}_{32}$ | $\left|{\text{S}}_{33}\right|\text{}\angle {\text{S}}_{33}$ | $\left|{\text{S}}_{34}\right|\text{}\angle {\text{S}}_{34}$ | ||

$\left|{\text{S}}_{41}\right|\text{}\angle {\text{S}}_{41}$ | $\left|{\text{S}}_{42}\right|\text{}\angle {\text{S}}_{42}$ | $\left|{\text{S}}_{43}\right|\text{}\angle {\text{S}}_{43}$ | $\left|{\text{S}}_{44}\right|\text{}\angle {\text{S}}_{44}$ |

When exporting results to Touchstone format, the Solver writes out the port labels to commented lines indicated by “!”.

```
! %Port labels%
! %PortLabel|ModeText[.m][.n][.RotationText]
```

where the port name is absent or empty, the line will only consist of the “%” symbol.

```
! %Port labels%
! %PORT1|TE.1.1.rotation(0)
! %PORT2|TE.1.1.rotation(0)
! %PORT2|TE.1.1.rotation(90)
! %AEPort
! %
! %A1Port
```

## .sph files

This file makes use of the native SWE file format of TICRA as used in their code GRASP.