Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.52 KB

NetwAnalysis.md

File metadata and controls

50 lines (35 loc) · 2.52 KB

CMDimCircuits.NetwAnalysis: Network Analysis Tools

Principal Types

Exported

  • Network{NUMPORTS} Abstract data type - represents any network.
  • NPType{NPSYMBOL}: Identifies network parameter type (facilitates dispatch).

Not Exported

  • SParameters{NUMPORTS, DATATYPE}: Stores S parameters.
  • ZParameters{NUMPORTS, DATATYPE}: Stores Z parameters.
  • YParameters{NUMPORTS, DATATYPE}: Stores Y parameters.
  • HParameters{DATATYPE}: Stores H parameters.
  • GParameters{DATATYPE}: Stores G parameters.
  • ABCDParameters{DATATYPE}: Stores ABCD parameters.

Function Listing

Constructors

  • Network({::Symbol/::NPType}, nwkpar::Array[, z0=[::Real]]): Constructs concrete network parameter matrix <: Network.
  • Network(:S, [0 1; 1 0], z0=50): Construct S parameter network (z0=50 Ω).
  • Network(NPType{:S}, [0 1; 1 0], z0=50): Construct S parameter network (z0=50 Ω).
  • ...

Traits (Utility functions for instances and types)

  • Symbol(::NPType): Returns symbol value corresponding to an NPType.
  • eltype(::NetworkParameters): Returns a network parameter matrix element type.
  • portcount(::NetworkParameters): Returns the port count.

Conversion Routines

  • Network({::Symbol/::NPType}, nwkpar::NetworkParameters[, z0=[::Real]]): Performs network parameter matrix conversion.
  • Network(:S, Z, z0=50): Convert Z ⇒ S parameter network (z0=50 Ω).
  • Network(NPType{:S}, Z, z0=50): Convert Z ⇒ S parameter network (z0=50 Ω).
  • vector_push(np::Vector{NetworkParameters}): Converts Vector{NetworkParameters{Number}}NetworkParameters{Vector{Number}}
  • vector_pull(np::NetworkParameters{Vector}): Converts NetworkParameters{Vector{Number}}Vector{NetworkParameters{Number}}
  • submatrix(np::{S/Y/Z}Parameters, ports::Vector{Int}): Creates a network parameter matrix that is a subset of np. Can also be used to re-order ports.

Other

  • series({::Symbol/::NPType}, {::TImpedance/::TAdmittance}): Returns a 2-port network parameter matrix representing the provided series impedance/admittance value.
  • shunt({::Symbol/::NPType}, {::TImpedance/::TAdmittance}): Returns a 2-port network parameter matrix representing the provided shunt impedance/admittance value.

Sample Usage

Examples of the NetwAnalysis.jl capabilities (+more) can be found under the sample directory.