create_voltage_source_on_pin#

EdbHfss.create_voltage_source_on_pin(pos_pin, neg_pin, voltage_value=3.3, phase_value=0, source_name='')[source]#

Create a voltage source.

Parameters:
pos_pinObject

Positive Pin.

neg_pinObject

Negative Pin.

voltage_valuefloat, optional

Value for the voltage. The default is 3.3.

phase_valueoptional

Value for the phase. The default is 0.

source_namestr, optional

Name of the source. The default is "".

Returns:
str

Source Name.

Examples

>>> from pyaedt import Edb
>>> edbapp = Edb("myaedbfolder", "project name", "release version")
>>> pins =edbapp.components.get_pin_from_component("U2A5")
>>> edbapp.hfss.create_voltage_source_on_pin(pins[0], pins[1],50,"source_name")