Output File Format for Scaling Coefficients

The file format and data structure for the output files (.xml and .mat) are described. These files are generated for storing the scaling coefficients for a multiport calculation.

XML File Format

The .xml file has the following structure. The scaling coefficient, voltage, impedance, current and the reference impedance data for each port are grouped in the result element, and the frequency data is grouped in the frequencies element.

<multiport xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  <modelname date='2020-11-03'>modelname.fek</modelname>
  <units voltage='V' current='A' impedance='Ohm' frequency='Hz'/>
  <frequencies>
    <frequency id='1' value='1000000000'/>
    <frequency id='2' value='1100000000'/>
  </frequencies>
  <result>
    <port id='1' name='Port1'>
      <data freqid='1'>
        <voltage re='-0.037831747128302' im='-0.043140582569938'/>
        <current re='-0.00054045353040432' im='-0.00061629403671339'/>
        <impedance re='70' im='0'/>
        <referenceimpedance re='50' im='0'/>
        <scalingcoefficient re='0.010809070608086' im='0.012325880734268'/>
      </data>
      <data freqid='2'>
        <voltage re='-0.02772197810429' im='0.011073202066871'/>
        <current re='-0.00039602825863272' im='0.00015818860095529'/>
        <impedance re='70' im='0'/>
        <referenceimpedance re='50' im='0'/>
        <scalingcoefficient re='0.0079205651726544' im='-0.0031637720191059'/>
      </data>
    </port>
    <port id='2' name='Port2'>
      <data freqid='1'>
        <voltage re='1' im='0'/>
        <current re='0.0046363683836995' im='-0.0023538558703642'/>
        <impedance re='171.48521215495' im='87.06199333313'/>
        <referenceimpedance re='50' im='0'/>
        <scalingcoefficient re='0.73337361161563' im='-0.11883121546767'/>
      </data>
      <data freqid='2'>
        <voltage re='1' im='0'/>
        <current re='0.0022281204133835' im='-0.0021158448496953'/>
        <impedance re='235.99670515533' im='224.10477016802'/>
        <referenceimpedance re='50' im='0'/>
        <scalingcoefficient re='0.60952650039195' im='-0.10852699197221'/>
      </data>
    </port>
  </result>
</multiport>
      

Result Data Format in .mat File

The scaling coefficient data is stored in a .mat file in the following result structure ResultData_<modelname or snp file>. The frequency data can be accessed as follows using GNU Octave or Altair Compose:
ResultData_<modelname>.Frequencies
The scaling coefficients and some additional port results voltage, current, impedance and the reference impedance can be accessed as follows using GNU Octave or Altair Compose:
ResultData_<modelname>.<portname>.scalingcoefficient
ResultData_<modelname>.<portname>.voltage
ResultData_<modelname>.<portname>.current
ResultData_<modelname>.<portname>.impedance
ResultData_<modelname>.<portname>.referenceimpedance