lcapy.network.Network
- class lcapy.network.Network
Bases:
objectThis is the base class for network objects.
Methods
circuit()Convert a Network object into a Circuit object.
describe()Print a message describing how network is solved.
draw([filename, layout, form, evalf])Draw schematic of network.
latex(**kwargs)netlist([layout, evalf])Create a netlist.
noisy([T])Create noisy network model by replacing resistances with a series combination of a resistance and a noise voltage source.
pdb()Enter the python debugger.
pprint()pretty(**kwargs)sch([layout, evalf])Convert a Network object into a Schematic object.
simplify()subs(*args, **kwargs)transform([form])Transform the network impedance into an alternative form.
Attributes
analysisConvert a Network object into a Circuit object.
cpt_typehas_achas_dchas_ichas_independent_sourcehas_transientinitial_value_problemis_IVPis_acis_capacitoris_causalis_conductoris_current_sourceis_dcis_inductoris_noiselessis_parallelis_resistoris_seriesis_transformeris_voltage_sourceReturn list of transform domain kinds.
kwargsnetkeywordReturn list of symbols used as arguments in the network.
Return dictionary of symbols defined in the network.
zeroic- property cct
Convert a Network object into a Circuit object.
- circuit()
Convert a Network object into a Circuit object.
- describe()
Print a message describing how network is solved.
- draw(filename=None, layout='horizontal', form=None, evalf=False, **kwargs)
Draw schematic of network.
- Parameters:
filename – The name of the file to produce. If None, the schematic is displayed on the screen.
layout – This is either ‘horizontal’, ‘vertical’, or ‘ladder’.
evalf – This can be False or an integer specifying the number of decimal places used to evaluate floats.
kwargs – These include:
label_ids (-)
label_values (-)
draw_nodes (-) –
True: show all nodes
False: show no nodes
’primary’: show primary nodes
’connections’: show nodes that connect more than two components
’all’: show all nodes
label_nodes (-) –
True: label all nodes
False: label no nodes
’primary’: label primary nodes
’alpha’: label nodes starting with a letter
’pins’: label nodes that are pins on a chip
’all’: label all nodes
style (-)
scale (-)
node_spacing (-)
cpt_size (-)
dpi (-)
help_lines (-)
debug (-)
Notes
If using Jupyter, then need to first issue command %matplotlib inline
- property kinds
Return list of transform domain kinds.
- netlist(layout='horizontal', evalf=None)
Create a netlist.
layout can be ‘horizontal’, ‘vertical’, or ‘ladder’.
evalf can be False or an integer specifying the number of decimal places used to evaluate floats.
- noisy(T='T')
Create noisy network model by replacing resistances with a series combination of a resistance and a noise voltage source.
- property params
Return list of symbols used as arguments in the network.
- pdb()
Enter the python debugger.
- sch(layout='horizontal', evalf=False)
Convert a Network object into a Schematic object.
- property symbols
Return dictionary of symbols defined in the network.
- transform(form='cauerI')
Transform the network impedance into an alternative form. The transformation is performed using network synthesis of the network’s impedance (note, this ignores the sources). form includes: cauerI, cauerII, fosterI, fosterII.
Note some methods generate networks with negative value components.