add_rlc#
- SimulationConfiguration.add_rlc(name='', r_value=1.0, c_value=0.0, l_value=0.0, positive_node_component='', positive_node_net='', negative_node_component='', negative_node_net='', create_physical_rlc=True)[source]#
Add a voltage source for the current SimulationConfiguration instance.
- Parameters:
- name
str
Source name.
- r_value
float
Resistor value in Ohms.
- l_value
float
Inductance value in Henry.
- c_value
float
Capacitance value in Farrad.
- 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.
- create_physical_rlcbool
When True create a physical Rlc component. Recommended setting to True to be compatible with Siwave.
- 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")