Main Content

pcbElement

Create RF Toolbox circuit element

Since R2021b

Description

Use the pcbElement object to create an RF Toolbox™ circuit element.

Creation

Description

circuit_element = pcbElement(rfpcbobject) creates a PCB element object from a PCB component. You can use this element in an RF Toolbox circuit.

example

circuit_element = pcbElement(rfpcbobject,Name=Value) sets properties using one or more name-value arguments.

Input Arguments

expand all

PCB component object, specified as an RF PCB object. For a complete list of the PCB components, see PCB Components Catalog.

Properties

expand all

Compute S-parameters of the PCB element using the behavioral model, specified as a logical true or false. When you specify true, the object calculates the S-parameters using the behavioral model. When you specify false, the object calculates the S-parameters using the full-wave solver. For components and shapes that support the behavioral model, see Behavioral Models and sparameters.

Data Types: logical

Port numbers between which a user can place a passive component, or use an s2p as input, are defined by using the PortNumber property.

Example: pcbckt=pcbElement(p);pcbckt.PortNumber={{4,5}}

Data Types: cell

The value of a passive component being placed between ports is set using the PortValue property.

Example: pcbckt=pcbElement(p);pcbckt.PortValue={Resistor(100)}

Data Types: double | cell
Complex Number Support: Yes

Use the AnalysisPorts property to designate port numbers for circuit analysis.

Example: pcbckt=pcbElement(p);pcbckt.AnalysisPorts{1,2,3}

Data Types: cell

Examples

collapse all

Create a circuit using default properties.

ckt = circuit;

Create two interdigital capacitors, one using default properties and one with three fingers.

c1 = interdigitalCapacitor;
c2 = interdigitalCapacitor('NumFingers',3);

View both c1 and c2.

show(c1)

Figure contains an axes object. The axes object with title interdigitalCapacitor element, xlabel x (mm), ylabel y (mm) contains 6 objects of type patch, surface. These objects represent Copper, feed, Roger.

figure;
show(c2)

Figure contains an axes object. The axes object with title interdigitalCapacitor element, xlabel x (mm), ylabel y (mm) contains 6 objects of type patch, surface. These objects represent Copper, feed, Roger.

Convert c2 to a PCB element with the Behavioral property set to false.

p = pcbElement(c2,'Behavioral',false);

Add both capacitors to the circuit object.

add(ckt,[1 2 0 0],c1) % default pcbElement created automatically
add(ckt,[2 3 0 0],p)
setports(ckt,[1 0],[3 0])

Calculate the S-parameters.

S = sparameters(ckt,8e9) 
S = 
  sparameters with properties:

      Impedance: 50
       NumPorts: 2
     Parameters: [2x2 double]
    Frequencies: 8.0000e+09

References

[1] Pozar, David M. Microwave Engineering. 4th ed. Hoboken, NJ: Wiley, 2012.

Version History

Introduced in R2021b