add_voltage_source#

SimulationConfiguration.add_voltage_source(name='', voltage_value=1, phase_value=0, impedance=1e-06, positive_node_component='', positive_node_net='', negative_node_component='', negative_node_net='')[source]#

Add a voltage source for the current SimulationConfiguration instance.

Parameters:
namestr

Source name.

voltage_valuefloat

Amplitude value of the source. Either amperes for current source or volts for voltage source.

phase_valuefloat

Phase value of the source.

impedancefloat

Impedance value of the source.

positive_node_componentstr

Name of the component used for the positive node.

negative_node_componentstr

Name of the component used for the negative node.

positive_node_netstr

Net used for the positive node.

negative_node_netstr

Net used for the negative node.

Returns:
bool

True when successful, False when failed.

Examples

>>> edb = Edb(target_file)
>>> sim_setup = SimulationConfiguration()
>>> sim_setup.add_voltage_source(voltage_value=1.0, phase_value=0, positive_node_component="V1",
>>> positive_node_net="HSG", negative_node_component="V1", negative_node_net="SW")