Engee documentation

analyze

RFCKT object analysis in the frequency domain.

Library

EngeeRF

Syntax

Function call

  • analyze(h,Freq) — calculates the following rfckt object data h at the set frequency values Freq:

    • Chain Parameters;

    • Noise factor;

    • The intersection point of the third order at the exit;

    • Power data;

    • Phase noise;

    • Standing wave voltage coefficient;

    • Power gain factor;

    • Group delay;

    • Reflection coefficients;

    • Sustainability data;

    • Transfer function.

  • analyze(h,Freq,ZL,ZS,Z0,Aperture) — calculates preset frequency values for circuit data with optional arguments such as load impedance ZL, the impedance of the source ZS, reference impedance Z0 and the aperture Aperture.

  • analyze(h,Freq,Name=Value) — calculates the circuit data at specified frequency values and properties of the circuit object specified by one or more arguments of the "name-value" type. Unspecified properties retain their default values. The method ignores any properties that are not applicable to the specified object. Ignoring these properties allows you to apply the same set of arguments to the entire network, where different properties exist for different components.

    When specifying arguments of the "name-value" type, the method analyze modifies the object’s data values according to your requirements.

Arguments

Input arguments

# h is an rfckt object

+ object

Details

rfckt is an object for analysis, specified as an object descriptor.

Типы данных

String

# Freq — simulation frequency, Hz

+ vector

Details

The simulation frequency, set as a vector in Hz.

Типы данных

Float64

# ZL — load impedance, ohms

+ 50 (by default) | scalar

Details

The load impedance, set as a scalar in ohms.

Типы данных

Float64

# ZS — source impedance, ohms

+ 50 (by default) | scalar

Details

The impedance of the source, set as a scalar in ohms.

Типы данных

Float64

# Z0 is the reference impedance of the S-parameters, ohms

+ 50 (by default) | scalar | vector

Details

The reference impedance of the S-parameters, specified as a positive real scalar or a positive real vector in ohms. The length of this vector must match the length of the argument. Freq.

Типы данных

Float64

# Aperture — the value for determining two closely spaced frequencies at each simulation frequency

+ scalar (by default) | vector

Details

The value for determining two closely spaced frequencies at each simulation frequency for calculating the group delay, set as a positive scalar or vector of the same length as the simulation frequency vector. If the argument is Aperture If it is not set, then its value will be determined based on the simulation frequencies.

Типы данных

Float64

Examples

Data object analysis

Details

Let’s create and analyze a data object. Let’s output the possible names of the object properties.

using EngeeRF

h = rfdata.data()

ans = analyze(h, [2e9 1e9], [50 100], [125, 75], 150)

propertynames(ans)
(:Name, :Freq, :S_Parameters, :Z0, :ZS, :ZL, :IntpType)

Let’s output the values of some of the properties.

println("Name: ", ans.Name,
        "\nFreq: ", ans.Freq,
        "\nZ0: ", ans.Z0,
        "\nZS: ", ans.ZS,
        "\nZL: ", ans.ZL,
        "\nIntpType: ", ans.IntpType)
Name: Data Object
Freq: [1.0e9, 2.0e9]
Z0: ComplexF64[150.0 + 0.0im]
ZS: ComplexF64[75.0 + 0.0im, 125.0 + 0.0im]
ZL: ComplexF64[100.0 + 0.0im, 50.0 + 0.0im]
IntpType: Linear