edit_sources#

Q2d.edit_sources(cg=None, acrl=None, dcrl=None)[source]#

Set up the source loaded for Q3D or Q2D in multiple sources simultaneously.

Parameters:
cgdict, optional

Dictionary of input sources to modify the module and phase of a CG solution. Dictionary values can be: - 1 Value to set up 0deg as the default - 2 Values tuple or list (magnitude and phase)

acrldict, optional

Dictionary of input sources to modify the module and phase of an ACRL solution. Dictionary values can be: - 1 Value to set up 0deg as the default - 2 Values tuple or list (magnitude and phase)

dcrldict, optional

Dictionary of input sources to modify the module and phase of a DCRL solution, This parameter is only available for Q3D. Dictionary values can be: - 1 Value to set up 0deg as the default - 2 Values tuple or list (magnitude and phase)

Returns:
bool

True when successful, False when failed.

Examples

>>> sources_cg = {"Box1": ("1V", "0deg"), "Box1_2": "1V"}
>>> sources_acrl = {"Box1:Source1": ("5A", "0deg")}
>>> sources_dcrl = {"Box1_1:Source2": ("5V", "0deg")}
>>> hfss.edit_sources(sources_cg,sources_acrl,sources_dcrl)