Main Content

solver

Access FEM solver settings for electromagnetic analysis

Since R2025a

    Description

    Use the solver object to access the finite element method (FEM) solver settings in the pcbComponent object.

    Creation

    Description

    s = solver(pcbComponent) returns the solver used in pcbComponent for EM analysis. For more information on EM solvers, see Overview of Solvers. After you create a solver object, you can modify the object properties using dot notation.

    Note

    You must set the SolverType property to 'FEM' in the pcbComponent object.

    example

    Input Arguments

    expand all

    pcbComponent object specified as a string.

    Example: s = solver(obj) returns a solverobject.

    Properties

    expand all

    The boundary condition of the FEM solver specified as 'perfectly-matched-layer' or 'absorbing'.

    Example: p = pcbComponent(SolverType='FEM');s = solver(p);sBoundaryShape = 'absorbing' creates a pcbComponent solver object with BoundaryCondition specified as 'aborbing'.

    Examples

    collapse all

    This example shows how to create a solver object of a pcb component object. The solver object allows the propeties of the finite element (FEM) solver to be specified.

    Create a PCB component object

    Create a pcb component object with its solver type specified as FEM. The solver type must be specified as FEM.

    p = pcbComponent;
    p.SolverType = 'FEM'
    p = 
      pcbComponent with properties:
    
            BoardShape: [1×1 traceRectangular]
        BoardThickness: 0.0016
             Conductor: [1×1 metal]
             Connector: [1×1 RFConnector]
            FeedFormat: 'FeedLocations'
         FeedLocations: [2×4 double]
          FeedViaModel: 'strip'
            IsShielded: 0
                Layers: {[1×1 traceRectangular]  [1×1 dielectric]  [1×1 traceRectangular]}
                  Load: [1×1 lumpedElement]
                  Name: 'MyPCB'
              Revision: 'v1.0'
            SolverType: 'FEM'
                  Tilt: 0
              TiltAxis: [0 0 1]
           ViaDiameter: []
          ViaLocations: []
    
    

    Create the solver object

    Create the solver object and specify the boundary condition as 'absorbing'

    s = solver(p);
    s.BoundaryCondition='absorbing'
    s = 
      FEM with properties:
    
        BoundaryCondition: 'absorbing'
    
    

    Version History

    Introduced in R2025a

    See Also