Main Content

FEM-based Solver for RF Structures

The finite element method (FEM) solver in RF PCB Toolbox™ computes electric and magnetic fields across RF structures. Use this solver to model and analyze PCB components with different shapes and geometries and to find a numerical solution to complex mathematical formulations of these structures. This topic explains the mathematical formulation of the FEM to electromagnetically solve RF structures in RF PCB Toolbox.

To solve time-harmonic Maxwell's equations in the computational domain  Ω, this implementation of the FEM uses hierarchical curl-conforming finite elements (FEs). Basis functions used in these FEs belong to the H(curl;Ω) space. In general, curl-conforming basis function ensure tangential continuity of the field across interfaces between adjacent elements [2, 3]. Maxwell's curl equations dictate this type of field continuity. The curl-conforming functional space H(curl;Ω), is mathematically described as

H(curl;Ω){f|fL2(Ω),curl(f)L2(Ω)}

, where L2(Ω) is the space of square-integrable functions defined over Ω. For more information on functional spaces and their application in FEM, please refer to [1].

Weak Formulation

Using the ejωt anastaz, Maxwell's-curl equations are written as

{curl(E)=Mjωμ¯¯Hcurl(H)=+J+jωε¯¯E

.

Assume a total field formulation that does not separate incident and scattered field contributions in E or H. Also, assume that an absorbing boundary condition of the form, B(E-Einc)=0 is imposed on the boundary of Ω. This absorbing boundary condition truncates the computational domain while minimizing any artificial reflections from the truncating boundary. In the figure, observe that γT(E)=0 enforces the required field condition on any of the perfect electric conductor (PEC) and γT(E)=Esrc enforces any Dirichlet-type boundary-source conditions. A Dirichlet-type boundary-source condition defines a source as a known tangential E-field. In electrodynamics, when ω0, the two curl equations completely describe the underlying physics without the need for independent enforcement of the divergence equations. To form the proper weak form corresponding to the curl equations, take the curl of the first equation and substitute the resulting curl(H) using the second curl equation.

μ¯¯r1curl(E)=μ¯¯r1Mjωμ0H,

curl(μ¯¯r1curl(E))=curl(μ¯¯r1M)jωμ0curl(H),

curl(μ¯¯r1curl(E))=curl(μ¯¯r1M)jωμ0J+ω2μ0ε0ε¯¯rE.

Diagram showing a complete circuit model for the via cell.

Similarly, for the H-field formulation, write

curl(ε¯¯r1curl(H))=curl(ε¯¯r1J)jωε0M+ω2ε0μ0μ¯¯rH.

For an E-field formulation, test the resulting equation with an appropriate testing function T. To test this equation, multiply the equation with T* (complex conjugate of T) and take the integral over the entire problem domain, Ω.

T*curl(μ¯¯r1curl(E))=T*curl(μ¯¯r1M)jωμ0T*J+ω2μ0ε0T*ε¯¯rE

T*curl(μ¯¯r1curl(E))k02T,ε¯¯rEΩ=T,curl(μ¯¯r1M)Ωjωμ0T,JΩ

Using the vector identity

div(A×B)=Bcurl(A)Acurl(B)

and a bracket notation

a,bΩΩa*bdΩ

you arrive at

curl(T),μ¯¯r1curl(E)Ωk02T,ε¯¯rEΩ+T,n^×μ¯¯r1curl(E)Ω\ΓD=T,curl(μ¯¯r1M)Ωjωμ0T,JΩ

.

Note that the bra-ket is conjugate-linear in the first variable and linear in the second variable. The equivalent H-field formulation is

curl(T),ε¯¯r1curl(H)Ωk02T,μ¯¯rHΩ+T,n^×ε¯¯r1curl(H)Ω\ΓD=+T,curl(ε¯¯r1J)Ωjωε0T,MΩ

.

The test functions T and the trial functions E belong to the space of curl-confirming functions defined over Ω that is H(curl;Ω). Solving the weak form equations is equivalent to solving the original curl equations if and only if the weak form equations are satisfied for

EH(curl;Ω),TH(curl;Ω).

When forming matrix equations corresponding to the weak form, remember that the testing functions T are chosen to have zero trace on any Dirichlet boundary where there is explicit knowledge of the E field in the form

E=Eknown,ΓD.

or the H field in the form of

H=Hknown,ΓD.

This means that the T,n^×μ¯¯r1curl(E) term in E-field formulation and the T,n^×ε¯¯r1curl(H) term in H-field formulation vanish by the choice of testing functions. On other types of boundaries, these terms are manipulated according to the requirements. For example, in the E-field formulation and in the presence of a Neumann boundary condition where

H=Hknown,ΓN

,

the T,n^×μ¯¯r1curl(E) term is replaced by

T,jωμ0n^×Hknown

and moved to the RHS of the equation.

FEM Solver Setup and Workflow

To enable FEM solver download the Integro-Differential Modeling Framework for MATLAB. To download this add-on:

  1. In the Home tab Environment section, click on Add-Ons. This opens the add-on explorer. You need an active internet connection to download the add-on.

  2. Search for Integro-Differential Modeling Framework for MATLAB and click Install.

  3. To verify if the download is successful, run

    matlab.addons.installedAddons
    in your MATLAB® session command line.

  4. On Windows, to run the IDMF add-on, you must install the Windows Subsystem for Linux (WSL). To install WSL, see Install Linux on Windows with WSL.

    The Windows Defender Firewall can block the PostgreSQL server when using the IDMF add-on. To resolve this issue, you can allow the server to communicate on desired networks if the firewall prompts. Alternatively, you can manually add the executable file of the PostgreSQL server located in <matlabroot>\sys\postgresql\win64\PostgreSQL\bin\postgres.exe. For more information, see https://support.microsoft.com/en-us/windows/risks-of-allowing-apps-through-windows-defender-firewall-654559af-3f54-3dcf-349f-71ccd90bcc5c.

References

[1] Leszek Demkowicz J. Tinsley Oden, Applied Functional Analysis, CRC Press, 2023, ISBN: 0-471-43818-9.

[2] Nedelec, “Mixed Finite Elements in R3”, in Numerische Mathematik, Vol. 35, 1980, pp. 315–341.

[3] Ivo Dolezel Pavel Solin Karel Segeth, Higher-Order Finite Element Methods, Chapman & Hall, CRC, 2003, ISBN: 9781584884385.