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:
- name
str
Source name.
- voltage_value
float
Amplitude value of the source. Either amperes for current source or volts for voltage source.
- phase_value
float
Phase value of the source.
- impedance
float
Impedance value of the source.
- positive_node_component
str
Name of the component used for the positive node.
- negative_node_component
str
Name of the component used for the negative node.
- positive_node_net
str
Net used for the positive node.
- negative_node_net
str
Net used for the negative node.
- name
- 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")