Field Data Follows in the .PRE File

When the data is read from the .pre input file, the data must be formatted in a specific format.

The data must be formatted in one of the following formats:
  • column based format
    • The four field components are the same as for when loading the field data from an ASCII file, and must be entered in columns of 10 characters wide from column 51 to column 90.

      The angle ϑ must be specified in column 30 to column 39 and ϕ must be specified in column 40 to column 49 (if applicable).

  • colon separated format
    • The four field components are the same as for when loading the field data from an ASCII file, and must be entered in R3 to R6.

      The angle ϑ must be specified in R1 and ϕ must be specified in R2 (if applicable).

Note: If both electric and magnetic fields are required, all the electric fields are given first, followed by the same number of magnetic fields.

Example of a Spherical Aperture

An example of a spherical aperture where Number of points along theta = 3 and Number of points along phi = 3 (using colon separated format):
AP: 0 : 29 : S1 : S2 : S3 : 1 : 3 : 3 : 1 : 0   ** ApertureExcitation1
  :  :  :  :  :  : 0 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 0 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 0 : 90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : 90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : 90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 0 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 0 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 0 : 90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 90 : 90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : -90 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : 0 : 1 : 0 : 1 : 0
  :  :  :  :  :  : 180 : 90 : 1 : 0 : 1 : 0

In the second row and onward, the field data is added to the .pre. Note that the electric fields are specified first, followed by the magnetic fields (therefore there are 9x2=18 field data lines).