CSPropProbeBox
- class CSXCAD.CSProperties.CSPropProbeBox
Bases:
CSPropertiesProbe propery.
Depending on the EM modeling tool there exist different probe types with different meanings.
openEMS probe types:
0 : for voltage probing
1 : for current probing
2 : for E-field probing
3 : for H-field probing
10 : for waveguide voltage mode matching
11 : for waveguide current mode matching
- Parameters:
p_type – probe type (default is 0)
weight – weighting factor (default is 1)
frequency – dump in the frequency domain at the given samples (in Hz)
mode_function – A mode function (used only with probe type 10/11).
norm_dir – Necessary for current probing box with dimension not 2
over_sampling – An arbitrary oversampling factor for this probe/dump; meaning is defined by the simulator (default: not set)
- AddFrequency(freq)
- ClearFrequency()
- GetFrequency()
- GetFrequencyCount()
- GetModeFile() str
- GetModeFunction() list of 3 strings
- GetModeOrigin() [float, float, float]
- GetNormalDir()
- GetOverSampling()
Returns the oversampling factor, or -1 if none is set.
- GetProbeType()
- GetWeighting()
- SetFrequency(freq)
- SetModeFile(fileName)
Set an HDF5 file as the mode profile for this probe (alternative to SetModeFunction). Stored and serialized by CSXCAD; the coordinate evaluation and mode-matching is performed by the simulator.
- Parameters:
fileName – str – path to the HDF5 mode file
- SetModeFunction(mode_fun)
Set the spatial mode function strings for mode-matching (list of 3 strings, one per Cartesian component).
- SetModeOrigin(origin)
Set the coordinate origin for mode function/file evaluation. Stored and serialized by CSXCAD; applied by the simulator during mode-matching integration.
The origin is a Cartesian point for any mesh type. Coordinates are converted to Cartesian and shifted, and only then are x/y/z/rho/a/r/t derived, so that rho and a are measured from this point. On a cylindrical mesh pass [0, 0, z] to keep the profile on the mesh axis.
This must match the origin given to the excitation driving the same mode via
CSPropExcitation.SetWeightOrigin(), otherwise the excited and the probed mode differ and the mode match degrades.- Parameters:
origin – (3,) array – Cartesian [x, y, z] in drawing units
- SetNormalDir(val)
- SetOverSampling(val)
Set an arbitrary oversampling factor for this probe/dump; meaning is defined by the simulator. Pass -1 (the default) to leave it unset.
- SetProbeType(val)
- SetWeighting(val)