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:
namestr

Source name.

r_valuefloat

Resistor value in Ohms.

l_valuefloat

Inductance value in Henry.

c_valuefloat

Capacitance value in Farrad.

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.

create_physical_rlcbool

When True create a physical Rlc component. Recommended setting to True to be compatible with Siwave.

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