zero.analysis.ac.noise module¶
-
class
zero.analysis.ac.noise.AcNoiseAnalysis(*args, **kwargs)[source]¶ Bases:
zero.analysis.ac.signal.AcSignalAnalysisSmall signal circuit analysis
-
DEFAULT_INPUT_IMPEDANCE= 50¶
-
calculate(input_type, sink, impedance=None, incoherent_sum=False, input_refer=False, **kwargs)[source]¶ Calculate noise from circuit elements at a particular element.
- Parameters
input_type (str) – Input type, either “voltage” or “current”.
sink (str or
ComponentorNode) – The element to calculate noise at.impedance (float or
Quantity, optional) – Input impedance. If None, the default is used.incoherent_sum (
boolordict, optional) – Incoherent sum specification. If True, the incoherent sum of all noise in the circuit at the sink is calculated and added to the solution. Alternatively, this parameter can be specified as a dict containing labels as keys and sequences of noise sources as values. The noise sources can be eitherNoiseDensityobjects or noise specifier strings as supported bySolution.get_noise(). The values may alternatively be the strings “all”, “allop” or “allr” to compute noise from all components, all op-amps and all resistors, respectively. Sums are plotted in shades of grey determined by the plotting configuration’ssum_greyscale_cycle_start,sum_greyscale_cycle_stopandsum_greyscale_cycle_countvalues.input_refer (bool, optional) – Refer the noise to the input.
- Other Parameters
frequencies (
np.ndarrayor sequence) – The frequency vector to calculate the response with.node, node_p, node_n (
Node) – The node or nodes to make the input. The node parameter sets a single, grounded input, whereas node_p and node_n together create a floating input.print_equations (
bool, optional) – Print the circuit equations.print_matrix (
bool, optional) – Print the circuit matrix.
- Returns
Solution– Solution containing noise spectra at the specified sink (or projected sink).
-
circuit_matrix(*args, **kwargs)[source]¶ Calculate and return matrix used to solve for circuit noise at a given frequency.
- Returns
scipy.sparse.spmatrix– The circuit matrix.
-
property
noise_element_index¶ Noise element matrix index
-
property
noise_sink¶
-
property
right_hand_side_index¶ Right hand side excitation component index
-