Click or drag to resize

ISimulationGetPerturbationResult Method (Int32, Int32, Int32, Int32, Int32)

Returns a perturbation result (scattering parameters) for specified parameter index, a pair of ports and a pair of modes. The result data is in a form of two-dimensional double array, where first dimension is the number of frequency points and the second dimension is 3. First column of the array is frequency data in GHz for each frequency point of simulation. The second and the third columns are real and imaginary parts of scattering parameters respectively.

Namespace:  EMInvent.InventSim.COMServer
Assembly:  InventSim (in InventSim.exe) Version: 5.1.12.6+develop
Syntax
Object GetPerturbationResult(
	int index,
	int port1,
	int port2,
	int mode1,
	int mode2
)

Parameters

index
Type: SystemInt32
Index of perturbed parameter (starting from 0).
port1
Type: SystemInt32
First port index of scattering parameter.
port2
Type: SystemInt32
Second port index of scattering parameter.
mode1
Type: SystemInt32
Mode index at the first port.
mode2
Type: SystemInt32
Mode index at the second port.

Return Value

Type: Object
Double array with simulation result.
Examples
// A simulation was performed for 4 frequency points: 12, 12.33, 12.66, 13 GHz.
// In order to get result S21 parameter data for fundamental mode:
double[,] result = app.ActiveProject.Simulation.GetResult(2, 1, 1, 1);
// Example result array would be:
// 12.00 -0.8138 0.5804
// 12.33 -0.6434 0.7650
// 12.66 -0.4422 0.8964
// 13.00 -0.2245 0.9741
See Also