edit_sources#

Hfss.edit_sources(excitations, include_port_post_processing=True, max_available_power=None, use_incident_voltage=False)[source]#

Set up the power loaded for HFSS postprocessing in multiple sources simultaneously.

Parameters:
excitationsdict

Dictionary of input sources to modify module and phase. Dictionary values can be: - 1 value to setup 0deg as default - 2 values tuple or list (magnitude and phase) or - 3 values (magnitude, phase, and termination flag) for Terminal solution in case of incident voltage usage.

Returns:
bool

Examples

>>> sources = {"Port1:1": ("0W", "0deg"), "Port2:1": ("1W", "90deg")}
>>> hfss.edit_sources(sources, include_port_post_processing=True)
>>> sources = {"Box2_T1": ("0V", "0deg", True), "Box1_T1": ("1V", "90deg")}
>>> hfss.edit_sources(sources, max_available_power="2W", use_incident_voltage=True)