add_current_source#

SimulationConfiguration.add_current_source(name='', current_value=0.1, phase_value=0, impedance=50000000.0, positive_node_component='', positive_node_net='', negative_node_component='', negative_node_net='')[source]#

Add a current source for the current SimulationConfiguration instance.

Parameters:
namestr

Source name.

current_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")