A Cdc Module Users Guide
A Cdc Module Users Guide
User´s Guide
VERSION 4.1
Benelux India United Kingdom
COMSOL BV COMSOL Multiphysics Pvt. Ltd. COMSOL Ltd.
Röntgenlaan 19 Esquire Centre UH Innovation Centre
2719 DX Zoetermeer C-Block, 3rd Floor College Lane
The Netherlands No. 9, M. G. Road Hatfield
Phone: +31 (0) 79 363 4230 Bangalore 560001 Hertfordshire AL10 9AB
Fax: +31 (0) 79 361 4212 Karnataka Phone: +44-(0)-1707 636020
[email protected] Phone: +91-80-4092-3859 Fax: +44-(0)-1707 284746
www.comsol.nl Fax: +91-80-4092-3856 [email protected]
[email protected] www.uk.comsol.com
Denmark
COMSOL A/S Italy United States
Diplomvej 381 COMSOL S.r.l. COMSOL, Inc.
2800 Kgs. Lyngby Via Vittorio Emanuele II, 22 1 New England Executive Park
Phone: +45 88 70 82 00 25122 Brescia Suite 350
Fax: +45 88 70 80 90 Phone: +39-030-3793800 Burlington, MA 01803
[email protected] Fax: +39-030-3793899 Phone: +1-781-273-3322
www.comsol.dk [email protected] Fax: +1-781-273-6603
www.it.comsol.com
Finland COMSOL, Inc.
COMSOL OY Norway 10850 Wilshire Boulevard
Arabiankatu 12 COMSOL AS Suite 800
FIN-00560 Helsinki Postboks 5673 Sluppen Los Angeles, CA 90024
Phone: +358 9 2510 400 Søndre gate 7 Phone: +1-310-441-4800
Fax: +358 9 2510 4010 NO-7485 Trondheim Fax: +1-310-441-0868
[email protected] Phone: +47 73 84 24 00
www.comsol.fi Fax: +47 73 84 24 01 COMSOL, Inc.
[email protected] 744 Cowper Street
France www.comsol.no Palo Alto, CA 94301
COMSOL France Phone: +1-650-324-9935
WTC, 5 pl. Robert Schuman Sweden Fax: +1-650-324-9936
F-38000 Grenoble COMSOL AB [email protected]
Phone: +33 (0)4 76 46 49 01 Tegnérgatan 23 www.comsol.com
Fax: +33 (0)4 76 46 07 42 SE-111 40 Stockholm
[email protected] Phone: +46 8 412 95 00 For a complete list of international
www.comsol.fr Fax: +46 8 412 95 10 representatives, visit
[email protected] www.comsol.com/contact
Germany www.comsol.se
COMSOL Multiphysics GmbH Company home page
Berliner Str. 4 Switzerland www.comsol.com
D-37073 Göttingen COMSOL Multiphysics GmbH
Phone: +49-551-99721-0 Technoparkstrasse 1 COMSOL user forums
Fax: +49-551-99721-29 CH-8005 Zürich www.comsol.com/support/forums
[email protected] Phone: +41 (0)44 445 2140
www.comsol.de Fax: +41 (0)44 445 2141
[email protected]
www.ch.comsol.com
Infinite Elements 29
Modeling Unbounded Domains . . . . . . . . . . . . . . . . . 29
Known Issues When Modeling Using Infinite Elements. . . . . . . . . 31
Lumped Parameters 35
Calculating Lumped Parameters with Ohm’s Law . . . . . . . . . . . 35
Calculating Lumped Parameters Using the Energy Method . . . . . . . 37
CONTENTS |3
Studying Lumped Parameters . . . . . . . . . . . . . . . . . . 38
Fundamentals of Electromagnetics 52
Maxwell’s Equations . . . . . . . . . . . . . . . . . . . . . . 52
Constitutive Relations . . . . . . . . . . . . . . . . . . . . . 53
Potentials. . . . . . . . . . . . . . . . . . . . . . . . . . 55
Reduced Potential PDE Formulations . . . . . . . . . . . . . . . 55
Electromagnetic Energy . . . . . . . . . . . . . . . . . . . . 56
The Quasi-Static Approximation and the Lorentz Term . . . . . . . . 57
Material Properties . . . . . . . . . . . . . . . . . . . . . . 58
Boundary and Interface Conditions . . . . . . . . . . . . . . . . 59
Phasors . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Electromagnetic Forces 61
Overview of Forces in Continuum Mechanics . . . . . . . . . . . . 61
Forces on an Elastic Solid Surrounded by Vacuum or Air . . . . . . . . 63
Torque. . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Forces in Stationary Fields . . . . . . . . . . . . . . . . . . . 65
Forces in a Moving Body . . . . . . . . . . . . . . . . . . . . 68
Electromagnetic Energy and Virtual Work . . . . . . . . . . . . . 70
Special Calculations 72
Mapped Infinite Elements . . . . . . . . . . . . . . . . . . . . 72
Lumped Parameter Conversion . . . . . . . . . . . . . . . . . 73
4 | CONTENTS
Electromagnetic Quantities 74
References 76
CONTENTS |5
Infinite Elements . . . . . . . . . . . . . . . . . . . . . . . 99
Initial Values. . . . . . . . . . . . . . . . . . . . . . . . . 99
Boundary Conditions for the Electric Currents Interface . . . . . . . 100
Pairs . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Boundary Current Source . . . . . . . . . . . . . . . . . . 101
Ground . . . . . . . . . . . . . . . . . . . . . . . . . 102
Electric Potential . . . . . . . . . . . . . . . . . . . . . . 102
Normal Current Density . . . . . . . . . . . . . . . . . . . 102
Distributed Impedance. . . . . . . . . . . . . . . . . . . . 103
Electric Shielding . . . . . . . . . . . . . . . . . . . . . . 104
Terminal . . . . . . . . . . . . . . . . . . . . . . . . . 106
Floating Potential . . . . . . . . . . . . . . . . . . . . . . 106
Electric Insulation . . . . . . . . . . . . . . . . . . . . . 106
Periodic Condition . . . . . . . . . . . . . . . . . . . . . 107
Contact Resistance . . . . . . . . . . . . . . . . . . . . . 107
Sector Symmetry . . . . . . . . . . . . . . . . . . . . . . 108
Continuity . . . . . . . . . . . . . . . . . . . . . . . . 109
Line Current Source . . . . . . . . . . . . . . . . . . . . 109
Point Current Source . . . . . . . . . . . . . . . . . . . . 109
Electric Point Dipole . . . . . . . . . . . . . . . . . . . . 110
6 | CONTENTS
Theory for the Electric Currents, Shell Interface 126
Electric Currents, Shell Equations in Steady State. . . . . . . . . . 126
Dynamic Electric Currents Equations . . . . . . . . . . . . . . 126
CONTENTS |7
Initial Values. . . . . . . . . . . . . . . . . . . . . . . . 154
Domain Settings . . . . . . . . . . . . . . . . . . . . . . 155
Boundary Conditions for the Magnetic Fields, No Currents Interface . . 155
Magnetic Flux Density . . . . . . . . . . . . . . . . . . . . 156
Zero Magnetic Scalar Potential. . . . . . . . . . . . . . . . . 156
Magnetic Insulation . . . . . . . . . . . . . . . . . . . . . 157
Magnetic Shielding . . . . . . . . . . . . . . . . . . . . . 157
Thin Low Permeability Gap . . . . . . . . . . . . . . . . . . 158
Point Conditions . . . . . . . . . . . . . . . . . . . . . . 159
8 | CONTENTS
Interface
CONTENTS |9
SPICE Circuit Import . . . . . . . . . . . . . . . . . . . . 190
Chapter 9: Materials
INDEX 217
10 | C O N T E N T S
1
This guide describes the AC/DC Module, an optional add-on package for
COMSOL Multiphysics designed to assist you to solve and model low-frequency
electromagnetics.
This section introduces you to the capabilities of the AC/DC Module including an
introduction to the modeling stages and some realistic and illustrative models. A
summary of the physics interfaces and where you can find documentation and
model examples is also included.
In this section:
11
About the AC/DC Module
What Can the AC/DC Module Do?
The AC/DC Module is an optional package that extends the COMSOL
Multiphysics® modeling environment. This module contains a set of interfaces
adapted to a broad category of electromagnetic simulations and it solves problems in
the general areas of electrostatic fields, magnetostatic fields, and quasi-static fields.
Like all COMSOL modules, there is a library of ready-to-run models that make it
quicker and easier to analyze discipline-specific problems. In addition, any model you
develop is described in terms of the underlying partial differential equations, offering
a unique way to see the underlying physical laws of a simulation.
The interfaces are fully multiphysics enabled—you can couple them to any other
interface in COMSOL Multiphysics or the other modules. For example, to find the
heat distribution in a motor you first find the current in the coils using one of the
quasi-static interfaces in this module and then couple it to a heat equation in the main
COMSOL Multiphysics package or the Heat Transfer Module. This forms a powerful
multiphysics model that solves all the equations simultaneously.
Note: If you are working directly from a PDF on your computer, the blue links do
not work to open a model or documentation referenced in a different user guide.
However, if you are using the online help desk in COMSOL Multiphysics, these links
work to other modules, model examples, and documentation sets.
To open any model in COMSOL, select File>Open Model Library from the main menu,
and then search either by name or browse by module name. If you also want to review
the documentation explaining how to build a model, select the model and click Model
PDF or Dynamic Help to reach the PDF or HTML version, respectively. Alternatively,
select Help>Documentation in COMSOL and again, search by name or browse by
module under Model Library in the documentation tree.
If you have feedback or suggestions for additional models for the library (including
those developed by you), feel free to contact us at [email protected].
COMSOL COMMUNITY
On the COMSOL web site, you find a user community at http://www.comsol.com/
community/. The user community includes a discussion forum, a model exchange,
news postings, and a searchable database of papers and presentations.
Typographical Conventions
All COMSOL guides use a set of consistent typographical conventions that should
make it easy for you to follow the discussion, realize what you can expect to see on the
screen, and know which data you must enter into various data-entry fields. In
particular, you should be aware of these conventions:
• A boldface font of the shown size and style indicates that the given word(s) appear
exactly that way on the COMSOL Desktop (or, for toolbar buttons, in the
corresponding tooltip). For instance, we often refer to the Model Builder window,
which is the window that contains the model tree. As another example, the
instructions might say to click the Zoom Extents button, and the boldface font
indicates that you can expect to see a button with that exact label on the COMSOL
Desktop.
• Click text highlighted in blue to go to other information in the PDF. When you are
using the online help desk in COMSOL Multiphysics, these links also work to other
modules, model examples, and documentation sets.
• The names of other items on the COMSOL Desktop that do not have direct labels
contain a leading uppercase letter. For instance, we often refer to the Main toolbar;
this horizontal bar containing many icons appears on top of the user interface.
However, nowhere on the screen will you see the term “Main” referring to this
toolbar.
• The symbol > indicates a menu item. For example, Options>Results is equivalent to:
From the Options menu, choose Results.
• A Code (monospace) font indicates keyboard entries in the user interface. You might
see an instruction such as “Type 1.25 in the Current density edit field.” The
monospace font also indicates code. This font also indicates variable names. An italic
The Model Wizard is an easy way to select the physics interface and study type when
creating a model for the first time, and you can add physics interfaces to an existing
model at any time. Full instructions for selecting interfaces and setting up a model are
in the COMSOL Multiphysics User’s Guide.
Below is a brief summary of each interface. Following the summary are tables that list
the AC/DC interface availability by space dimension and study type. In 2D, in-plane
and out-of-plane variants are available for problems with a planar symmetry as well as
axisymmetric interfaces for problems with a cylindrical symmetry. When using an
axisymmetric interface it is important to note that the horizontal axis represents the r
direction and the vertical axis the z direction, and that you must create the geometry
in the right half-plane (that is, for positive r only). See What Problems Can You Solve?
and Table 1-1 for information about the available study types and variables.
ELECTROSTATICS
This interface simulates electric fields in dielectric materials with a fixed charge present.
Preset stationary and time-dependent study types are available. See The Electrostatics
Interface for settings information.
ELECTRIC CURRENTS
This interface simulates the current in a conductive and capacitive material under the
influence of an electric field. All three study types (stationary, frequency domain, and
time-dependent) are available. See The Electric Currents Interface for settings
information.
MAGNETIC FIELDS
This interface handles problems for magnetic fields with prescribed currents. All three
study types (stationary, frequency domain, and time dependent) are available. See The
Magnetic Fields Interface for settings information.
MAGNETOSTATICS, NO CURRENTS
This interface handles magnetic fields without currents. When no currents are present,
the problem is easier to solve using the magnetic scalar potential. The stationary and
time-dependent study types are available. See The Magnetic Fields, No Currents
Interface for settings information.
R O T A T I N G M A C H I N E R Y, M A G N E T I C
This interface is available with 2D models only. It combines an out-of-plane magnetic
fields (magnetic vector potential) formulation with a selection of predefined frames for
prescribed rotation or rotation velocity—it shares most of its features with the
Magnetic Fields interface. This interface requires that the geometry is created as an
assembly from individual parts for the rotor and stator. See The Rotating Machinery,
Magnetic Interface for settings information.
ELECTRICAL CIRCUIT
This interface has the equations for modeling electrical circuits with or without
connections to a distributed fields model, solving for the voltages, currents, and
charges associated with the circuit elements. See The Electrical Circuit Interface for
settings information.
T H E I N T E R F A C E S A N D S T U D Y TY P E S | 17
INDUCTION HEATING
This interface combines all features from the Magnetic Fields interface in the time
harmonic formulation with the Heat Transfer interface for modeling of induction and
eddy current heating. See The Induction Heating Interface for settings information.
Heat transfer through conduction and convection in solids and free media (fluids) is
supported by physics interfaces shipped with the basic COMSOL Multiphysics license.
See The Heat Transfer Interface, The Joule Heating Interface and Theory for the Heat
Transfer Interfaces in the COMSOL Multiphysics User’s Guide for more information.
Note: Each interface has a Tag which is of special importance when performing
multiphysics simulations. This tag helps distinguish between physics interfaces and
the variables defined by the interface have an underscore plus the physics interface tag
appended to their names.
AC/DC
Electrostatics (enhanced) es
Heat Transfer
Induction Heating ih
MAGNETIC POTENTIAL
FREQUENCY DOMAIN
CURRENT DENSITY
TIME DEPENDENT
MAGNETIC FIELD
ELECTRIC FIELD
STATIONARY
Electrostatics es V x
y
z
Electric Currents ec V x x
y y
z z
Electric Currents, Shell ecs V x x
y y
z z
Magnetic Fields mf A x x x x
y y y y
z z z z
Magnetic and Electric Fields mef V, A x x x x
y y y y
z z z z
Magnetic Fields, No Currents mfnc Vm x
y
z
Rotating Machinery, Magnetic rmm A x z z z
y
Electrical Circuit cir not
applicable
Induction Heating ih A,T, J x x x x T, J T, J A
y y y y
z z z z
*
These are the nonzero field components. For Cartesian coordinates, these are indexed by
x, y, and z; for cylindrical coordinates, r, , and z are used.
**
Custom studies are also available based on the interface, for example, Eigenfrequency and
Eigenvalue.
T H E I N T E R F A C E S A N D S T U D Y TY P E S | 19
20 | CHAPTER 1: INTRODUCTION TO THE AC/DC MODULE
2
AC/DC Modeling
The goal of this section is to familiarize you with the modeling procedure in the
AC/DC Module. Because this module is fully integrated with COMSOL
Multiphysics, the modeling process is similar.
In this section:
21
Preparing for Modeling
This section is intended to guide you through the selection process among the physics
interfaces in the AC/DC Module and does not contain detailed interface descriptions.
Several topics in the art of modeling are covered here that you may not find in ordinary
textbooks on electromagnetic theory. This section discusses these topics:
• What Problems Can You Solve?—Can I use the quasi-static physics interfaces or do
I need wave propagation?
• Choosing the Space Dimension for the Model Geometry—Is a 2D, 3D, or
axisymmetric geometry best for my model?
• Simplifying the Geometry Using Boundary Conditions—When do I need to resolve
the thickness of thin shells?
• Applying Electromagnetic Sources—What sources can I use to excite the fields?
• Meshing and Solving—What issues might arise with respect to meshing and solving?
• Selecting a Study Type—Is my problem suited for time-dependent or
time-harmonic (frequency domain) formulations?
GENERAL TIPS
These general tips about modeling will help you to decide what to include in your
simulation and what you can do to minimize the size of your problem. Before you start
modeling, try first to answer the following questions:
It is important to remember that a model never captures all the details of reality.
Increasing the complexity of a model to make it more accurate usually makes it more
expensive to simulate. A complex model is also more difficult to manage and interpret
than a simple one. Keep in mind that it can be more accurate and efficient to use several
simple models instead of a single, complex one.
One major difference between quasi-static and high-frequency modeling is that the
formulations depend on the electrical size of the structure. This dimensionless
measure is the ratio between the largest distance between two points in the structure
divided by the wavelength of the electromagnetic fields.
The quasi-static physics interfaces in this module are suitable for simulations of
structures with an electrical size in the range up to 1/10. The physical assumption of
these situations is that the currents and charges generating the electromagnetic fields
vary so slowly in time that the electromagnetic fields are practically the same at every
instant as if they had been generated by stationary sources.
When the variations in time of the sources of the electromagnetic fields are more rapid,
it is necessary to solve the full Maxwell equations for high-frequency electromagnetic
waves. They are appropriate for structures of electrical size 1/100 and larger. Thus, an
overlapping range exists where you can use both the quasi-static and the full Maxwell
formulations. Interfaces for high-frequency electromagnetic waves are available in the
RF Module.
Independently of the structure size, the AC/DC Module accommodates any case of
nonlinear, inhomogeneous, or anisotropic media. It also handles materials with
properties that vary as a function of time as well as frequency-dispersive materials.
Examples of applications you can successfully simulate with this module include
electric motors, generators, permanent magnets, induction heating devices, and
dielectric heating. For a more detailed description of some of these applications, refer
to the models that comes with this product.
2D PROBLEMS
The following guides you through some of the common approximations made for 2D
problems. Remember that the modeling in 2D usually represents some 3D geometry
under the assumption that nothing changes in the third dimension.
Cartesian Coordinates
In this case you view a cross section in the xy-plane of the actual 3D geometry. The
geometry is mathematically extended to infinity in both directions along the z-axis,
assuming no variation along that axis. All the total flows in and out of boundaries are
per unit length along the z-axis. A simplified way of looking at this is to assume that
the geometry is extruded one unit length from the cross section along the z-axis. The
total flow out of each boundary is then from the face created by the extruded boundary
(a boundary in 2D is a line).
There are usually two approaches that lead to a 2D cross-section view of a problem:
• When you know there is no variation of the solution in one particular dimension
• When you have a problem where you can neglect the influence of the finite
extension in the third dimension
See the AC/DC Module Model Library model Electromagnetic Forces on Parallel
Current-Carrying Wires for an example (or see Where Do I Access the Documentation
and Model Library?). The geometry has a finite width but the model neglects the (end)
effects from the faces parallel to the cross section because the strongest forces are
between the perpendicular faces (those seen as lines in the cross section).
Figure 2-1: The cross sections and their real geometry for Cartesian coordinates and
cylindrical coordinates (axial symmetry).
3D PROBLEMS
Although COMSOL Multiphysics fully supports arbitrary 3D geometries, it is
important to simplify the problem. This is because 3D problems easily get large and
require more computer power, memory, and time to solve. The extra time you spend
on simplifying your problem is probably well spent when solving it. Below are a few
issues that should be addressed before starting to implement a 3D model.
Is it possible to solve the problem in 2D? Given that the necessary approximations are
small, the solution is more accurate in 2D because you can use a much denser mesh.
See 2D Problems if this is applicable.
Are there symmetries in the geometry and model? Many problems have planes
where the solution on either side of the plane looks the same. A good way to check this
is to flip the geometry around the plane, for example, by turning it up-side down
around the horizontal plane. You can then remove the geometry below the plane if you
do not see any differences between the two cases regarding geometry, materials, and
sources. Boundaries created by the cross section between the geometry and this plane
need a symmetry boundary condition, which is available in all 3D physics interfaces.
See the AC/DC Module Model Library model Eddy Currents for an example (or see
Where Do I Access the Documentation and Model Library?).
Does the solution only undergo small changes? When a model extends to infinity, it
might have regions where the solution only undergoes small changes. This problem is
addressed in two related steps. First, truncate the geometry in a suitable position.
Second, apply a suitable boundary condition there. For static and quasi-static models,
it is often possible to assume zero fields at the open boundary, provided that this is at
a sufficient distance away from the sources.
Can you replace the thin layers with boundary conditions? There are several types of
boundary conditions in COMSOL Multiphysics suitable for such replacements. You
can, for example, replace materials with high conductivity with the shielding boundary
condition, which assumes a constant potential through the thickness of the layer. If you
have a magnetic material with a high relative permeability, you can also model it using
the shielding boundary condition. See the AC/DC Module Model Library One-Sided
Magnet and Plate or Where Do I Access the Documentation and Model Library?.
Use boundary conditions for known solutions. A body with a high conductivity at high
frequency has the current density confined to a thin region beneath the surface of the
wire. You can often replace the current in the body by either a surface current
boundary condition or an impedance boundary condition. See the AC/DC Module
Model Library Cold Crucible (or see Where Do I Access the Documentation and
Model Library?).
For nonlinear problems you can use a frequency domain study after a linearization of
the problem, which assumes that the distortion of the sinusoidal signal is small.
You need to specify a time-dependent study when you think that the nonlinear
influence is very strong, or if you are interested in the harmonic distortion of a
sinusoidal signal. It might also be more efficient to use a time-dependent study if you
have a periodic input with many harmonics, like a square-shaped signal.
There are some special predefined study types for the Induction Heating multiphysics
interface. This interface is based on the assumption that the magnetic cycle time is
short compared to the thermal time scale (adiabatic assumption). Thus, it is associated
with two predefined study types:
• Frequency-Stationary
- Time-harmonic magnetic fields
- Stationary heat transfer
• Frequency-Transient
- Time-harmonic magnetic fields
- Transient heat transfer
MESH RESOLUTION
The finite element method approximates the solution within each element, using some
elementary shape function that can be constant, linear, or of higher order. Depending
on the element order in the model, a finer or coarser mesh is required to resolve the
solution. In general, there are three problem-dependent factors that determine the
necessary mesh resolution:
Is the variation in the solution due to geometrical factors? The mesh generator
automatically generates a finer mesh where there is a lot of fine geometrical details. Try
to remove such details if they do not influence the solution because they produce a lot
of unnecessary mesh elements.
Is the skin effect or the field variation due to losses? It is easy to estimate the skin
depth from the conductivity, permeability, and frequency. You need at least two linear
elements per skin depth to capture the variation of the fields. If you do not study the
skin depth, you can replace regions with a small skin depth with a boundary condition,
thereby saving elements.
w
t' = t p ----------------------------------
w – t – t0
tp
= 1 – ---------------------
pw + t p
The pole distance, tp, and the physical width of the infinite element region, pw, are
input parameters for the region. The variable t is the unscaled coordinate along the
width of the infinite element region (from inner to outer boundary), t0 is the start
position for the region, and w is the unscaled width of the region. The software
automatically computes the value for this variable and the orientation of the transform
for infinite element regions that are Cartesian, cylindrical, or spherical. However, there
is no check that the geometry of the region is correct, so it is important to draw a
proper geometry and select the corresponding region type. The following figures show
typical examples of infinite element regions that work nicely for each of the infinite
element types. These types are:
INFINITE ELEMENTS | 29
• Manual control of stretching, labeled General
• Scaling direction, which sets the direction from the interface to the outer boundary
• Geometric width, which sets the width of the region
• Coordinate at interface, which sets an arbitrary coordinate at the interface
When going from any of the other types to the General type, subnodes that represent
stretching of the previous type are added automatically.
Element Quality
The coordinate scaling resulting from infinite elements also yields an equivalent
stretching/scaling of the mesh that effectively results in a poor element quality. (The
element quality displayed by the mesh statistics feature does not account for this
effect.)
The poor element quality causes poor/slow convergence for iterative solvers and make
the problem ill-conditioned in general. Especially vector element formulations like the
ones using two or more components of the magnetic vector potential are sensitive to
low element quality. For this reason, it is strongly recommended to use swept meshing
in the infinite element domains. The sweep direction should be selected the same as
the direction of scaling. For Cartesian infinite elements, regions with more than one
direction of scaling it is recommended to first sweep the mesh in the domains with only
one direction of scaling, then sweeping the domains with scaling in two directions and
finishing by sweeping the mesh in the domains with infinite element scaling in all three
direction.
Complicated Expressions
The expressions resulting from the stretching get quite complicated for spherical
infinite elements in 3D. This increases the time for the assembly stage in the solution
process. After the assembly, the computation time and memory consumption is
comparable to a problem without infinite elements. The number of iterations for
iterative solvers might increase if the infinite element regions have a coarse mesh.
INFINITE ELEMENTS | 31
Erroneous Results
Infinite element regions deviating significantly from the typical configurations shown
in the beginning of this section can cause the automatic calculation of the infinite
element parameter to give erroneous result. Enter the parameter values manually if you
find that this is the case. See General Stretching.
REFERENCE
1. O.C. Zienkiewicz, C. Emson, and P. Bettess, “A Novel Boundary Infinite Element,”
Int. J. Num. Meth. Engrg, vol. 19, no. 3, pp. 393–404, 1983.
M A X W E L L S T RE S S TE N S O R
Force and torque calculations using Maxwell’s stress tensor are available in the
electrostatics, electric currents, magnetic fields, and magnetic and electric fields
interfaces. In electrostatics and electric currents, the force is calculated by integrating
1 T
n 1 T 2 = – --- n 1 E D + n 1 E D (2-1)
2
on the surface of the object that the force acts on. In the magnetic fields interface, the
expression
1 T
n 1 T 2 = – --- n 1 H B + n 1 H B
2
is integrated on the surface to obtain the force. In the magnetic and electric fields
interface, both expressions are included. E is the electric field, D the electric
displacement, H the magnetic field, B the magnetic flux density, and n1 the outward
normal from the object. For a theoretical discussion about the stress tensor see
Electromagnetic Forces.
LORENTZ FORCES
The Lorentz force is defined as
F = JB
The Lorentz force is very accurate for electromagnetic force calculations in electrically
conducting domains. The Lorentz force variables are available both in domains and on
boundaries (in the case of surface currents).
F O R C E A N D TO R Q U E C O M P U T A T I O N S | 33
Model Library Examples—How to Compute Electromagnetic Forces
There are a number of examples in the AC/DC Module Model Library showing how
to compute electromagnetic forces in different situations.
The Permanent Magnet model demonstrates how to compute the total force on a
magnetizable rod close to a permanent magnet by integrating the Maxwell stress
tensor in the air on the outside of the rod. This is the most important method for
accurately computing the total force on magnetic devices for which the exact
distribution of volume forces is not known. To retrieve the exact distribution of
volume forces requires a property group that describes the interactions of the
magnetizations and strains. Such property groups are not always available. Therefore
you are often limited to compute the total force by integrating the stress tensor or
using the method of virtual work. Note that none of these methods allows you to
compute and visualize the force distribution inside a domain, but only to compute the
total force and torque in situations where the device is surrounded by air (or when this
is a good approximation).
There are several available techniques to extract the lumped parameters. Which one to
use depends on the interface that you use, what parameter you are interested in, and
how you solve the model. The overview of the techniques below uses a 4-by-4 matrix
example for the lumped parameter matrix. This represents a system of at least five
terminals, where four are used as terminals and the rest are grounded, as illustrated in
Figure 0-7.
V1 V3
Ground
V2 V4
Figure 2-5: A five-terminal system with 4 terminals and one grounded terminal.
If you specify a system where all terminals are terminals, you get redundant matrix
elements. This is better understood if you view a two-terminal system. If both
terminals are declared as terminals, you get a 2-by-2 matrix for the system. This is
clearly too many elements because you only have one unique lumped parameter
between the terminals. As soon as you declare other ground terminals somewhere in
the system, you get a 3-terminal system and the lumped parameter matrix becomes a
2-by-2 matrix.
LUMPED PARAMETERS | 35
F O R C E D VO L T A G E
If voltages are applied to the terminals, the extracted currents represent elements in the
admittance matrix, Y. This matrix determines the relation between the applied voltages
and the corresponding currents with the formula
I1 Y 11 Y 12 Y 13 Y 14 V 1
I2 Y 21 Y 22 Y 23 Y 24 V 2
=
I4 Y 31 Y 32 Y 33 Y 34 V 3
I4 Y 41 Y 42 Y 43 Y 44 V 4
so when V1 is nonzero and all other voltages are zero, the vector I is proportional to
the first column of Y.
In electrostatics the current is replaced with charge and the admittance matrix is
replaced with the capacitance matrix
Q1 C 11 C 12 C 13 C 14 V 1
Q2 C 21 C 22 C 23 C 24 V 2
=
Q4 C 31 C 32 C 33 C 34 V 3
Q4 C 41 C 42 C 43 C 44 V 4
FIXED CURRENT
It might be necessary to calculate the Z-matrix in a more direct way. Similar to the Y
calculation, the Z calculation can be done by forcing the current through one terminal
at the time to a nonzero value while the others are set to zero. Then, the columns of
the impedance matrix are proportional to the voltage values on all terminals:
V1 Z 11 Z 12 Z 13 Z 14 I 1
V2 Z 21 Z 22 Z 23 Z 24 I 2
=
V3 Z 31 Z 32 Z 33 Z 34 I 3
V4 Z 41 Z 42 Z 43 Z 44 I 4
In magnetostatics this option means that the energy method is used; see Calculating
Lumped Parameters Using the Energy Method below.
–1
V1 C 11 C 12 C 13 C 14 Q1
V2 C 21 C 22 C 23 C 24 Q2
=
V3 C 31 C 32 C 33 C 34 Q4
V4 C 41 C 42 C 43 C 44 Q4
2 0 ji
Vi
C ii = ------2- W e d Vj =
Vi j = i
0 k i j
1 Vi Vj
= ------------ W e d – --- ------ C + ------ C jj
1
C ij
Vi Vj 2 V j ii V i
Vk = Vi
k = i
Vj k = j
You can calculate the inductance matrix in the same way from the magnetic energy
density:
2 0 ji
Ii
L ii = ----2- W m d Ij =
Ii j = i
0 k i j
1 Ii Ij
= -------- W m d – --- ---- L + ---- L
1
L ij
Ii Ij 2 I j ii I i jj
Ik = Ii
k = i
Ij k = j
This is the technique used when you select Fixed current in the Magnetostatics
interface.
LUMPED PARAMETERS | 37
Studying Lumped Parameters
To study lumped parameters you use the Terminal boundary condition for each
electrode. This boundary condition is available in the following interfaces and the
methods described in the previous section are used to calculate the lumped parameters:
The lumped parameters are defined as global variables, so you can evaluate them from
the Derived Values node under the Results node in the model tree or define 1D plot
groups for plotting them.
PO R T S W E E P S E T T I N G S A N D TO U C H S T O N E E X P O R T
In the main node of the physics interface you can activate a port sweep that loops the
excitation over the terminals in the model and compute a lumped parameter matrix.
For frequency domain models there is also an inner loop with a frequency sweep for
each terminal and the lumped parameters are exported to Touchstone file. The
generated lumped parameters are in the form of an impedance or admittance matrix
depending on the port/terminal settings. They must consistently be of either fixed
voltage (for an admittance matrix) or fixed current type (for an impedance matrix).
ACCURACY
Use reaction terms to be accurate when calculating the total current over the
boundary. This is necessary for the forced voltage input property. The reaction terms
(representing current or charge density) come from default information stored in the
solution, which gives you an exact calculation of the total fluxes on boundaries with
constraints. They do not change the system of equations in any way, so no special solver
settings are needed when using them. The reaction terms are also stored by default. It
is recommended to use forced voltage input property with reaction terms in the
extraction of the lumped parameters. Lumped parameter variables based on voltage
excitation are only available when reaction fluxes are included in the output.
The optional current excitation performs a coupling that guarantees that the total
current is equal to the specified value, although you cannot verify this without using
reaction terms.
EXTRUDING LAYERS
A PCB layout file holds information about all traces in several 2D drawings or layers.
During import, each 2D layer is extruded to a 3D object so that all traces get a valid
thickness. An standard extrude operation requires that the source plane is identical to
the destination plane. This makes it impossible to extrude an entire PCB with several
layers, where the source and destination planes in almost all cases simply do not match.
It is possible to do several extrude operations, one for each layer, and there is an option
to do so. For complex PCBs it is not trivial to put these layers together, and it might
therefore take a very long time to go from the geometry node to the Material node or
a Physics node in the model tree. In some situations this operation might fail.
As a result of these performance issues, the ECAD Import has its own extrude
operation that automatically connects nonmatching planes. In one operation this
functionality extrudes and connects all layers, so there is only one geometry object
after the import. With only one object, it is trivial to switch to the physics modes. You
use this special extrude operation when you use the grouping option All.
The special extrude operation is bound to certain rules that the 2D layout must fulfill.
If the 2D layout does not comply with these rules, the operation might fail. You can
then switch to one of the other grouping options to import the geometry into
COMSOL Multiphysics.
• A single XML file containing all information organized in a hierarchy of XML tags.
This file format is usually referred to as ODB++(X), and it is the only format that
you currently can import into COMSOL Multiphysics.
• A directory structure with several files, each containing parts of information about
the PCB. An entire PCB layout is often distributed as zipped or unzipped tar
archives. This version is currently not possible to import into COMSOL
Multiphysics.
The ODB++ import reads the layer list and the first step in the file. Multiple step files
are not yet supported. From the first step it reads all the layer features and the board
outline but currently skips all the package information.
FILE INFORMATION
The GDS-II file format is commonly used for mask layout production used in the
manufacturing process of semiconductor devices and MEMS devices. The file is a
binary file, containing information about drawing units, geometry objects, and object
drawing hierarchy. The drawing hierarchy is made up of a library of cell definitions,
where each cell can be instantiated (drawn several times) with scaling, translation,
mirroring, and rotation. It is also possible to repeat a cell as an array of drawn objects.
This is very useful for mask layouts of integrated circuits, which often consist of
File Extension
The file extension of the GDS-II format is usually .gds, and the ECAD import
requires it to be so, otherwise it cannot identify the file as a GDS-II file. If the file has
a different extension, you must changed it to .gds before importing the file.
Supported Features
There are several record types in a GDS file that are of no interest in a geometry
import, and these are ignored. There are also a few record types that actually could be
imported as a geometry object, but are also ignored. One such example is the Text
record, which produce a lot of mesh elements and is usually of no interest in a
simulation. Below is a list of the supported record types.
• One layer represents one position in height, so if the file contains two GDS layers
that define two objects on the same height, the ECAD import still positions the
layers with one layer on top of the other. Several GDS layers on the same height is
common for semiconductor layouts, where the fabrication process includes
deposition followed by etching and then redepositing of a different layer. Such
advanced process schemes cannot be automatically handled correctly by the ECAD
import.
• With the grouping option All, objects on adjacent layers must not cross each other,
because the original edge of the objects must be kept unchanged when two adjacent
The best way to solve any of these issues is to do the import with the grouping option
By layer, and manually rearrange the layers by simple move operations so the elevation
of the layers are correct. You can do etching by removing a layer from other objects,
using the Difference button on the main toolbar or the Difference feature from the
Boolean Operations submenu on the Geometry node’s context menu.
FILE INFORMATION
The NETEX-G file format is a special format produced by the application NETEX-G
by Artwork (www.artwork.com). NETEX-G can read Gerber and drill files that almost
any ECAD software can export to because those formats are used when sending the
layout to manufacturing. The output file is an ASCII file with a GDS-like structure,
containing information about the layout of each layer, the layer thickness, vias, and
dielectric layers. The geometry objects are defined and instantiated in the same way as
in a GDS file; see the corresponding section in Importing GDS-II Files for a more
detailed description.
File Extension
The file extension of the NETEX-G format is not set, but the ECAD import requires
it to be .asc, otherwise it cannot identify the file as a NETEX-G file. If the file has a
different extension, you have to change it before importing it. Throughout the rest of
this chapter, files of this type are referred to as a Netex file.
USING NETEX-G
This section contains a brief description of the main steps to produce a Netex file for
import into COMSOL Multiphysics. For specific details on how to use NETEX-G, the
user is referred to the NETEX-G manual.
• Defining a region to include in the export. This region is drawn directly on a top
view of the layout.
• Exclude entire layers from the layout.
• Selecting electrical nets to include in the export in addition to the selected region.
• It is also possible to let NETEX-G include nets in the proximity of the selected nets.
Because the Gerber layer files do not contain any physical information about the layer
and dielectrics, you also need to specify this information in NETEX-G.
Some of these steps can also be done during import to COMSOL Multiphysics, for
example, excluding layers from the import and changing thickness of the layers.
Drill Files
The connectivity between the layers is defined through drilled holes, known as vias. A
via can go through the entire circuit board or just between certain layers. Most ECAD
programs use the Excellon drill file format to specify the vias, which contains
information about via diameter and position. Before generating the final output file
from NETEX-G, it is necessary to convert all drill files to Gerber format and include
them to the export project in NETEX-G. For each drill file, it is also necessary to
specify between which layers the hole goes. Within NETEX-G you can call a tool that
directly converts the Excellon drill format into Gerber. After the conversion you also
specify the source and destination layers for the drill file.
Types of Wirebonds
The ECAD import can model the wirebond at three different complexity levels:
• As geometrical edges. This is the simplest form, which works well when the current
in the wires is known.
• As solids with a square-shaped cross section. This cross section often produces fewer
mesh elements than when using a circular cross section and is also easier for the
geometry engine to analyze.
• As solids with a circular cross section.
Wirebonds Models
The Netex file format supports wirebonds models according to the JEDEC standard.
It is possible to define the wirebond as a JEDEC3 or a JEDEC4 model. These models
define the bond wire as 3- or 4-segment paths with user-supplied coordinates and
elevations. In a Netex file the bond wire goes from a layer to a special die layer,
representing the semiconductor die.
Note: Wirebonds are currently not supported with the grouping option set to All.
Using this option ignores all wirebonds.
ECAD IMPORT
Most PCB layout files mainly contain definitions of 2D objects. The Netex file also
contains information about wirebonds. The ECAD import engine first creates the 2D
objects for each layer, possibly grouped as one object. Then it extrudes all the objects
in each layer according to the information in the file. GDS files contain no information
about thickness, so a default value of 100 µm is used for all layers. The ECAD Import
allows you to change the layer thickness prior to import. Another alternative is to first
import the objects into 2D and then manually extrude them to 3D.
For GDS and NETEX-G files you can enter a net name in the Net to import (blank
means top net) edit field if you want to import a single electrical net beneath the top
net in the hierarchy. Leave this edit field empty to import the top net (top cell). (In
GDS files, the standard terminology is cell instead of net, but structurally they mean
the same thing.)
The Grouping of geometries list specifies how the imported geometry objects are
grouped in the final geometry. The choices for 3D import are:
• All. Groups all objects into one single object. This selection makes use of a more
efficient extrude algorithm that extrudes and combines all layers directly. Because
the import results in only one geometry object, COMSOL Multiphysics does not
need to do a complicated analysis of several geometry objects.
• By layer. Groups all objects in one layer into one geometry object. The final
geometry contains one object for each layer.
• No grouping. No grouping of objects is performed. This can be useful for debugging
purposes when the other choices fail for some reason. This selection returns all the
primitive objects found in the file, so objects with negative polarity are not drawn
correctly.
The Type of import list specifies how to treat metal layers. The Full 3D option imports
all metal layers with a thickness. Select the Metal shell options if you want to import all
metal layers as an embedded boundary between dielectric regions.
• Edges. The path of the bond wire is represented only as a geometrical edge. This
option has the least complexity and does not produce a large number of mesh
elements. There might be some limitations when using these edges in modeling.
• Blocks. The bond wire is modeled as a solid with a square cross section.
• Cylinders. Same as above but with a circular cross section.
The layer information from the file appears in the Layers to import table. In addition
to the layer Name, the table includes the following columns:
• The Type column. This column declares the type of layer. The import treats layers
of different types differently. For example, a layer of type Metal converts to faces if
the option Type of import is set to Metal shell. The Outline type uses a union of the
objects in the selected layer as a PCB outline. For ODB++ files, the Drill type means
that the objects in the layer define drilled via holes through the PCB. For NETEX-G
files, the vias are defined within each metal and dielectric layer.
• The numbers in the Thickness column can be changed. This column is especially
important when importing GDS files because that format does not contain any
thickness information, so all layers get a default thickness that you probably want to
change.
• The Import column. Here you can clear the check box for layers that you do not
want to import. Note that if you use the Metal shells import type, you cannot import
isolated boundaries if the import also includes another solid layer. Then you must
perform two imports. The only exception to this rule is when the import results in
only face objects.
In most electromagnetic simulations the material between the metal layers is important
for the simulation result. For NETEX-G/GDS import, the Import dielectric regions
check box controls if the import engine also includes the dielectric layers, which in
most cases are the actual PCB materials. An ODB++ file usually has the outline of the
PCB board defined in the file. If you import a NETEX-G file or a GDS file, it is
possible to define the PCB outline using left, right, top, and bottom margins for the
dielectric material. They define the distance between the exterior of the PCB and the
bounding box of all metal layers.
With the Keep interior boundaries check box cleared, the import removes all interior
boundaries of the imported nets. This keeps the geometry complexity to a minimum
and can also make the import more robust in some situations.
For NETEX-G/GDS import, other options that can significantly reduce the
complexity of imported layouts are the recognition of arcs and straight lines. With the
Recognize arcs set to Automatic, all polygon chains that represent arcs are identified and
replaced with more efficient curve objects. With the edit fields appearing when setting
this to Manual, you can fine tune the arc recognition. The Find straight lines check box
also controls whether to convert several polygon segments that lie on a single straight
line into a single straight segment. This option uses the number in the Minimum angle
between segments edit field to determine if a group of segments lies on the same
straight line.
Geometry repair is controlled via the Repair imported data check box and the Relative
repair tolerance edit field.
This procedure assumes that the top and bottom layers are metal layers. All metal layers
can often be meshed using swept meshing, but dielectric layers usually cannot be
meshed that way. You begin by meshing from the bottom or top layer, starting with a
boundary mesh. Then you mesh layer by layer, where each metal layer gets a swept
mesh, and each dielectric layer (with vias) gets a free mesh.
The dielectric layers cannot use a swept mesh because the source and target boundaries
usually do not look the same. If there is a surrounding air domain it is usually not
possible to use swept meshes for the metal layers either. You must then use
tetrahedrons or convert the swept mesh to tetrahedrons before meshing the
surrounding domain.
For more details on meshing operations, see Creating Meshes and Generating a 3D
Swept Mesh in the COMSOL Multiphysics User’s Guide and Convert in the
COMSOL Multiphysics Reference Guide. Or see Where Do I Access the
Documentation and Model Library?
TU N I N G I M P O R T S E T T I N G S
Removing Features
You can remove all features that are not important for your simulation. This is usually
best to do before the import in NETEX-G or in the ECAD software. When importing
with Grouping of geometries set to None it is possible to manually delete certain objects
after import, but it is recommended to do this only for relatively simple geometries.
The best approach to handle such problems is to perform a DRC with your ECAD
software and produce new layout files. If this is not possible, you can import the layout
in 2D and try to identify the problematic features. They can either be in a single layer
or at the interface between two adjacent layers. When identified, it is possible to
remove them manually using a text editor if you are importing a NETEX-G file or an
ODB++ file. It can be hard to find a certain feature, but you can use either the
coordinate or the net information to find it. The GDS format is a binary file format so
it is very difficult to edit the file manually.
Another possibility is to use assemblies, because then COMSOL Multiphysics does not
have to combine the objects (parts). This is controlled by the Finalize node in the
Geometry branch of the model tree. When using an assembly, you have to use identity
pairs to connect the interfaces between the layers.
As a final option, you can choose to not import the dielectric layers. The import then
leaves you with isolated metal layers that you have to connect with coupling variables.
Review of Electromagnetics
This section contains an overview of the theory behind the AC/DC Module. It is
intended for readers that wish to understand what goes on in the background when
using the physics interfaces.
In this section:
• Fundamentals of Electromagnetics
• Electromagnetic Forces
• Special Calculations
• Electromagnetic Quantities
• References
51
Fundamentals of Electromagnetics
Maxwell’s Equations
The problem of electromagnetic analysis on a macroscopic level is the problem of
solving Maxwell’s equations subject to certain boundary conditions. Maxwell’s
equations are a set of equations, written in differential or integral form, stating the
relationships between the fundamental electromagnetic quantities. These quantities
are:
The equations can be formulated in differential form or integral form. The differential
form is presented here because it leads to differential equations that the finite element
method can handle. For general time-varying fields, Maxwell’s equations can be
written as
D
H = J + -------
t
------
B-
E = –
t
D =
B = 0
The first two equations are also referred to as Maxwell-Ampère’s law and Faraday’s
law, respectively. Equation three and four are two forms of Gauss’ law—the electric
and magnetic form, respectively.
J = – ------
t
Constitutive Relations
To obtain a closed system, the equations include constitutive relations that describe
the macroscopic properties of the medium. They are given as
D = 0 E + P
B = 0 H + M
J = E
Here 0 is the permittivity of vacuum, 0 is the permeability of vacuum, and the
electric conductivity. In the SI system, the permeability of vacuum is chosen to be
4·107 H/m. The velocity of an electromagnetic wave in vacuum is given as c0 and
the permittivity of vacuum is derived from the relation
1 – 12 1 –9
0 = ----------
2
= 8.854 10 F/m --------- 10 F/m
c0 0 36
The electric polarization vector P describes how the material is polarized when an
electric field E is present. It can be interpreted as the volume density of electric dipole
moments. P is generally a function of E. Some materials can have a nonzero P also
when there is no electric field present.
The magnetization vector M similarly describes how the material is magnetized when
a magnetic field H is present. It can be interpreted as the volume density of magnetic
dipole moments. M is generally a function of H. Permanent magnets, for instance,
have a nonzero M also when there is no magnetic field present.
For linear materials, the polarization is directly proportional to the electric field,
P0 e E , where e is the electric susceptibility. Similarly in linear materials, the
magnetization is directly proportional to the magnetic field, Mm H , where m is
the magnetic susceptibility. For such materials, the constitutive relations can be
written
D = 0 1 + e E = 0 r E = E
B = 0 1 + m H = 0 r H = H
FUNDAMENTALS OF ELECTROMAGNETICS | 53
The parameter r is the relative permittivity, and r is the relative permeability of the
material. These are usually scalar properties but they can, for a general anisotropic
material, be 3-by-3 tensors. The properties and (without subscripts) are the
permittivity and permeability of the material.
Note: Also see the Charge Conservation feature described for the Electrostatics
interface (under the Electric Field section), which also describes the macroscopic
properties of the medium (relating the electric displacement D with the electric field
E) and the applicable material properties.
Generalized forms of the constitutive relations are well suited for modeling nonlinear
materials. The relation used for the electric fields is
D = 0 r E + Dr
The field Dr is the remanent displacement, which is the displacement when no electric
field is present.
Similarly, a generalized form of the constitutive relation for the magnetic field is
B = 0 r H + Br
where Br is the remanent magnetic flux density, which is the magnetic flux density
when no magnetic field is present.
For some materials, there is a nonlinear relationship between B and H such that
B = f H
J = E + J e
B = A
A
E = – V – -------
t
The defining equation for the magnetic vector potential is a direct consequence of the
the magnetic Gauss’ law. The electric potential results from Faraday’s law.
In the magnetostatic case where there are no currents present, Maxwell-Ampère’s law
reduces to H0. When this holds, it is also possible to define a magnetic scalar
potential by the relation
H = – V m
–1 dD
A = J +
dt
DOMAIN EQUATIONS
Time-Harmonic
For time-harmonic quasi-static systems solving for an A formulation, the reduced
potential formulation results in the following PDE:
2 –1
j – A ext + A red + A ext + A red = J e
Transient
Similarly to the time-harmonic formulation, in the transient formulation, the above
substitution results in the reduced equation
FUNDAMENTALS OF ELECTROMAGNETICS | 55
A ext + A red + A ext + A red = J e
–1
t
Static
In static formulations, the induced current is zero. Maxwell-Ampère’s law reduces to
–1
A ext + A red = J e
In this case it is also possible to express the external field through a known external
magnetic flux density, Bext. The domain equation in reduced form then reads
–1
A red + B ext = J e
Electromagnetic Energy
The electric and magnetic energies are defined as
D T
D
We = V 0 E dD dV = V 0 E -------
t
dt dV
B T
B
Wm = V 0 H dB dV = V 0 H ------
t
- dt dV
The time derivatives of these expressions are the electric and magnetic power
D
Pe = V E -------
t
dV
B
Pm = V H ------
t
- dV
These quantities are related to the resistive and radiative energy, or energy loss,
through Poynting’s theorem (Ref. 1)
D B
– V E -------
t
+ H ------- dV = J E dV + E H n dS
t V S
where V is the computation domain and S is the closed boundary of V.
The first term on the right-hand side represents the resistive losses,
Ph = V J E dV
The second term on the right-hand side of Poynting’s theorem represents the radiative
losses,
Pr =
S E H n dS
The quantity SE × H is called the Poynting vector.
Under the assumption the material is linear and isotropic, it holds that
D E
E ------- = E ------- = --- E E
1
t t t 2
B B
H ------- = --- B ------- = ------- B B
1 1
t t t 2
By interchanging the order of differentiation and integration (justified by the fact that
the volume is constant and the assumption that the fields are continuous in time), you
get
V --2- E E + ------
- B B dV =
1 1
–
t 2 V J E dV + S E H n dS
The integrand of the left-hand side is the total electromagnetic energy density
1 1
w = w e + w m = --- E E + ------- B B
2 2
The quasi-static approximation implies that the equation of continuity can be written
as J = 0
FUNDAMENTALS OF ELECTROMAGNETICS | 57
and that the time derivative of the electric displacement Dt can be disregarded in
Maxwell-Ampère’s law.
There are also effects of the motion of the geometries. Consider a geometry moving
with velocity v relative to the reference system. The force per unit charge, Fq, is then
given by the Lorentz force equation:
F
---- = E + v B
q
This means that to an observer traveling with the geometry, the force on a charged
particle can be interpreted as caused by an electric field E'Ev×B. In a conductive
medium, the observer accordingly sees the current density
J = E + v B + Je
e
H = E + v B + J
Material Properties
Until now, there has only been a formal introduction of the constitutive relations.
These seemingly simple relations can be quite complicated at times. There are four
main groups of materials where they require some consideration. A given material can
belong to one or more of these groups. The material groups are inhomogeneous,
anisotropic, nonlinear, and dispersive.
The least complicated of the groups above is that of the inhomogeneous materials. An
inhomogeneous medium is one where the constitutive parameters vary with the space
coordinates, so that different field properties prevail at different parts of the material
structure.
For anisotropic materials, the field relations at any point are different for different
directions of propagation. This means that a 3-by-3 tensor is required to properly
define the constitutive relations. If this tensor is symmetric, the material is often
referred to as reciprocal. In these cases, the coordinate system can be rotated in such
a way that a diagonal matrix is obtained. If two of the diagonal entries are equal, the
material is uniaxially anisotropic. If none of the elements have the same value, the
Finally, dispersion describes changes in the velocity of the wave with wavelength. In
the frequency domain, dispersion is expressed by a frequency dependence in the
constitutive laws. Also see the section Materials for more information.
n2 E1 – E2 = 0
n2 D1 – D 2 = s
n2 H1 – H2 = Js
n2 B1 – B2 = 0
where s and Js denote surface charge density and surface current density,
respectively, and n2 is the outward normal from medium 2. Of these four conditions,
only two are independent. One of the first and the fourth equations, together with one
of the second and third equations, form a set of two independent conditions.
A consequence of the above is the interface condition for the current density,
s
n 2 J 1 – J 2 = – --------
t
FUNDAMENTALS OF ELECTROMAGNETICS | 59
well (as a consequence of Maxwell’s equations). What remains is the following set of
boundary conditions for time-varying fields in the dielectric medium.
–n2 E2 = 0
–n2 H2 = Js
–n2 D2 = s
–n2 B2 = 0
Phasors
Whenever a problem is time-harmonic the fields can be written in the form
ˆ
E r t = E r cos t +
Instead of using a cosine function for the time dependence, it is more convenient to
use an exponential function, by writing the field as
ˆ ˆ j jt ˜ jt
E r t = E r cos t + = Re E r e e = Re E r e
˜
The field E r is a phasor, which contains amplitude and phase information of the field
but is independent of t. One thing that makes the use of phasors suitable is that a time
derivative corresponds to a multiplication by j,
------
E- ˜ jt
= Re jE r e
t
This means that an equation for the phasor can be derived from a time-dependent
equation by replacing the time derivatives by a factor j. All time-harmonic equations
in the AC/DC Module are expressed as equations for the phasors. (The tilde is
dropped from the variable denoting the phasor.)
The derivation of the expressions for the electromagnetic stress tensor utilizes
thermodynamic potential (energy) principles (Ref. 1 and Ref. 3). The distribution of
electromagnetic forces in a system depends on the material. Accordingly, the
techniques and expressions used when computing electromagnetic forces are different
for different types of materials.
Another technique for calculating forces using the method of virtual work is described
in the section Electromagnetic Energy and Virtual Work.
The modeling of torque and forces with the AC/DC Module is described in the
section Force and Torque Computations.
2
d r
2
= T + f ext
dt
where is the density, r denotes the coordinates of a material point, Tis the stress
tensor, and fext is an external volume force such as gravity (fextg). This is the
equation solved in the structural mechanics physics interfaces for the special case of a
linear elastic material, neglecting the electromagnetic contributions.
In the stationary case there is no acceleration, and the equation representing the force
balance is
0 = T + f ext
The stress tensor must be continuous across a stationary boundary between two
materials. This corresponds to the equation n 1 T 2 – T 1 = 0
ELECTROMAGNETIC FORCES | 61
where T1 and T2 represent the stress tensor in Materials 1 and 2, respectively, and n1
is the normal pointing out from the domain containing Material 1. This relation gives
rise to a surface force acting on the boundary between Material 1 and 2.
Material 2
Material 1
n1
In certain cases, the stress tensor T can be divided into one part that depends on the
electromagnetic field quantities and one part that is the mechanical stress tensor,
T = T EM + M
For the special case of an elastic body, the mechanical stress tensor is proportional only
to the strain and the temperature gradient. The exact nature of this split of the stress
tensor into an electromagnetic and a mechanical part depends on the property group,
if it can be made at all. For more information on the mechanical stress tensor for elastic
materials, see the documentation on the physics interfaces for structural mechanics, for
example, The Solid Mechanics Interface in the COMSOL Multiphysics User’s Guide,
or see Where Do I Access the Documentation and Model Library?
It is sometimes convenient to use a volume force instead of the stress tensor. This force
is obtained from the relation
f em = T EM
0 = M + f em + f ext
– M = f where f = f em + f ext
In practice, the equation for the force balance also needs to include an external
boundary force gext. It is nonzero on those parts of the boundary where it is necessary
to compensate for the contributions to the stress tensor that you are not interested in
or do not have enough information on. These contributions come from the influence
of the adjacent domains. By approximating the surroundings by vacuum or air, the
influence of these boundaries and their adjacent domains (that are not part of our
model) on the electromagnetic fields are neglected.
˜
n1 T2 – T1 = 0
˜
n 1 T 2 = n 1 T 2 + g ext
The external boundary force gext can represent the reaction force from another body
that the solid is attached to.
The equations for the balance of forces on the solid now become
T 1 + f ext = 0
n 1 T 2 – T 1 + g ext = 0
For computing the total force F on the solid these equations need to be integrated
over the entire solid and the solid/vacuum boundary
T1 + fext dV + n1 T2 – T1 + gext dS = 0
1 1
T1 dV – n1 T1 dS = 0
1 1
ELECTROMAGNETIC FORCES | 63
F ext = fext dV + gext dS
1 1
is needed to balance the term for the boundary integral of the stress tensor in the
surrounding vacuum
F = n1 T2 dS
1
F ext + F = 0
If the external forces are suddenly removed, the solid is no longer stationary, but F
causes the solid to begin to move with an initial acceleration according to
2
d r
ma = ---------
dt
2
dV = F
1
Torque
The torque in the case of the previous section is given by
MO =
r – rO n1 T2 dS
1
where rO is a point on the axis of rotation. This follows from a derivation similar to
the one made for forces.
B
= 0
t
D
= 0
t
that is, if the fields vary so slowly that you can neglect the contributions from induced
currents and displacement currents.
v = 0
so that there is no contributions from Lorentz forces. These are treated later on.
T H E E L E C T R O M A G N E T I C S T RE S S TE N S O R
The expressions for the stress tensor in a general electromagnetic context stems from
a fusion of material theory, thermodynamics, continuum mechanics, and
electromagnetic field theory. With the introduction of thermodynamic potentials for
mechanical, thermal, and electromagnetic effects, explicit expressions for the stress
tensor can be derived in a convenient way by forming the formal derivatives with
respect to the different physical fields (Ref. 1 and Ref. 3). Alternative derivations can
be made for vacuum (Ref. 4) but these cannot easily be generalized to polarized and
magnetized materials.
0
T 2 = – pI – ----- E E + --------- B B I + 0 EE + ------ BB
1 T 1 T
2 2 0 0
where p is the air pressure, I is the identity 3-by-3 tensor (or matrix), and E and B are
3-by-1 vectors. In this expression of the stress tensor, air is considered to be
nonpolarizable and nonmagnetizable. When air is approximated by vacuum, p = 0.
This expression, with p = 0, of the stress tensor is also known as the Maxwell stress
tensor.
Using the fact that, for air, D = 0E and B =0H the expression for the stress tensor
can be written as
ELECTROMAGNETIC FORCES | 65
T 2 = – pI – --- E D + --- H B I + ED + HB
1 1 T T
2 2
Maxwell’s equations in free space give that the contribution of the electromagnetic
part of the stress tensor is zero, and the resulting expression is
0 = – p + f ext
Thus, using the same terminology as earlier, fem0 for air, with MpI. Note that
in the derivation of the total force on an elastic solid surrounded by vacuum or air, the
approximation p0 has been used.
When operating with the divergence operator on the stress tensor, the relation
EE – --- E EI = E E – E E
T 1
2
is useful (and similarly for B). From the right-hand side it is clear (using Maxwell’s
equations) that this is zero for stationary fields in free space.
Consider again the case of a solid surrounded by air. To compute the total force, the
projection of the stress tensor on the outside of the solid surface is needed,
where n1 is the surface normal, a 1-by-3 vector, pointing out from the solid. This
expression can be used directly in the boundary integral of the stress tensor for
computing the total force F on the solid.
See the AC/DC Module Model Library model Permanent Magnet (or see Where Do
I Access the Documentation and Model Library?) for an example of how to apply the
stress tensor in air for computing the total force and torque on a magnetizable rod
close to a permanent magnet.
The situation is slightly different from the case of air because there can be currents and
volume charges in the conductor. The current density is
1
J = H = ------ B
0
= D = 0 E
0 = M + E + J B + f ext
f em = E + J B
See the AC/DC Module Model Library model Electromagnetic Forces on Parallel
Current-Carrying Wires (or see Where Do I Access the Documentation and Model
Library?) for an example of how to compute the total force on two parallel wires either
by integrating the volume force or by integrating the stress tensor on the surrounding
surface.
0
T 1 = E B – ----- E E + --------- B B – M B I
1
2 2 0
T 1 T T T
+ 0 EE + ------ BB + EP – MB
0
where in (E, B) the dependence of E and B has not been separated out. Thus is
not a purely mechanical stress tensor in this general case. Different property groups
ELECTROMAGNETIC FORCES | 67
give different appearances of (E, B). The electromagnetic contributions to (E, B)
typically represent pyroelectric, pyromagnetic, piezoelectric, piezomagnetic, dielectric,
and magnetization effects. The expression for the stress tensor in vacuum, air, and pure
conductors can be derived from this general expression by setting MP0.
Note that T1 must be symmetric. The terms EPT and MBT are symmetric in the case
of a linear dielectric and magnetic material because
P = 0 e E
M = B B
Here, the magnetic susceptibility B differs slightly from the classical m. The other
explicit terms are all symmetric, as is (E, B). In the general case this imposes
constraints on the properties of (E, B). For a nonlinear material (E, B) might need
to include terms such as EPT or +MBT to compensate for asymmetric EPT or
MBT.
To instantiate the stress tensor for the general elastic case you need an explicit property
group including the magnetization and polarization effects. Such property groups can
easily be found for piezoelectric materials (Ref. 3).
F I E L D TR A N S F O R M A T I O N S A N D G A L I L E I I NVA R I A N T S
Assume that the object modeled is moving with a constant velocity,
v = v0
The equations now take on a slightly different form that includes the Galilei invariant
versions of the electromagnetic fields. The term Galilei invariant is used due to the fact
that they remain unchanged after a coordinate transformation of the type
r' = r + v0 t
˜
E = E+vB (Electromotive intensity)
˜
J = J – v (Free conduction current density)
˜ ------
P-
P = + v P – v P (Polarization flux derivative)
t
˜
M = M + v P (Lorentz magnetization)
˜ B ˜
H = ------ – 0 v E – M (Magnetomotive intensity)
0
T 2 = – pI – --- E D + --- H B I + ED + HB + D B v
1 1 T T T
2 2
Notice that there is an additional term in this expression compared to the stationary
case.
To get the equation for the balance of forces you need to compute the divergence of
this expression. Doing this requires an introduction of an extra term in Cauchy’s
equation corresponding to an additional electromagnetic contribution to the linear
momentum. Cauchy’s equation with this extra term reads
ELECTROMAGNETIC FORCES | 69
2
d r
2
+ D B = T + f ext
dt
The extra term is canceled out by the additional term in the stress tensor, and the final
result is
2
d r ˜ ˜
2
= M + E + J B + f ext
dt
For the case of no acceleration, with the explicit appearance of the transformed
quantities,
0 = M + E + v B + J – v B + f ext
The terms containing v × B cancel out, which yields the following equation:
0 = M + E + J B + f ext
˜ 0 ˜
T 1 = E B – ----- E E + --------- B B – M B I +
1
2 2 0
T 1 T ˜ T ˜ T T
+ 0 EE + ------ BB + E P – M B + 0 E B v
0
Notice that the magnetization M and the polarization P occur explicitly in this
expression.
To instantiate the stress tensor for the general elastic case you need a property group
explicitly including the magnetization and polarization effects as mentioned earlier in
this section.
M A G N E T I C F O R C E A N D TO R Q U E
The method of virtual work utilizes the fact that under constant magnetic flux
conditions (Ref. 5), the total magnetic force on a system is computed as
F = – W m
W m
T = –
Under the condition of constant currents, the total force and torque are computed in
the same way but with opposite signs,
F I = W m
W m
TI =
E L E C T R I C F O R C E A N D TO R Q U E
Under the condition of constant charges, the total electric force and torque on a
system are computed as
F Q = – W e
W e
TQ = –
Under the condition of constant potentials, the total electric force and torque on a
system are computed as
F V = W e
W e
TV =
The method of virtual work can be employed by using the features for deformed mesh
and sensitivity analysis in COMSOL Multiphysics, for more details see Deformed
Meshes and Sensitivity Analysis in the COMSOL Multiphysics User’s Guide.
ELECTROMAGNETIC FORCES | 71
Special Calculations
Mapped Infinite Elements
In general, infinite elements are used at outer boundaries to model open boundaries,
extending toward infinity. With proper settings infinite elements techniques enable
termination of the simulations volume closer to the active regions (regions with
sources), drastically reducing the amount of degrees of freedoms.
There are several different types of infinite elements, and the one used in the AC/DC
Module is taken from Ref. 6. This technique is usually referred to as mapped infinite
elements in the literature because it uses coordinate mapping of a region so its outer
boundary is located at infinity. The principle can be explained in a one-coordinate
system, where this coordinate represents Cartesian, cylindrical, or spherical
coordinates. Mapping multiple coordinate directions (for Cartesian and cylindrical
systems only) is just the sum of the individual coordinate mappings.
r0 t’
tp w
unscaled region unscaled region scaled region
Figure 3-1: The coordinate transform used for the mapped infinite element technique. The
meaning of the different variables are explained in the text.
Figure 3-1 shows a simple view of an arbitrary coordinate system. The coordinate r is
the unscaled coordinate that COMSOL Multiphysics draw the geometry in (reference
system). The position r0 is the new origin from where the coordinates are scaled, tp is
the coordinate from this new origin to the beginning of the scaled region also called
the pole distance, and w is the unscaled length of the scaled region. The scaled
coordinate, t’, approaches infinity when t approaches tpw. To avoid solver issues
with near infinite values, it is possible to change the infinite physical width of the scaled
region to a finite large value, pw. The true coordinate that the PDEs are formulated
in is given by
r' = r 0 + t
w
t' = t p ---------------------------------
p – t – tp
tp
= 1 – ---------------------
pw – t p
–1
S = G ref E – Z ref Y E + Z ref Y
–1
G ref ,
–1 Im Z Im Y
Z = Y , L = ----------------- , C = ----------------- ,
R = Re Z , G = Re Y
1 0 0 0
E = 0 1 0 0
0 0 1 0
0 0 0 1
Z ref = E Z 0
1
G ref = E ------------------------------
2 Re Z 0
SPECIAL CALCULATIONS | 73
Electromagnetic Quantities
Table 3-1 shows the symbol and SI unit for most of the physical quantities in the
AC/DC Module. The default values for the permittivity of vacuum,
0 = 8.854187817·1012 F/m, and for the permeability of vacuum,
0 = 4·107 H/m, require that you provide all other quantities in SI units and that
meter is used for the length scale of the geometry. If the geometry is drawn using
another length scale, it is necessary to change the numerical values for the physical
quantities accordingly. For example, if you draw the geometry using m as the length
scale, you need to have 0 = 8.854187817·1018 F/m and 0 = 4·1013 H/m.
TABLE 3-1: ELECTROMAGNETIC QUANTITIES
ELECTROMAGNETIC QUANTITIES | 75
References
1. A. Kovetz, The Principles of Electromagnetic Theory, Cambridge University Press,
1990.
4. R.K. Wangsness, Electromagnetic Fields, John Wiley & Sons, 1986, 2nd edition.
This section summarizes the functionality of the electric field interfaces. The AC/
DC Module enhances the Electrostatics and Electric Currents interfaces included
with the basic COMSOL Multiphysics license. Also refer to the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library? for detailed information about selecting geometric entities (domains,
boundaries, edges, and points).
In this section:
77
The Electrostatics Interface
The Electrostatics interface ( ) has the equations, boundary conditions, and space
charges for modeling electrostatic fields, solving for the electric potential.
For an introduction to the physics and equations implemented by this interface, see
the Theory for the Electrostatics Interface.
Charge Conservation is the main feature, which adds the equation for the electric
potential and has a Settings window for defining the constitutive relation and its
associated properties such as the relative permittivity.
When you add this interface, these default nodes are also added to the Model Builder—
Charge Conservation, Zero Charge (default boundary condition), and Initial Values.
Right-click the Electrostatics node to add other features that implement, for example,
boundary conditions and space charges.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier field.
The default identifier (for the first interface in the model) is es.
DOMAINS
Select the domains where you want to define the electric potential and the equations
that describe the potential field for dielectrics. The default setting is to include all
domains in the model.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
each model is constructed. Select options as required and see Physics Interface
Nodes—Equation Section in the COMSOL Multiphysics User’s Guide or Where Do
I Access the Documentation and Model Library? for more information.
PO R T SWEEP SETTINGS
Select the Activate port sweep check box to switch on the port sweep and invoke a
parametric sweep over the ports/terminals. Enter a Port parameter name to assign a
specific name to the variable that controls the port or terminal number solved for
during the sweep. The generated lumped parameters are in the form of capacitance
matrix elements. The port/terminal settings must consistently be of either fixed
voltage or fixed charge type. See Lumped Parameters for more information.
ADVANCED SETTINGS
To display this section on a physics interface Settings window, select Show More Options
from the View menu in the Model Builder. Normally these settings do not need to be
changed. See Show More Options: Advanced Settings in the COMSOL Multiphysics
User’s Guide or Where Do I Access the Documentation and Model Library?.
DISCRETIZATION
To display this section on a physics interface Settings window, select Show More Options
from the View menu in the Model Builder. Select an Electric potential—Quadratic (the
default), Linear, Cubic, or Quartic.
DOMAINS
Select the domains where you want to define the electric potential and the equation
based on Gauss’ law that describes the potential field.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty.
ELECTRIC FIELD
Select a Constitutive relation to describe the macroscopic properties of the medium
(relating the electric displacement D with the electric field E) and the applicable
material properties, such as the relative permittivity. Select:
DOMAINS
Select the domains where you want to define a current source.
Force Calculation
The Force Calculation node allows you to select a set of domains to calculate a resultant
force.
DOMAINS
Select the domains where you want to define a force calculation.
FORCE CALCULATION
Enter a Force name, which is then available as a global variable. The method used is
integration of the Maxwell’s stress tensor over the exterior surfaces of the set of
domains. This feature also gives access to the normal component of the Maxwell Stress
tensor on the external surfaces. (For the Magnetic and Electric Fields interface, the force
calculation includes both electric and magnetic forces).
Enter coordinates for the Torque axis rax and Torque rotation point r0. A torque
calculation about a given point (Torque rotation point) is made, and the resulting
torque component parallel to the given Torque axis is given as a global variable,
typically es.tax_<force name>.
Infinite Elements
The Infinite Elements node imposes a coordinate transformation to the selected domain
that effectively moves one or more sides of the domain to infinity. Infinite elements are
used for the modeling of open boundary problems. A default Charge Conservation node
or Ampere’s Law and Current Conservation node is also added.
For the Magnetic and Electric Fields interface, you can also right-click to add additional
features.
GEOMETRIC SETTINGS
Select the Type of infinite element scaling to use— Cartesian, Cylindrical, Spherical, or
General. The options available depend on the spatial dimensions modeled.
• If Spherical is selected, enter values for the Center coordinate r0 (SI unit: m).
• If Cylindrical is selected, enter values for the Center coordinate r0 (SI unit: m) and
Center axis direction raxis.
PARAMETERS
Select Show More Options from the View menu in the Model Builder to display this
section and to adjust the Physical width and Pole distance parameters, which affect the
coordinate transformation. Both use default values that should work well for most
cases.
The Physical width parameter sets the modeled width of the infinite element region,
which typically is a large value. The default value is 1e3*es.dGeomChar, where
es.dGeomChar (the interface identifier es might vary) is the characteristic distance for
the geometry. The parameter Pole distance is a tuning parameter that controls the
nature of the coordinate transform. The default value is 5*es.avgDelta, where
es.avgDelta (or ec.avgDelta) is the average thickness.
Initial Values
The Initial Values node adds an initial value for the electric potential V that can serve
as an initial condition for a transient simulation or as an initial guess for a nonlinear
solver.
DOMAINS
Select the domains where you want to define an initial value.
INITIAL VALUES
Enter a value or expression for the initial value of the Electric potential V. The default
value is 0 V.
Exterior Boundaries
The following exterior boundary conditions are available:
• Ground—also available from the Edges (3D) and Points (2D and 3D) submenus
• Electric Potential—also available from the Edges (3D) and Points (2D and 3D)
menus
• Surface Charge Density
• Dielectric Shielding
• Terminal
• Distributed Capacitance
• Zero Charge - the default boundary condition
• Displacement Field
• Periodic Condition
The relevant interface condition at interfaces between different media is
n2 D1 – D2 = s
In the absence of surface charges, this condition is fulfilled by the natural boundary
condition
n 0 V – P 1 – 0 V – P 2 = – n D 1 – D 2 = 0
Interior Boundaries
In addition, the following interior boundary conditions are available:
• Ground
• Electric Potential
• Surface Charge Density
• Zero Charge
• Thin Low Permittivity Gap
• Dielectric Shielding
• Terminal
• Distributed Capacitance
Pairs
The following are available from the Pairs submenu.
• Ground
• Electric Potential
• Surface Charge Density
• Dielectric Shielding
• Terminal
• Distributed Capacitance
• Zero Charge
• Displacement Field
• Floating Potential
• Continuity
Ground
The Ground node is the default boundary condition and implements ground as the
boundary condition V = 0 .
Ground means that there is a zero potential on the boundary. This boundary condition
is also applicable at symmetry boundaries where the potential is known to be
antisymmetric with respect to the boundary.
CONSTRAINT SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Select a Constraint type—Bidirectional, symmetric or Unidirectional. If required,
select the Use weak constraints check box.
Electric Potential
The Electric Potential node provides an electric potential V0 as the boundary condition:
V = V0
Because you are solving for the electric potential in this interface, you typically define
the value of the potential at some part of the geometry. For some interfaces, add
additional features from the Edges (3D models) or Points (2D and 3D models) menus.
PAIR SELECTION
If Electric Potential is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
BOUNDARIES
Select the boundaries where you want to apply a surface charge density.
PAIR SELECTION
If Surface Charge Density is selected from the Pairs submenu, select the boundary pair
where you want to define this feature. First an identity pair may have to be created.
Dielectric Shielding
The Dielectric Shielding node provides a dielectric shielding boundary condition. It
describes a thin layer with thickness ds and a bulk relative permittivity; rs that shields
the electric field:
n D = – t 0 rs d s tV
You can use this boundary condition when approximating a thin domain with a
boundary to reduce the number of mesh elements.
BOUNDARIES OR EDGES
Select the boundaries or edges (3D models) where you want to apply a dielectric
shielding as the condition.
PAIR SELECTION
If Dielectric Shielding is selected from the Pairs submenu, select the boundary pair
where you want to define this feature. First an identity pair may have to be created.
THIN LAYER
Enter a Surface thickness ds of the shielding (SI unit: m).
Terminal
The Terminal node provides a boundary condition for connection to external circuits
or with a specified voltage or charge. By specifying zero charge, a floating potential
condition is obtained. Also see Lumped Parameters for more information.
BOUNDARIES
Select the boundaries that you want to model as terminals connected to external
circuits or an external charge or voltage.
For the Electric Currents, Shell interface, you select edges (3D) or points (2D) instead
of boundaries.
PAIR SELECTION
If Terminal is selected from the Pairs submenu, select the boundary pair where you
want to define this feature. First an identity pair may have to be created.
TE R M I N A L
Specify the terminal’s properties. To indicate which boundaries that belong to the
same terminal, enter the same name in the Terminal name field. The Terminal name
should be numeric for port sweeps to work properly.
BOUNDARIES
Select the boundaries where you want to define the floating electrode.
For the Electric Currents, Shell interface, you select edges (3D) or points (2D) instead
of boundaries.
PAIR SELECTION
If Floating Potential is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
FLOATING POTENTIAL
Specify a an optionally non zero Terminal charge Q0 (SI unit: C).
For the Magnetic and Electric Fields and Electric Currents, Shell interfaces, enter a
Terminal current I0 (SI unit: A). Specify zero current for a disconnected electrode.
Displacement Field
The Displacement Field node provides the following electric-displacement boundary
condition:
n D = n D0
BOUNDARIES
Select the boundaries where you want to use the normal component of the
displacement field as the boundary condition.
PAIR SELECTION
If Displacement Field is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
Distributed Capacitance
The Distributed Capacitance node adds a distributed capacitance boundary condition
according to the following equations for exterior boundaries (left) and interior
boundaries (right):
V ref – V V ref – V
– n D = 0 rL -------------------- n D 1 – D 2 = 0 rL --------------------
dL dL
You can use this boundary condition to model a thin sheet or film of a dielectric
material. The sheet has the relative permittivity rL and the surface thickness dL, and
it is connected to the reference potential Vref.
BOUNDARIES
Select the boundaries where you want to apply a distributed capacitance.
PAIR SELECTION
If Distributed Capacitance is selected from the Pairs submenu, select the boundary pair
where you want to define this feature. First an identity pair may have to be created.
DISTRIBUTED CAPACITANCE
Enter the values or expressions for Relative permittivity er, Surface thickness ds (SI unit:
m), and Reference potential Vref (SI unit: V). The default value for the surface thickness
is 103 m (1 mm).
Periodic Condition
The Periodic Condition node defines periodicity or antiperiodicity between two
boundaries. You can also activate periodic conditions on more than two boundaries, in
which case the Periodic Condition tries to identify two separate surfaces that can each
consist of several connected boundaries. For more complex geometries it might be
necessary to use the Destination Selection subnode. With this subnode you can
manually specify which boundaries constitute the source and destination surfaces. To
add the subnode, right-click the Periodic Condition node and select Destination
Selection.
PERIODIC CONDITION
Select a Type of periodicity—Continuity or Antiperiodicity.
Zero Charge
The Zero Charge node adds the condition that there is zero charge on the boundary:
nD = 0
This boundary condition is also applicable at symmetry boundaries where the potential
is known to be symmetric with respect to the boundary. This is the default boundary
condition at exterior boundaries. At interior boundaries, it means that no displacement
field can penetrate the boundary and that the electric potential is discontinuous across
the boundary.
BOUNDARIES
Select the boundaries where you want to apply a zero charge condition.
PAIR SELECTION
If Zero Charge is selected from the Pairs submenu, select the boundary pair where you
want to define this feature. First an identity pair may have to be created.
0 rL
n D 1 = -------------- V 1 – V 2
dL
0 rL
n D 2 = -------------- V 2 – V 1
dL
The default is to take the Relative permittivity (er) values From material. Select User
defined to enter a different value or expression.
Continuity
The Continuity node provides continuity in the field variables across a boundary
between parts in an assembly where you have created a pair. Also see Defining an
Identity Pair in the COMSOL Multiphysics User’s Guide or Where Do I Access the
Documentation and Model Library?
BOUNDARIES
Select individual boundaries in an existing identity pair. This pair first has to be created.
PAIR SELECTION
When Continuity is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
Line Charge
In 3D specify line charges along the edges of a geometry. To add this feature,
right-click the Electrostatics node and select Edges>Line Charge.
EDGES
Select the edges where you want to add a line charge.
LINE CHARGE
Enter a value or expression to apply a Line charge Qj (SI unit: C/m) to edges. This
source represents electric charge per unit length.
Point Charge
It is possible to add point charges to both 2D and 3D models. To add this feature,
right-click the Electrostatics node and select Points>Point Charge.
POINTS
Select the points where you want to add an electrostatic point dipole.
DIPOLE SPECIFICATION
Select a Dipole specification—Magnitude and direction or Dipole moment.
SETTINGS
If Magnitude and direction is selected under Dipole Specification, enter coordinates for
the Electric dipole moment direction np and the Electric dipole moment, magnitude p
(SI unit: Cm).
If Dipole moment is selected under Dipole Specification, enter coordinates for the Electric
dipole moment p (SI unit: Cm).
For a more extensive introduction to the physics and equations implemented by this
interface, see the Theory for the Electric Currents Interface.
When you add this interface, these default nodes are also added to the Model Builder—
Current Conservation, Electric Insulation (the default boundary condition), and Initial
Values. Right-click the Electric Currents node to add other features that implement, for
example, boundary conditions and current sources.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier edit
field.
The default identifier (for the first interface in the model) is ec.
DOMAINS
Select the domains where you want to define the electric potential and the equations
that describe the potential field for conductive media. The default setting is to include
all domains in the model.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
each model is constructed. Select options as required and see Physics Interface
Nodes—Equation Section in the COMSOL Multiphysics User’s Guide or Where Do
I Access the Documentation and Model Library? for more information.
The lumped parameters are subject to Touchstone file export. Enter a file path or Browse
for a file. See Lumped Parameters for more information.
DEPENDENT VARIABLES
The dependent variable (field variable) is for the Electric potential V. You can change
the name in the corresponding edit field, but the names of fields and dependent
variables must be unique within a model.
DISCRETIZATION
To display this section on a physics interface Settings window, select Show More Options
from the View menu in the Model Builder. Select an Electric potential—Quadratic (the
default), Linear, Cubic, or Quartic.
Current Conservation
The Current Conservation node adds the appropriate current conservation law and has
the following sections for defining the related material properties.
DOMAINS
Select the domains where you want to define the electric potential and the continuity
equation that describes the potential field.
For the Electric Currents, Shell interface, select boundaries instead of domains.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty. If you add a linear
temperature relation for the conductivity, you can then define the source for the
temperature T. From the Temperature list, select an existing temperature variable (from
another physics interface) if available, or select User defined to define a value or
expression for the temperature (SI unit: K) in the edit field that appears underneath
the list.
MATERIALS
This section is available when the Porous media and mixtures check box is selected on
the Electric Currents Settings window (see Physical Model).
CONDUCTION CURRENT
By default, the Electric conductivity (SI unit: S/m) for the media is defined From
material.
1
= -----------------------------------------------
0 1 + T – T0
The default Reference temperature Tref (SI unit: K), Resistivity temperature coefficient
(SI unit: 1/K), and Reference resistivity 0 (SI unit: m) are taken From material,
which means that the values are taken from the boundary material.
To specify other values for any of these properties, select User defined from the
corresponding list and then enter a value or expression. T is the current temperature,
which can be a value that you specify as a model input or the temperature from a heat
transfer interface. The definition of the temperature field appears in the Model Inputs
section.
Effective Conductivity
When the Porous media and mixtures check box is selected on the Electric Currents
Settings window (see Physical Model) and Material 1 and Material 2 are defined (see
Materials), this section enables you to define the electric conductivities for the two
materials and the effective conductivity for the mixture. Also see Effective
Conductivity in Porous Media and Mixtures for more information.
If User defined is selected, enter another value or expression for Material 1 (or Material
2) conductivity 1 (or 2). Select Isotropic to define a scalar value or Diagonal,
Symmetric, or Anisotropic to define a tensor value.
ELECTRIC FIELD
See the settings for Electric Field under Charge Conservation for the Electrostatics
interface.
The default Relative permittivity for Material 1 and Material 2 uses values From material
and is defined based on settings made in the Materials section.
If User defined is selected, enter another value or expression for Material 1 (or Material
2) relative permittivity 1 (or 2). Select Isotropic to define a scalar value or Diagonal,
Symmetric, or Anisotropic to define a tensor value.
Archie’s Law
The Archie’s Law feature adds a current conservation node specially tailored for the
conduction of electric currents in saturated (or variably saturated) porous media. It has
the following sections for defining the related material properties. See Archie’s Law
Theory for more information.
DOMAINS
Select the domains where you want to define Archie’s law.
CONDUCTION CURRENTS
By default, the Electric conductivity L(SI unit: S/m) for the fluid is defined From
material.
If User defined is selected, enter a value or expression. If you want to use another type
of temperature dependence than a linear temperature relation, enter any expression for
the conductivity as a function of temperature.
Enter a Porosity pto set up the volume fraction of the fluid. Enter other Archie’s law
parameters as required: Cementation exponent (m), Saturation exponent (n), and Fluid
saturation (SL). All are unitless numbers and the defaults are 0.
ELECTRIC FIELD
You set up the permittivity of the saturated porous media. See the settings for Electric
Field under Charge Conservation for the Electrostatics interface.
J = E + J e
DOMAINS
Select the domains where you want to define an external current density.
For the Electric Currents, Shell interface, select boundaries instead of domains.
Current Source
The Current Source node adds a distributed current source Qj (SI unit: A/m3) in the
equation that the Electric Currents interface defines. Use this feature with caution as
it may violate the current conservation law that is inherent in Maxwell-Ampère’s law.
DOMAINS
Select the domains where you want to define a current source.
For the Electric Currents, Shell interface, select boundaries instead of domains.
CURRENT SOURCE
Enter a value or expression for the Current source Qj (SI unit: A/m3).
Force Calculation
See Force Calculation as described for the Electrostatics interface.
Infinite Elements
See Infinite Elementsas described for the Electrostatics interface.
Initial Values
The Initial Values node adds an initial value for the electric potential that can serve as
an initial condition for a transient simulation or as an initial guess for a nonlinear solver.
If you need to specify more than one set of initial values, you can add additional Initial
Values features.
DOMAINS
Select the domains where you want to define an initial value.
IN IT IA L VA LUES
Enter a value or expression for the initial value of the Electric potential V (SI unit: V).
The default value is 0 V.
n2 J1 – J2 = 0
Exterior Boundaries
The following exterior boundary conditions are available:
• Ground—also available for Edges> (3D) and Points> (2D and 3D)
• Electric Potential—also available for Edges> (3D) and Points> (2D and 3D)
• Normal Current Density
• Distributed Impedance
• Electric Insulation—the default exterior boundary condition
• Electric Shielding
• Terminal
• Periodic Condition
Interior Boundaries
In addition, the following interior boundary conditions are available:
• Sector Symmetry
• Boundary Current Source
• Ground
• Electric Potential
• Electric Shielding
• Terminal
• Electric Insulation
• Floating Potential
• Continuity
n J1 – J2 = Q j
BOUNDARIES
Select the boundaries where you want to apply a current source.
For the Electric Currents, Shell interface, you select edges (3D) or points (2D) instead
of boundaries.
PAIR SELECTION
If Boundary Current Source is selected from the Pairs menu, select the boundary pair
where you want to define this feature. First an identity pair may have to be created.
Electric Potential
See Electric Potential as described for the Electrostatics interface in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?.
–n J = Jn
You then specify the normal current density using the inward current density Jn.
Alternatively, you can use the current density J0 to define the normal current density:
n J = n J0
The normal current density is positive when the current flows inward toward the edge.
BOUNDARIES
Select the boundaries where you want to apply a current flow as the boundary
condition using the normal current density.
For the Electric Currents, Shell interface, you select edges (3D) or points (2D) instead
of boundaries.
• If Inward current density is selected, enter a value or expression for the normal
current density Jn (SI unit: A/m2). Use a positive value for an inward current flow
or a negative value for an outward current flow.
• If Current density is selected, enter values or expressions for the components of the
current density in the J0 edit fields.
Distributed Impedance
The Distributed Impedance node adds a distributed impedance boundary condition
according to the following equation for exterior boundaries (setting J2 = 0) and
interior boundaries assuming DC currents:
L
n J 1 – J 2 = ------- V – V ref
dL
1
n J 1 – J 2 = ------- V – V ref
ZL
You can use this boundary condition to model a thin sheet of a resistive material. The
sheet has the electric conductivity L and the surface thickness dL, or a general
(resistive) layer impedance ZL and it is connected to the reference potential Vref.
For the frequency domain and time dependent study types, this boundary condition is
slightly more sophisticated and accounts also for capacitive coupling. The
corresponding equations including the bulk relative permittivity of the sheet; rL or a
general (complex) layer impedance; ZL are given below:
L + j 0 rL
n J 1 – J 2 = --------------------------------------- V – Vref
dL
1
n J 1 – J 2 = ------- V – V ref
ZL
BOUNDARIES
Select the boundaries where you want to apply a distributed impedance.
DISTRIBUTED IMPEDANCE
Enter the Reference potential Vref (SI unit: V).
Select a potentially complex valued Layer specification from the list—Surface impedance
or Thin layer.
• If Surface impedance is selected, enter values or expressions for the Surface resistance
s (SI unit: m2).
• If Thin layer is selected, enter values or expressions for Electric conductivity (SI unit:
S/m) and Surface thickness ds (SI unit: m). The default value for the surface
thickness is 103 m (1 mm).
Electric Shielding
The Electric Shielding node provides an electric shielding boundary condition. It
describes a thin layer of a highly conductive medium that shields the electric field. The
sheet has the electric conductivity s and the surface thickness d. The condition is
represented by the following equation for interior boundaries and (setting J2=0)
exterior boundaries assuming DC currents
n J 1 – J 2 = – t d s tV
For the frequency domain and time-dependent study types, also displacement currents
are accounted for via the bulk relative permittivity of the sheet; rs and the
conservation laws change to:
n J 1 – J 2 = – t d s + j 0 rs tV
n J 1 – J 2 = – t d s tV + 0 rs tV
t
For the Electric Currents, Shell interface, the equivalent Wire cross-section area is the
shell thickness d, multiplied by the layer thickness dL.
n J 1 – J 2 = – t ddL L tV + 0 rL tV
t
You can use this boundary condition when approximating a thin domain with a
boundary to reduce the number of mesh elements.
BOUNDARIES
Select the boundaries where you want to apply an electric shielding as the boundary
condition.
For the Electric Currents, Shell interface, you select edges instead of boundaries.
MODEL INPUT
Any model inputs (such as temperature for a temperature-dependent electric
conductivity) appear here.
PAIR SELECTION
If Electric Shielding is selected from the Pairs menu, select the boundary pair where you
want to define this feature. First an identity pair may have to be created.
CONDUCTION CURRENT
The default Electric conductivity of the boundary comes From material as defined on
the domain.
If User defined is selected, choose Isotropic, Diagonal, Symmetric, or Anisotropic from the
list then enter a different value or expression in the field or matrix.
Select Linearized resistivity to define the electric resistivity (and conductivity) as a linear
function of temperature. The following equation then describes the conductivity:
1
= -----------------------------------------------
0 1 + T – T0
ELECTRIC FIELD
By default, the Relative permittivity r (unitless) is taken From material. If User defined
is selected, choose Isotropic, Diagonal, Symmetric, or Anisotropic from the list then enter
a different value or expression in the field or matrix.
THIN LAYER
Enter a value or expression for the Surface thickness ds (SI unit: m).
For the Electric Currents, Shell interface, enter a value for the Wire cross-section area (SI
unit: m2).
Terminal
See Terminal as described for the Electrostatics interface in the COMSOL Multiphysics
User’s Guide or Where Do I Access the Documentation and Model Library?.
Floating Potential
See Floating Potential as described for the Electrostatics interface in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?.
Electric Insulation
Electric Insulation is the default boundary condition and this feature adds electric
insulation as the boundary condition:
nJ = 0
This boundary condition means that no electric current flows into the boundary. At
interior boundaries, it means that no current can flow through the boundary and that
the electric potential is discontinuous across the boundary. This boundary condition is
also applicable at symmetric boundaries where the potential is known to be symmetric
with respect to the boundary.
BOUNDARIES
Select the boundaries where you want to apply electric insulation.
For some interfaces, All boundaries are selected by default and can not be changed.
For the Electric Currents, Shell interface, you select edges (3D) or points (2D) instead
of boundaries.
PAIR SELECTION
If Electric Insulation is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
Periodic Condition
See Periodic Condition as described for the Electrostatics interface in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?.
Contact Resistance
Use the Contact Resistance boundary condition on interior boundaries to model a thin
layer of resistive material.
n J 1 = ------- V 1 – V 2
dL
n J 2 = ------- V 2 – V 1
dL
1
n J 1 = ------- V 1 – V 2
ZL
1
n J 2 = ------- V 2 – V 1
ZL
The layer has the thickness dL and the conductivity or a general (resistive) layer
impedance ZL. The indices 1 and 2 refer to the two sides of the boundary.
For the frequency domain and time-dependent study types, this boundary condition
is slightly more sophisticated and accounts also for capacitive coupling. The
L + j 0 rL
n J 1 = --------------------------------------- V 1 – V 2
dL
L + j 0 rL
n J 2 = --------------------------------------- V 2 – V 1
dL
1
n J 1 = ------- V 1 – V 2
ZL
1
n J 2 = ------- V 2 – V 1
ZL
n J 1 = ------- L V 1 – V 2 + 0 rL V 1 – V 2
1
dL t
n J 2 = ------- L V 2 – V 1 + 0 rL V 2 – V 1
1
dL t
BOUNDARIES
Select the boundaries where you want to apply a contact resistance.
CONTACT RESISTANCE
Enter a Thickness d (SI unit: m) for the resistive layer. The default value is 5·103 m
(5 mm).
The default Electric conductivity (SI unit: S/m) is taken From material. Select User
defined to enter a different value or expression for the electric conductivity.
Sector Symmetry
Select sector symmetry at interfaces between rotating objects where sector symmetry
is used. It is only available for pairs. Also see Defining an Identity Pair in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?.
BOUNDARIES
Select individual boundaries in an existing identity pair. This pair first has to be created.
PAIR SELECTION
When Sector Symmetry is selected from the Pairs menu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
Continuity
The Continuity feature provides continuity in the field variables across a boundary
between parts in an assembly where you have created a pair.
BOUNDARIES
Select individual boundaries in an existing identity pair. This pair first has to be created.
PAIR SELECTION
When Continuity is selected from the Pairs menu, select the boundary pair where you
want to define this feature. First an identity pair may have to be created.
EDGES
Select the edges where you want to add a current source.
PO IN TS
Select the points where you want to add a current source.
POINTS
Select the points where you want to add an electrostatic point dipole.
DIPOLE SPECIFICATION
Select a Dipole specification—Magnitude and direction or Dipole moment.
SETTINGS
If Magnitude and direction is selected under Dipole Specification, enter coordinates for
the Electric dipole moment direction np and the Electric dipole moment, magnitude p
(SI unit: A·m).
If Dipole moment is selected under Dipole Specification, enter the components of the
Electric dipole moment p (SI unit: A·m).
For a more extensive introduction to the physics and equations implemented by this
interface, see Theory for the Electric Currents, Shell Interface.
When you add this interface, these default nodes are also added to the Model Builder—
Current Conservation, Electric Insulation (the default edge or point condition), and
Initial Values. Right-click the Electric Currents node to add other features that
implement, for example, edge or point conditions and current sources.
Note: Except where described below, the majority of the Settings windows are the
same as for the Electrostatics and Electric Currents interfaces as referenced.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier field.
The default identifier (for the first interface in the model) is ecs.
BOUNDARIES
Select the boundaries (shells) where you want to define the electric potential and the
equations that describe the potential field for conductive media. The default setting is
to include all boundaries in the model.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
SURFACE THICKNESS
Define the surface thickness ds by entering a value or expression (SI unit: m) in the
Surface Thickness edit field. The default value is 1 cm.
DEPENDENT VARIABLES
The dependent variable (field variable) is for the Electric potential V. You can change
the name in the corresponding edit field, but the names of fields and dependent
variables must be unique within a model.
ADVANCED SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Normally these settings do not need to be changed. See Show More Options:
Advanced Settings in the COMSOL Multiphysics User’s Guide or Where Do I Access
the Documentation and Model Library?.
DISCRETIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Select a Electric Potential—Quadratic (the default), Linear, Cubic, or Quartic.
BOUNDARIES
Select the boundaries where you want to define an initial value.
IN IT IA L VA LUES
Enter a value or expression for the initial value of the electric potential V in the Electric
potential edit field. The default value is 0 V.
n2 J1 – J2 = 0
• Electric Potential
• Ground
• Floating Potential. One further difference is you specify an optionally non zero
current I0 in the Terminal Current field.
• Terminal
See The Electric Currents Interface for these features:
J = E
-----
-
+J = 0
t
E =
By combining these, one can deduce the following differential equation for the space
charge density in a homogeneous medium
-----
-
+ --- = 0
t
–t
t = 0 e
where
= ---
When modeling real world devices, there is not only the intrinsic time scale of charge
relaxation time but also an external time scale t at which a device is energized or the
observation time. It is the relation between the external time scale and the charge
relaxation time that determines what physics interface and study type to use. The
results are summarized in Table 4-1 below,
TABLE 4-1: SUITABLE PHYSICS INTERFACE AND STUDY TYPE FOR DIFFERENT TIME-SCALE REGIMES.
By combining the definition of the potential with Gauss’ law, you can derive the
classical Poisson’s equation. Under static conditions, the electric potential V is defined
by the equivalence
E = – V
Using this together with the constitutive relation D0EP between D and E, you
can rewrite Gauss’ law as a variant of Poisson’s equation
– 0 V – P =
This equation is used in the Electrostatics interface. It is worth noting that Gauss’ law
does not require the charge distribution to be static. Thus, provided dynamics are slow
enough that induced electric fields can be neglected and hence a scalar electric
potential is justified, the formulation can be used also in the Time Dependent study
type. That typically involves either prescribing the charge dynamics or coupling a
separate formulation for this. Such separate charge transport formulations can be
found in the Plasma Module and the Chemical Reaction Engineering Module.
e
J = E + J
where Je is an externally generated current density. The static form of the equation of
continuity then reads
e
J = – V – J = 0
e
– V – J = Q j
This equation is used in the static study type for the Electric Currents interface.
J = E + J e = – j
with the equation
D =
yields the following equation for the frequency domain study type:
e
– + j 0 V – J + jP = 0
For the time dependent study type, use the transient equation of continuity
e
J = E + J = –
t
– 0 V + P – V – J = 0
e
t
Electrostatics Equations
Under static conditions the electric potential, V, is defined by the relationship
E = – V
Combining this equation with the constitutive relationship D0EP between the
electric displacement D and the electric field E, it is possible to represent Gauss’ law
as the following equation:
– 0 V – P =
For in-plane 2D modeling, the Electrostatics interface assumes a symmetry where the
electric potential varies only in the x and y directions and is constant in the z direction.
This implies that the electric field, E, is tangential to the xy-plane. Given this
symmetry, you solve the same equation as in the 3D case. The Electrostatics interface
solves the following equation where d is the thickness in the z direction:
– d 0 V – P =
J = E + J e
where is the electric conductivity (SI unit: S/m), and Je is an externally generated
current density (SI unit: A/m2). The static form of the equation of continuity then
states
J = – V – J e = 0
– V – J e = Q j
In planar 2D the Electric Currents interface assumes that the model has a symmetry
where the electric potential varies only in the x and y directions and is constant in the
z direction. This implies that the electric field, E, is tangential to the xy-plane. The
Electric Currents interface then solves the following equation where d is the thickness
in the z direction:
– d V – J e = dQj (4-1)
There are several possible approaches to do this, starting from the values defined by
the user, composed by a volume fraction 1 of material 1, and a volume fraction
2 = 1 – 1 of material 2.
The effective conductivity is then given as input for the electric current conservation
specified in Equation 4-1, in the same way of modeling an effective (single phase)
material.
VO L U M E A VE R A G E , C O N D U C T I V I T Y
If the electric conductivities of the two materials are not so different from each other,
a simple form of averaging can be used, such as a volume average:
= 1 1 + 2 2 ,
Note that if the conductivities are defined by second order tensors (such as for
anisotropic materials), the volume average is applied element by element.
VO L U M E A VE R A G E , R E S I S T I V I T Y
A similar expression for the effective conductivity can be used, which mimics a “series”
connection of resistivities. Equivalently, the effective conductivity is obtained from
--1- = -----1- + -----2-
1 2
Note that if the conductivities are defined by second order tensors, the inverse of the
tensors are used.
= 11 22
Note that the effective conductivity calculated by Volume Average, Conductivity is the
upper bound, the effective conductivity calculated by Volume Average, Resistivity is
the lower bound, and the power law average is somewhere in between these two.
J = E + J e = – j
with the equation
D =
e
– + j 0 V – J + jP = Q j
e
J = E + J = –
t
– 0 V + P – V – J = Q j
e
(4-2)
t
In planar 2D the dynamic formulations also involves the thickness d in the z direction:
e
– d + j 0 V – J + jP = dQ j
e
– d ( 0 V + P – d V – J ) = dQ j
t
There are several ways to do this, starting from the values defined by the user,
composed by a volume fraction 1 of material 1, and a volume fraction 2 = 1 – 1 of
material 2. The effective relative permittivity r is then given as input for the electric
current conservation specified in Equation 4-2, in the same way of modeling an
effective (single phase) material.
VO L U M E A VE R A G E , PE R M I T T I V I T Y
If the relative permittivities of the two materials are not so different from each other,
a simple form of averaging can be used, such as a volume average:
r = 1 1 + 2 2 ,
Note that if the permittivities are defined by second order tensors (such as for
anisotropic materials), the volume average is applied element by element.
VO L U M E A VE R A G E , R E C I P R O C A L PE R M I T T I V I T Y
A similar expression for the effective permittivity can be used, which mimics a “series”
connection of resistivities. Equivalently, the effective conductivity is obtained from
1
---- = -----1 + -----2
r 1 2
Note that if the permittivities are defined by second order tensors, the inverse of the
tensors are used.
POWER LAW
A power law gives the following expression for the equivalent conductivity:
r = 11 22
Note that the effective permittivity calculated by Volume Average, Permittivity is the
upper bound, the effective permittivity calculated by Volume Average, Reciprocal
Permittivity is the lower bound, and the power law average gives a value somewhere in
between these two.
The porous rocks and sediments may have even lower conductivities. In variably
saturated soils, the conductivity of air is roughly ten orders of magnitude lower that
the ground water. A simple volume average (of either conductivity or resistivity) in
rocks or soils might give different results compared to experimental data.
Since most crustal rocks, sedimentary rocks, and soils are formed by non-conducting
materials, Archie (Ref. 1) assumed that electric current are mainly caused by ion fluxes
trough the pore network. Originally, Archie’s law is an empirical law for the effective
conductivity of a fully-saturated rock or soil, but it can be extended to variably
saturated porous media.
Archie’s law relates the effective conductivity to the fluid conductivity L , fluid
saturation s L and porosity p :
n m
= sL p L
Archie’s Law does not take care of the relative permittivities of either fluids or solids,
so the effective relative permittivity of the porous medium is normally consider as
r = 1 .
REFERENCE
1. G. E. Archie, “The Electric Resistivity as an Aid in Determining Some Reservoir
Characteristics,” Trans. Am. Inst. Metal. Eng. 146, 54–62, 1942.
e
– t d t V – J = dQ j
e
– t d + j 0 t V – J + jP = dQ j
e
– t d ( 0 t V + P – t d t V – J ) = dQj
t
127
The Magnetic Fields Interface
Note: The AC/DC Module enhances the Magnetic Fields interface included with the
basic COMSOL Multiphysics license.
The Magnetic Fields interface ( ) has the equations, boundary conditions, and
external currents for modeling magnetic fields, solving for the magnetic vector
potential. The main feature is the Ampère’s Law feature, which adds the equation for
the magnetic vector potential and provides an interface for defining the constitutive
relation and its associated properties such as the relative permeability. For a more
thorough introduction to the equations solved by this physics interface, see the Theory
for the Magnetic Fields Interface.
When you add this interface, these default nodes are also added to the Model Builder—
Magnetic Fields, Ampère’s Law, Magnetic Insulation (the default boundary condition),
and Initial Values. Right-click the Magnetic Fields node to add other features that
implement, for example, boundary conditions and external currents.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier edit
field.
The default identifier (for the first interface in the model) is mf.
DOMAINS
Select the domains where you want to define the magnetic vector potential and the
equations that describe the potential field for magnetic fields. The default setting is to
include all domains in the model.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
ADVANCED SETTINGS
To display this section on a physics interface Settings window, select Show More Options
from the View menu in the Model Builder. Normally these settings do not need to be
changed. See Show More Options: Advanced Settings in the COMSOL Multiphysics
User’s Guide or Where Do I Access the Documentation and Model Library?.
DISCRETIZATION
To display this section on a physics interface Settings window, select Show More Options
from the View menu in the Model Builder. Select a Magnetic vector potential—Quadratic
(the default), Linear, Cubic, or Quartic.
Ampère’s Law
The Ampère’s Law feature adds Ampère’s law for the magnetic field and provides an
interface for defining the constitutive relation and its associated properties such as the
relative permeability as well as electric properties.
Right-click the Ampère’s Law node to add a Gauge Fixing for A-Field feature. For some
interfaces this feature is added by default.
DOMAINS
Select the domains where you want to define the magnetic vector potential and the
equation based on Ampère’s law that defines the potential.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty. If you add a linear
temperature relation for the conductivity, you can then define the source for the
temperature T. From the Temperature list, select an existing temperature variable (from
MAGNETIC FIELD
Specify the constitutive relation that describe the macroscopic properties of the
medium (relating the magnetic flux density B and the magnetic field H) and the
applicable material properties, such as the relative permeability.
Select one of the following constitutive relations from the Constitutive relation list (the
equation for the selected constitutive relation appears under the list):
CONDUCTION CURRENT
By default, the Electric conductivity (SI unit: S/m) for the media is defined From
material.
1
= -----------------------------------------------
0 1 + T – T0
The default Reference temperature Tref (SI unit: K), Resistivity temperature coefficient
(SI unit: 1/K), and Reference resistivity 0 (SI unit: ·m) are taken From material,
which means that the values are taken from the boundary material.
To specify other values for any of these properties, select User defined from the
corresponding list and then enter a value or expression. T is the current temperature,
which can be a value that you specify as a model input or the temperature from a heat
transfer interface. The definition of the temperature field appears in the Model Inputs
section.
ELECTRIC FIELD
The default Relative permittivity er (unitless) for the media is From material and defined
on the shell domain.
DOMAINS
Select the domains where you want to define the gauge-fixing potential .
DOMAINS
Select the domains where you want to define an external current density.
VE L O C I T Y ( L O R E N T Z TE R M )
Enter components of the Velocity vector v (SI unit: m/s).
Force Calculation
See Force Calculation as described for the Electrostatics interface.
Infinite Elements
See Infinite Elements as described for the Electrostatics interface.
DOMAINS
Select the domains where you want to define the multi-turn coil domain.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty.
Current-Driven Coil
When specifying a total current Icoil, the out-of plane component of the current
density is defined as:
NI coil
J e = ---------------
A
where N is the number of turns which you have specified and A is the total
cross-section area of the coil domain.
Voltage-Driven Coil
When specifying a total voltage Vcoil, the out-of plane component of the current
density is defined as:
N Vcoil + V ind
J e = ---------------------------------------
AR coil
where Vcoil is the applied voltage which you have specified, A is the total
cross-sectional area of the coil domain, N is the number of turns that you have
specified, Rcoil is the total resistance of the coil calculated as
NL coil
--------------------
a coil
A
Circuit Connection
By selecting Circuit from the Coil excitation list, you can drive the Multi-Turn Coil Domain
feature by a voltage defined in a component in the Electrical Circuit interface.
DOMAINS
Select the domains where you want to define the single-turn coil domain.
S I N G L E - TU R N C O I L D O M A I N
Enter a Coil name.
• If Voltage is selected, also enter a Coil potential Vcoil (SI unit: V). The default value
is 1 V.
• If Current is selected, also enter a Coil current Icoil (SI unit: A). The default value is
1 A.
Voltage-Driven Coil
When specifying a total voltage Vcoil, the out-of plane component of the current
density is defined as:
e V coil
J = ----------------
L
Current-Driven Coil
When specifying a total current Icoil, the out-of plane component of the current
density is defined as:
e V
J = --------
L
where L is equal to the physics interface thickness d for 2D models and 2r for 2D
axially symmetric models, and V is an unknown applied potential. The potential V is
solved for using an additional algebraic equation, which constrains the total integrated
current to be equal to the current value Icoil that you have specified.
Circuit Connection
By selecting Circuit from the Coil excitation list, you can drive the Single-Turn Coil
Domain feature by a voltage defined in a component in the Electrical Circuit physics
interface.
DOMAINS
Select the domains where you want to define the coil group domain.
• If Voltage is selected, also enter a Coil potential Vcoil (SI unit: V). The default value
is 1 V.
• If Current is selected, also enter a Coil current Icoil (SI unit: A). The default value is
1 A.
• If Power is selected, also enter a Coil power Pcoil (SI unit: W). The default value is
1 W.
Voltage-Driven Coil
When specifying a total voltage Vdrop, the out-of plane component of the current
density is defined as:
V i
J e = ---------
L
where Vi is an unknown applied potential on the ith turn of the coil, and L is equal to
the physics interface thickness d for 2D models and equal to 2r for 2D axially
symmetric models. The applied potentials are computed through the following
integral constraint:
Je dS = Icoil
Unlike the fixed current option, the coil current Icoil is unknown. The coil current is
computed using the following constraint:
V drop = Vi
i=1
where Vdrop is the user-defined voltage drop across the coil, Vi are the individual
applied potentials, and N is the number of turns in the coil group.
Current-Driven Coil
When specifying a total coil current Icoil, the out-of plane component of the current
density is defined as:
V i
J e = ---------
L
where L is equal to the physics interface thickness d for 2D models and equal to 2r
for 2D axially symmetric models, and Vi is an unknown applied potential on the ith
J dS = Icoil
Power
When specifying a total current Icoil, the out-of plane component of the current
density is defined as:
V i
J e = ---------
L
where L is equal to the physics interface thickness d for 2D models and equal to 2r
for 2D axially symmetric models, and Vi is an unknown applied potential on the ith
turn of the coil. The applied potentials are computed through the following integral
constraint:
Je dS = Icoil
Unlike the fixed current option, the coil current, Icoil is unknown. The coil current is
computed using the following constraint:
1
--- realdot V drop I coil = P coil
2
where N is the number of turns in the coil group and Vdrop is defined as:
V drop = Vi
i=1
For more information on the realdot operator, see The realdot Operator of the
COMSOL Multiphysics User’s Guide or Where Do I Access the Documentation and
Model Library?. The Power option results in a highly nonlinear system of equations
that requires special solver settings in order to converge. The program adds these
solver settings automatically when you solve a model using this setting.
Circuit Connection
By selecting Circuit from the Coil excitation list, you can drive the Coil Group Domain
feature by a current defined in a component in the Electrical Circuit physics interface.
V drop = Vi
i=1
Impedance
This value is stored in a global variable mf.Z_cg<name> (available for evaluation in
Results) where <name> is the name given to the coil in the Coil name edit field. The coil
impedance is computed using the formula:
V drop
Z = --------------
I coil
Resistance
This value is stored in a global variable mf.Rcoil_cg<name> (available for evaluation
in Results) where <name> is the name given to the coil in the Coil name edit field. The
coil resistance is computed using the formula:
V drop
R coil = Re ---------------
I coil
Reactance
This value is stored in a global variable mf.X_cg<name> (available for evaluation in
Results) where <name> is the name given to the coil in the Coil name edit field. The coil
reactance is computed using the formula:
V drop
X = Im ---------------
I coil
Inductance
This value is stored in a global variable mf.Lc_cg<name> (available for evaluation in
Results) where <name><name> is the name given to the coil in the Coil name edit field.
The coil inductance is computed using the formula:
V drop
L c = ---- Im --------------
1
I coil
Admittance
This value is stored in a global variable mf.Y_cg<name> (available for evaluation in
Results) where <name> is the name given to the coil in the Coil name edit field. The coil
admittance is computed from the coil impedance using the formula:
–1
Y = Z
Initial Values
The Initial Values feature adds an initial value for the magnetic vector potential A that
can serve as an initial value for a transient simulation or as an initial guess for a
nonlinear solver.
BOUNDARIES
Select the domains where you want to define an initial value.
INITIAL VALUES
Enter a value or expression for the initial value of the Magnetic vector potential A (SI
unit: Wb/m). The default 0.
n2 A1 – A2 = 0
n2 H1 – H2 = 0
need to be fulfilled. As we are solving for A, the tangential component of the magnetic
potential is always continuous, and thus the first condition is automatically fulfilled.
The second condition is equivalent to the natural boundary condition and is hence also
fulfilled unless surface currents are explicitly introduced.
Exterior Boundaries
The following exterior boundary conditions are available:
Interior Boundaries
In addition, the following interior boundary conditions are available:
• Magnetic Insulation
• Magnetic Potential
• Surface Current
• Perfect Magnetic Conductor
• Transition Boundary Condition
• Thin Low Permeability Gap
Pairs
These conditions are available on boundary pairs and selected from the Pairs submenu.
• Sector Symmetry
• Magnetic Field
• Surface Current
• Magnetic Potential
• Perfect Magnetic Conductor
• Thin Low Permeability Gap
• Continuity
Magnetic Insulation
The Magnetic Insulation feature is the default boundary condition for the Magnetic Fields
interface and adds a boundary condition that sets the tangential components of the
magnetic potential to zero at the boundary:
nA = 0
Js
J
I'
I
Js
The magnetic insulation boundary condition is used on exterior and interior boundaries
representing the surface of a lossless metallic conductor or (on exterior boundaries)
representing a symmetry cut. The shaded (metallic) region is not part of the model but still
carries effective mirror images of the sources. Note also that any current flowing into the
boundary is perfectly balanced by induced surface currents. The tangential vector
potential (and electric field) vanishes at the boundary.
The term magnetic insulation comes from the fact that this boundary condition
makes the normal component of the magnetic field zero.
BOUNDARIES
No user selection is required. All boundaries are automatically selected.
Magnetic Field
The Magnetic Field feature adds a boundary condition for specifying the tangential
component of the magnetic field at the boundary:
n H = n H0
BOUNDARIES
Select the boundaries where you want to specify the magnetic field.
PAIR SELECTION
If Magnetic Field is selected from the Pairs submenu, select the boundary pair where you
want to define this feature. First an identity pair may have to be created.
MAGNETIC FIELD
Enter the value or expression for the Magnetic Field H0 (SI unit: A/m) coordinates.
Surface Current
The Surface Current feature adds a boundary condition for a surface current density
Js0:
–n H = Js
n H1 – H2 = Js
BOUNDARIES
Select the boundaries where you want to specify a surface current.
PAIR SELECTION
If Surface Current is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
SURFACE CURRENT
Enter values or expressions for the Surface current density Js0 (SI unit A/m)
coordinates.
n A = n A0
BOUNDARIES
Select the boundaries where you want to specify the magnetic potential.
PAIR SELECTION
If Magnetic Potential is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
MAGNETIC POTENTIAL
Enter a value or expression for the Magnetic vector potential A0 (SI unit: Wb/m)
coordinates.
0 r
-n H + E – n E n = n E s n – E s
-----------------------------
0 r – j
The boundary condition approximates this penetration to avoid the need to include
another domain in the model. The material properties that appear in the equation are
those for the domain outside the boundary.
The skin depth (that is, the distance where the electromagnetic field has decreased by
a factor e1) is for a good conductor
2
= -----------
Js
J
I'
I
Js
The impedance boundary condition is used on exterior boundaries representing the surface
of a lossy domain. The shaded (lossy) region is not part of the model. The effective induced
image currents are of reduced magnitude due to losses. Any current flowing into the
boundary is perfectly balanced by induced surface currents as for the perfect electric
conductor boundary condition. The tangential electric field is generally small but non zero
at the boundary.
BOUNDARIES
Select the boundaries where you want to specify the impedance boundary condition.
Enter the values of expressions for the Source electric field Es (SI unit: V/m)
coordinates.
nH = 0
is a special case of the surface current boundary condition that sets the tangential
component of the magnetic field and thus also the surface current density to zero. On
external boundaries, this can be interpreted as a “high surface impedance” boundary
condition or used as a symmetry type boundary condition. It imposes symmetry for
electric fields and electric currents. Electric currents (volume, surface, or edge
currents) are not allowed to flow into a perfect magnetic conductor boundary as that
would violate current conservation. On interior boundaries, the perfect magnetic
conductor boundary condition literally sets the tangential magnetic field to zero which
in addition to setting the surface current density to zero also makes the tangential
magnetic vector potential (and in dynamics the tangential electric field) discontinuous.
Js=0
I'
I
J=0
BOUNDARIES
Select the boundaries that you want to model as perfect magnetic conductors.
PAIR SELECTION
If Perfect Magnetic Conductor is selected from the Pairs submenu, select the boundary
pair where you want to define this feature. First an identity pair may have to be created.
Z S E t1 – Z T E t2
J s1 = --------------------------------------------
2 2
-
ZS – ZT
Z S E t2 – Z T E t1
J s2 = --------------------------------------------
2 2
-
ZS – ZT
– j 1
Z S = ------------- ----------------------
k tan kd
– j 1
Z T = ------------- ---------------------
k sin kd
k = + j
BOUNDARIES
Select the boundaries where you want to specify the transition boundary condition.
TR A N S I T I O N B O U N D A R Y C O N D I T I O N
The Transition Boundary Condition section contains the following material properties
for the thin layer which this boundary condition approximates:
The default setting takes the values From material. Or select User defined to enter
different values or expressions.
d
n H 1 – H 2 = t ------------ t A
0 r
to model gaps filled with a material with zero conductivity such as air. This boundary
condition is only applicable on interior boundaries and pair boundaries. You can also
right-click to add a Gauge-Fixing for A-Field feature.
BOUNDARIES
Select the boundaries where you want to model a thin low permeability gap.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty.
TH IN L OW PERMEABILITY GAP
The default Relative permeabilityr (unitless) is taken From material.
Periodic Condition
The Periodic Condition feature can be used to define periodicity or antiperiodicity
between two boundaries. You can also activate the feature on more than two
boundaries, in which case the feature tries to identify two separate surfaces which can
each consist of several connected boundaries.
PERIODIC CO ND ITIO N
Select a Type of periodicity—Continuity or Antiperiodicity.
Sector Symmetry
Select sector symmetry at interfaces between rotating objects where sector symmetry
is used. It is only available for pairs. Also see Defining an Identity Pair in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?.
BOUNDARIES
Select individual boundaries in an existing identity pair. This pair first has to be created.
PAIR SELECTION
When Sector Symmetry is selected from the Pairs submenu, select the boundary pair
where you want to define this feature. First an identity pair may have to be created.
SECTOR SETTINGS
Enter the Number of sectors (must be <50).
Continuity
The Continuity feature provides continuity in the field variables across a boundary
between parts in an assembly where you have created a pair.
BOUNDARIES
Select individual boundaries in an existing identity pair. This pair first has to be created.
PAIR SELECTION
When Continuity is selected from the Pairs submenu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created.
POINTS
Select the points where you want to add a line current.
POINTS
Select the points where you want to add an electric point dipole.
DIPOLE SPECIFICATION
Select a Dipole specification—Magnitude and direction or Dipole moment.
SETTINGS
If Magnitude and direction is selected under Dipole Specification, enter coordinates for
the Electric dipole moment direction np and the Electric dipole moment, magnitude p (SI
unit: Cm).
If Dipole moment is selected under Dipole Specification, enter coordinates for the Electric
dipole moment p (SI unit: Cm).
PO IN TS
Select the points where you want to add an electric point dipole.
DIPOLE SPECIFICATION
Select a Dipole specification—Magnitude and direction or Dipole moment.
SETTINGS
If Magnitude and direction is selected under Dipole Specification, enter coordinates for
the Magnetic dipole moment direction np and the Magnetic dipole moment, magnitude p
(SI unit: Cm).
If Dipole moment is selected under Dipole Specification, enter coordinates for the
Magnetic dipole moment p (SI unit: Cm).
For a more extensive introduction to the physics and equations implemented by this
interface, see the Theory for the Magnetic Fields, No Currents Interface.
When you add this interface, these default nodes are also added to the Model Builder—
Magnetic Fields, No Currents, Magnetic Flux Conservation, Magnetic Insulation (the default
boundary condition), and Initial Values. Right-click the Magnetic Fields, No Currents
node to add other features that implement additional boundary conditions and point
conditions.
Note: Except where described below, some of the Settings windows are the same as
described for the Magnetic Fields and Electrostatics interfaces as indicated.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier edit
field.
The default identifier (for the first interface in the model) is mfnc.
DOMAINS
Select the domains where you want to define the magnetic scalar potential and the
equations that describe the potential field for magnetostatics without currents. The
default setting is to include all domains in the model.
ADVANCED SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Normally these settings do not need to be changed. See Show More Options:
Advanced Settings in the COMSOL Multiphysics User’s Guide or Where Do I Access
the Documentation and Model Library?.
DISCRETIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Select Quadratic (the default), Linear, Cubic, or Quartic for the Magnetic scalar
potential.
DOMAINS
Select the domains where you want to define the magnetic potential and the equation
that describes the magnetic potential field.
MAGNETIC FIELD
See the settings for Magnetic Field under Ampère’s Law for the Magnetic Fields
interface. Note these differences:
Initial Values
The Initial Values feature adds an initial value for the magnetic scalar potential Vm that
can serve as an initial guess for a nonlinear solver.
DOMAINS
Select the domains where you want to define an initial value.
INITIAL VALUES
Enter a value or expression for the initial value of the magnetic potential Vm in the
Magnetic scalar potential edit field. The default value is 0 A.
Exterior Boundaries
The following exterior boundary conditions are available as described in this section:
• Magnetic Potential
• Periodic Condition
n2 B1 – B2 = 0
This condition provides continuity of the normal component of the magnetic flux
density and is automatically satisfied by the natural boundary condition for interior
boundaries, which is
n 0 V m – M 1 – 0 V m – M 2 = – n B 1 – B 2 = 0
Interior Boundaries
The following interior boundary conditions are available as described in this section:
See The Magnetic Fields Interface for the following boundary conditions, which are
available on boundary pairs:
• Magnetic Shielding
• Sector Symmetry
• Continuity
n B = n B0 (5-1)
Using this boundary condition you can specify the normal component of the magnetic
flux density at the boundary.
Alternatively, you can specify an inward (or outward) flux density using the following
equation:
–n B = Bn (5-2)
Using this formulation, it is possible to specify the normal component of the magnetic
flux density as a scalar.
BOUNDARIES
Select the boundaries where you want to define a magnetic flux density.
BOUNDARIES OR POINTS
Select the boundaries or points where you want to define a zero magnetic potential.
nB = 0
BOUNDARIES
Select the boundaries where you want to define magnetic insulation.
Magnetic Shielding
The Magnetic Shielding feature adds a boundary condition for magnetic shielding. It
describes a thin layer of a permeable medium that shields the magnetic field. The
Magnetic Shielding boundary condition uses the following equation:
n B1 – B2 = – t 0 r ds t V m
BOUNDARIES
Select the boundaries where you want to define magnetic shielding.
PAIR SELECTION
If Magnetic Shielding is selected from the Pairs> menu, select the boundary pair where
you want to define this feature. First an identity pair may have to be created. Ctrl-click
to deselect.
MAGNETIC FIELD
Define the Relative permeability r. The default uses values From material. If User
defined is selected, choose Isotropic, Diagonal, Symmetric, or Anisotropic and enter other
values or expressions. For anisotropic material, the relative permeability is a tensor.
THIN LAYER
Enter a value or expression for the surface Thickness ds (SI unit: m).
d u
V m – V m
0 r -----------------------
ds
where Vmu is the magnetic scalar potential on the upside of the boundary selection and
PAIR SELECTION
If Thin Low Permeability Gap is selected from the Pairs submenu, select the boundary
pair where you want to define this feature. First an identity pair may have to be created.
r-
n B 1 = ----------- V m1 – V m2
d
r-
n B 2 = ----------- V m2 – V m1
d
to model a thin gap of a low permeable material such as air. The layer has the thickness
d and the relative permeability r.
BOUNDARIES
Select the boundaries where you want to define a thin low permeability gap.
TH IN L OW PERMEABILITY GAP
Enter the surface thickness (SI unit: m) as a value or expression in the ds edit field. Also
define the relative permeability using the r list:
• Select From material to user the value of the relative permeability for the material.
• Select User defined to enter a value or expression for the relative permeability in the
edit field that appears.
• Magnetic Potential
• Zero Magnetic Scalar Potential
In this section, only unique features of the Rotating Machinery, Magnetic interface are
described. The interface only works properly if the geometry was created as an
assembly pair from individual composite objects for the rotor and stator parts
respectively. Also an identity pair must be defined for the rotor-stator interface
boundaries under the Model/Definitions node in the model tree. See Defining an
Identity Pair in the COMSOL Multiphysics User’s Guide or Where Do I Access the
Documentation and Model Library?.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier edit
field.
The default identifier (for the first interface in the model) is rmm.
DOMAINS
Select the domains where you want to define. The default setting is to include all
domains in the model.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
each model is constructed. Select options as required and see Physics Interface
Nodes—Equation Section in the COMSOL Multiphysics User’s Guide or Where Do
I Access the Documentation and Model Library? for more information.
OUT-OF-PLANE THICKNESS
Define the out-of-plane Thickness d by entering a value or expression (SI unit: m). The
default value of 1 m is typically not representative for a thin domain.
ADVANCED SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Normally these settings do not need to be changed. See Show More Options:
Advanced Settings in the COMSOL Multiphysics User’s Guide or Where Do I Access
the Documentation and Model Library?.
DISCRETIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Select a Magnetic vector potential—Linear, Quadratic (the default), or Cubic.
Initial Values
The Initial Values feature adds an initial value for the magnetic vector potential.
DOMAINS
Select the domains where you want to define an initial value.
IN IT IA L VA LUES
Enter a value or expression for the initial value of the Magnetic vector potential A.
DOMAINS
Hard coded to all domains.
T H E R O T A T I N G M A C H I N E R Y, M A G N E T I C I N T E R F A C E | 161
COORDINATE SYSTEM SELECTION
The Global coordinate system is selected by default. The Coordinate system list contains
any additional coordinate systems that the model includes.
Prescribed Rotation
The Prescribed Rotation feature imposes a coordinate transformation to the selected
domain that effectively rotates it a prescribed angle. It is used for the modeling of a
rotating part.
DOMAINS
Select the domains where you want to use prescribed rotation.
PRESCRIBED ROTATION
Enter the Rotation angle (in radians) and the Rotation axis base point rbpcomponents
in the associated edit fields.
DOMAINS
Select the domains where you want to use prescribed rotational velocity.
PRESCRIBED ROTATION
Enter the Revolutions per second rps (SI unit: 1/s)and the Rotation axis base point
rbpcomponents in the associated edit fields.
Other Features
See The Magnetic Fields Interface.
Maxwell’s Equations
This implies that it is possible to rewrite Maxwell’s equations in the following manner:
H = J = E + v B + Je
B
E = –
t
B = 0
D =
J = 0
B = A
E = – V – A
t
A –1
+ 0 A – M – v A + V = J e (5-3)
t
The equation of continuity, which is obtained by taking the divergence of the above
equation, adds the following equation:
Equation 5-3 and Equation 5-4 form a system of equations for the two potentials A
and V.
Gauge Transformations
The electric and magnetic potentials are not uniquely defined from the electric and
magnetic fields through
A
E = – ------- – V
t
B = A
˜
A = A +
˜
V = V – -------
t
˜ ˜
A A – ˜ A
E = – ------- – V = – --------------------------- – V + ------- = – ------- – V
˜
t t t t
˜ ˜
B = A = A – = A
A = 0
A
– ------- + J e = 0
t
It is clear that unless the electrical conductivity is uniform, the particular gauge used
to eliminate V cannot be the Coulomb gauge as that would violate the equation of
continuity and would thereby also violate Ampère’s law.
–1
0 A – M = Je
The equation for is used to impose the Coulomb gauge and reads:
A = 0
However, to get a closed set of equations, must be able to affect the first equation
and this is obtained by modifying the first equation to:
The additional term on the right-hand side can be seen as a Lagrange multiplier that
not only imposes the Coulomb gauge but also eliminates any divergence in the
externally generated current density, Je and makes it comply with the current
continuity inherent in Ampère’s law.
The gauge fixing feature similarly imposes the Coulomb gauge also for the dynamic
(frequency domain) study type in the Magnetic and Electric Fields interface.
For the dynamic (frequency domain and time dependent) study types for the Magnetic
Fields interface the gauge is already determined so the gauge fixing feature is not
allowed to impose the Coulomb gauge but reduces to help imposing current
conservation. The first one is for the frequency domain study and the second one is for
the time dependent study type.
J = 0
A = 0
The main benefit of using this kind of divergence constraint is improved numerical
stability, especially when approaching the static limit when the inherent gauge
deteriorates.
When using the Magnetic and Electric Fields interface the electric potential is used to
state current conservation so unless nonphysical current sources are specified inside the
computational domain current conservation is fulfilled.
When using the Magnetic Fields interface, current conservation is usually imposed
either by the solver (for magnetostatics) or in the transient or time harmonic case by
the induced current density. The explicit gauge or divergence constraint can also help
imposing current conservation as described in the preceding section.
e
H = J = E + v B + jD + J
In the transient case the inclusion of this term would lead to a second-order equation
in time, but in the harmonic case there are no such complications. Using the definition
of the electric and magnetic potentials, the system of equations becomes
2 e
– j – 0 A – v A + + j 0 V – J + jP = 0
2 –1 e
j – 0 A + 0 A – M – v A + + j 0 V = J + jP
The constitutive relation D0EP has been used for the electric field.
You obtain a particular gauge that reduces the system of equation by choosing
jV in the gauge transformation. This gives
˜ j ˜
A = A – ---- V V = 0
˜
When V vanishes from the equations, you only need the second one,
2 ˜ –1 ˜ ˜ e
j – 0 A + 0 A – M – v A = J + jP
˜
Working with A is often the best option when it is possible to specify all source
currents as external currents Je or as surface currents on boundaries. This leads to the
Magnetic Fields interface described in the next section.
You can use the Magnetic Fields interface for 3D, 2D in-plane, and 2D axisymmetric
models. Unless you have a license for the AC/DC Module, only 2D modeling
involving out-of-plane currents and axisymmetric modeling involving azimuthal
currents are supported. For a deeper theoretical background to the magnetic vector
potential used below, refer to the section starting with Maxwell’s Equations.
Magnetostatics Equation
To derive the magnetostatic equation, start with Ampère’s law for static cases,
H = J
The current is
e
J = v B + J
B = A
and the constitutive relationship, B0 HM, you can rewrite Ampère’s law as
–1 e
0 A – M – v A = J
which is the equation used in magnetostatics. The term involving the velocity only
applies in the 2D and axisymmetric formulations.
D e D
H = J + ------- = E + v B + J + -------
t t
Now assume time-harmonic fields and use the definitions of the fields,
B = A
E = – j A
and combine them with the constitutive relationships B0HM and D0E to
rewrite Ampère’s law as
2 –1 e
j – 0 A + 0 A – M – v A = J
The term involving the velocity only applies in the 2D and axisymmetric formulations.
Transient Equation
The transient equation this physics interface solves is Ampère’s law, here illustrated
with the constitutive relation B0(HM). The term involving the velocity only
applies in the 2D and axisymmetric formulations.
A –1
+ 0 A – M – v A = J e
t
H = 0
This implies that you can define the magnetic scalar potential Vm from the relation
H = – V m
This is analogous to the definition of the electric potential for static electric fields.
B = 0
becomes
– 0 V m – 0 M = 0 (5-5)
The Magnetic Fields, No Currents interface uses this equation for modeling of
magnetostatics in the absence of electric currents.
In planar 2D the dynamic formulations also involves the thickness d in the z direction:
– d 0 V m – 0 M = 0 (5-6)
171
The Magnetic and Electric Fields
Interface
The Magnetic and Electric Fields interface ( ) has the equations, boundary conditions,
and external currents for modeling electric and magnetic fields, solving for the electric
potential and magnetic vector potential.
For a more thorough introduction to the equations solved by this physics interface, see
the Theory for the Magnetic and Electric Fields Interface.
The main feature is the Ampère’s Law and Current Conservation feature, which adds the
equation for the electric potential and magnetic vector potential and provides an
interface for defining the constitutive relations and their associated properties such as
the relative permeability, relative permittivity and electric conductivity.
When you add this interface, these default nodes are also added to the Model Builder—
Ampère’s Law and Current Conservation, Magnetic Insulation (the default boundary
condition for the magnetic vector potential), and Initial Values.
Right-click the Magnetic and Electric Fields node to add other features that implement,
for example, boundary conditions and external currents.
Note: Except where described below, the majority of the Settings windows are the
same as for the Magnetic Fields, Electrostatics, and Electric Currents interfaces as
indicated.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier edit
field.
The default identifier (for the first interface in the model) is mef.
EQUATION
The default Study types are listed in the Equation Form list. Study controlled is the
default selection. The availability of the Equation display options are based on how
each model is constructed. Select options as required and see Physics Interface
Nodes—Equation Section in the COMSOL Multiphysics User’s Guide or Where Do
I Access the Documentation and Model Library? for more information.
PO R T SWEEP SETTINGS
Select the Activate port sweep check box to invoke a parametric sweep over the ports/
terminals in addition to the automatically generated frequency sweep. The generated
lumped parameters are in the form of an impedance or admittance matrix depending
on the port/terminal settings which consistently must be of either fixed voltage or
fixed current type. The Port parameter name input field assigns a specific name to the
variable that controls the port number solved for during the sweep. The lumped
parameters are subject to Touchstone file export. File name and path are entered in an
input field. Also see Lumped Parameters for more information.
DEPENDENT VARIABLES
The dependent variables (field variables) are for the Electric potential V and Magnetic
vector potential A. You can change the name in the corresponding edit field, but the
names of fields and dependent variables must be unique within a model.
ADVANCED SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Normally these settings do not need to be changed. See Show More Options:
Advanced Settings in the COMSOL Multiphysics User’s Guide.
DISCRETIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Select Quadratic (the default), Linear, Cubic, or Quartic for the Electric potential
and Magnetic vector potential.
DOMAINS
Select the domains where you want to define the magnetic vector potential and the
equation based on Ampère’s law that defines the potential.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty. If you add a linear
temperature relation for the conductivity, you can then define the source for the
temperature T. From the Temperature list, select an existing temperature variable (from
another physics interface) if available, or select User defined to define a value or
expression for the temperature (SI unit: K) in the edit field that appears underneath
the list.
ELECTRIC FIELD
See the settings for Electric Field under Charge Conservation for the Electrostatics
interface.
MAGNETIC FIELD
See the settings for Magnetic Field under Ampère’s Law for the Magnetic Fields
interface.
Initial Values
The Initial Values feature adds an initial value for the magnetic vector potential and
electric potential that can serve as an initial value for a transient simulation or as an
initial guess for a nonlinear solver.
BOUNDARIES
Select the boundaries where you want to define an initial value.
IN IT IA L VA LUES
Enter a value or expression for the initial value of the Magnetic vector potential A (SI
unit: Wb/m) and initial value of the Electric potential V (SI unit: V). The default values
are 0.
Domain Settings
Except for Ampère’s Law and Current Conservation and Initial Values the other
Settings windows are the same as for the Magnetic Fields, Electrostatics, and Electric
Currents interfaces as indicated.
• Force Calculation
• Infinite Elements. A default Ampere’s Law and Current Conservation feature is added.
Also right-click to add Charge Conservation (described for the Electrostatics
interface) or Ampere’s Law features.
n2 A1 – A2 = 0
n2 H1 – H2 = 0
need to be fulfilled. Because the physics interface solves for A, the tangential
component of the magnetic potential is always continuous, and thus the first condition
is automatically fulfilled. The second condition is equivalent to the natural boundary
condition and is hence also fulfilled unless surface currents are explicitly introduced.
See The Magnetic Fields Interface for all of the following features:
Exterior Boundaries
• Magnetic Insulation (the default boundary condition)
• Surface Current
• Impedance Boundary Condition
• Magnetic Field
• Magnetic Potential
• Perfect Magnetic Conductor
Interior Boundaries
• Magnetic Insulation
• Surface Current
• Magnetic Potential
• Transition Boundary Condition
• Thin Low Permeability Gap
n2 J1 – J2 = 0
Exterior Boundaries
When you right-click a magnetic boundary condition feature, some of the following
are available for the electric exterior boundary conditions as described for the interface
indicated.
Interior Boundaries
The interior electric boundary conditions that are available depend on the magnetic
boundary condition that has been selected. See The Electric Currents Interface for the
Ground, Electric Potential, and Terminal features.
Edge Current
The Edge Current feature allows you to specify a line current along one or more edges.
EDGES
Select the edges that you want to an edge current.
EDGE CURRENT
Specify the Edge current.
Magnetostatics Equations
To derive the magnetostatics equations, start with Ampère’s law for static cases,
H = J
B = A
E = – V
and the current
e
J = v B – V + J
Add the constitutive relationship, B0 HM, and you can rewrite Ampère’s law
as
–1 e
0 A – M – v A + V = J
e
H = J = E + v B + jD + J
B = A
E = –V –j A
and combine them with the constitutive relationships B0HM and D0E to
rewrite Ampère’s law as
2 –1 e
j – 0 A + 0 A – M – v A + + j 0 V = J
The equation of continuity is again obtained by taking the divergence of Ampère’s law.
It is the equation solved for the electric potential. Thus the following equations for V
and A apply:
2 e
– j – 0 A – v A + + j 0 V – J + jP = 0
2 –1 e
j – 0 A + 0 A – M – v A + + j 0 V = J
This interface has the equations for modeling electrical circuits with or without
connections to a distributed fields model, solving for the voltages, currents and
charges associated with the circuit elements.
In this section:
181
The Electrical Circuit Interface
The Electrical Circuit interface ( ) provides the equations for modeling electrical
circuits with or without connections to a distributed fields model, solving for the
voltages, currents and charges associated with the circuit elements.
For more details on the equations solved by this physics interface, see the Theory for
the Electrical Circuit Interface.
When you add this interface, it adds a default Ground Node feature and associates that
with node zero in the electrical circuit.
Note: Circuit nodes are nodes in the electrical circuit and should not be confused
with nodes in the model tree of COMSOL Multiphysics. Circuit node names are not
restricted to numerical values but can be arbitrary character strings.
Ground Node
The Ground Node node adds a ground node with the default node number zero to the
electrical circuit. This is the default feature in the Electrical Circuit interface.
GROUND CONNECTION
Set the Node name for the ground node in the circuit. The convention is to use zero
for the ground node.
Resistor
The Resistor node connects a resistor between two nodes in the electrical circuit.
NODE CONNECTIONS
Set the two Node names for the connecting nodes for the resistor. If the ground node
is involved, the convention is to use zero for this.
DEVICE PARAMETERS
Enter the Resistance of the resistor.
NODE CONNECTIONS
Set the two Node names for the connecting nodes for the capacitor. If the ground node
is involved, the convention is to use zero for this.
DEVICE PARAMETERS
Enter the Capacitance of the capacitor.
Inductor
The Inductor node connects an inductor between two nodes in the electrical circuit.
NODE CONNECTIONS
Set the two Node names for the connecting nodes for the inductor. If the ground node
is involved, the convention is to use zero for this.
DEVICE PARAMETERS
Enter the Inductance of the inductor.
Voltage Source
The Voltage Source node connects a voltage source between two nodes in the electrical
circuit.
NODE CONNECTIONS
Set the two Node names for the connecting nodes for the voltage source. The first node
represents the positive reference terminal. If the ground node is involved, the
convention is to use zero for this.
DEVICE PARAMETERS
Enter the Source type that should be adapted to the selected study type. It can be
DC-source, AC-source, or a time-dependent Sine source. Depending on the choice of
source, you also specify the Voltage, Vsrc; the offset Voltage, Voff; the Frequency; and the
Source phase. All values are peak values rather than RMS. Note that for the AC source,
the frequency is a global input set by the solver so do not use the Sine source unless the
model is time dependent.
NODE CONNECTIONS
Set the two Node names for the connecting nodes for the current source. The first node
represents the positive reference terminal from which the current flows through the
source to the second node. If the ground node is involved, the convention is to use
zero for this.
DEVICE PARAMETERS
Enter the Source type which should be adapted to the selected study type. It can be
DC-source, AC-source or a time-dependent Sine source. Depending on the choice of
source, you also specify the Current, Isrc, the offset Current, Ioff, the Frequency and the
Source phase. All values are peak values rather than RMS. Note that for the AC source,
the frequency is a global input set by the solver so do not use the Sine source unless the
model is time-dependent.
NODE CONNECTIONS
Specify four Node names: the first pair for the connection nodes for the voltage source
and the second pair defining the input control voltage. The first node in a pair
represents the positive reference terminal. If the ground node is involved, the
convention is to use zero for this.
DEVICE PARAMETERS
Enter the voltage Gain. The resulting voltage is this number multiplied by the control
voltage.
NODE CONNECTIONS
Specify four Node names: the first pair for the connection nodes for the current source
and the second pair defining the input control voltage. The first node in a pair
represents the positive voltage reference terminal or the one from which the current
flows through the source to the second node. If the ground node is involved, the
convention is to use zero for this.
DEVICE PARAMETERS
Enter the voltage Gain. The resulting current is this number multiplied by the control
voltage. Thus it formally has the unit of conductance.
NODE CONNECTIONS
Set two Node names for the connection nodes for the voltage source. The first node in
a pair represents the positive reference terminal. If the ground node is involved, the
convention is to use zero for this.
DEVICE PARAMETERS
Enter the voltage Gain and the Device (any two-pin device) name. The resulting voltage
is this number multiplied by the control current through the named Device (any
two-pin device). Thus it formally has the unit of resistance.
DEVICE PARAMETERS
Enter the current Gain and the Device (any two-pin-device) name. The resulting current
is this number multiplied by the control current through the named Device (any
two-pin device).
Subcircuit Definition
The Subcircuit Definition node is used to define subcircuits. By right-clicking a
subcircuit definition node, you can add all circuit features available except for the
subcircuit definition feature itself. By right-clicking a subcircuit definition node, you
can also Rename it to something more descriptive than its default name.
SUBCIRCUIT PINS
Define the Pin names at which the subcircuit connects to the main circuit or to other
subcircuits when referenced by a Subcircuit Instance feature. The Pin names refer to
circuit nodes in the subcircuit. The order in which the Pin names are defined is the
order in which they are referenced by a Subcircuit Instance feature.
Subcircuit Instance
The Subcircuit Instance node is used to refer to defined subcircuits.
NODE CONNECTIONS
Select the Name of subcircuit link from the list of defined subcircuits in the circuit model
and the circuit Node names at which the subcircuit instance connects to the main circuit
or to another subcircuit if used therein.
NPN BJT
The NPN BJT device model is a large-signal model for an NPN bipolar junction
transistor (BJT). It is an advanced device model and no thorough description and
motivation of the many input parameters is attempted here. The interested reader is
referred to Ref. 2 for more details on semiconductor modeling within circuits. Many
NODE CONNECTIONS
Specify three Node names for the connection nodes for the NPN BJT device. These
represent the collector, base, and emitter nodes, respectively. If the ground node is
involved, the convention is to use zero for this.
MODEL PARAMETERS
Specify the Model Parameters. Reasonable defaults are provided but for any particular
BJT, the device manufacturer should be the primary source of information. For an
explanation of the Model Parameters see NPN Bipolar Transistor.
n-Channel MOSFET
The n-Channel MOSFET device model is a large-signal model for an n-channel MOS
transistor (MOSFET). It is an advanced device model and no thorough description
and motivation of the many input parameters is attempted here. The interested reader
is referred to Ref. 2 for more details on semiconductor modeling within circuits. Many
device manufacturers provide model parameters for this MOSFET model. For any
particular make of MOSFET, the device manufacturer should be the primary source of
information.
NODE CONNECTIONS
Specify four Node names for the connection nodes for the n-Channel MOSFET device.
These represent the drain, gate, source, and bulk nodes, respectively. If the ground
node is involved, the convention is to use zero for this.
MODEL PARAMETERS
Specify the Model Parameters. Reasonable defaults are provided but for any particular
MOSFET, the device manufacturer should be the primary source of information. For
an explanation of the Model Parameters see n-Channel MOS Transistor.
Diode
The Diode device model is a large-signal model for a diode. It is an advanced device
model and no thorough description and motivation of the many input parameters is
attempted here. The interested reader is referred to Ref. 2 for more details on
NODE CONNECTIONS
Specify two Node names for the positive and negative nodes for the Diode device. If the
ground node is involved, the convention is to use zero for this.
MODEL PARAMETERS
Specify the Model Parameters. Reasonable defaults are provided but for any particular
diode, the device manufacturer should be the primary source of information. For an
explanation of the Model Parameters see Diode.
External I vs. U
The External I vs. U node connects an arbitrary voltage measurement, for example a
circuit terminal or circuit port boundary or a coil domain from another physics
interface, as a source between two nodes in the electrical circuit. The resulting circuit
current from the first node to the second node is typically coupled back as a prescribed
current source in the context of the voltage measurement.
NODE CONNECTIONS
Specify the two Node names for the connecting nodes for the voltage source. The first
node represents the positive reference terminal. If the ground node is involved, the
convention is to use zero for this.
EXTERNAL DEVICE
Enter the source of the Voltage. If you have circuit or current excited terminals or
circuit ports defined on boundaries or a multiturn coil domains in other physics
interfaces, these display as options in the Voltage list. You can also select the User defined
option and type in your own voltage variable, for example, using a suitable coupling
operator (see Model Couplings in the COMSOL Multiphysics User’s Guide or Where
Do I Access the Documentation and Model Library?). For inductive or
electromagnetic wave propagation models, the voltage measurement must be
performed as an integral of the electric field as the electric potential only does not
capture induced EMF. Also the integration must be performed over a distance that is
short compared to the local wavelength. Note that except for when coupling to a
circuit terminal or circuit port, you must manually couple back the current flow
variable in the electrical circuit to the context of the voltage measurement. This applies
External U vs. I
The External U vs. I node connects an arbitrary current measurement, for example,
from another physics interface, as a source between two nodes in the electrical circuit.
The resulting circuit voltage between the first node and the second node is typically
coupled back as a prescribed voltage source in the context of the current measurement.
NODE CONNECTIONS
Specify the two Node names for the connecting nodes for the current source. The
current flows from the first node to the second node. If the ground node is involved,
the convention is to use zero for this.
EXTERNAL DEVICE
Enter the source of the Current. Voltage excited terminals or lumped ports defined on
boundaries in other physics interfaces are natural candidates but do not appear as
options in the Voltage list because those do not have an accurate built-in current
measurement variable. You must select the User defined option and type in you own
current variable, for example, using a suitable coupling operator (see Model Couplings
in the COMSOL Multiphysics User’s Guide or Where Do I Access the Documentation
and Model Library?). Note that you must manually couple back the voltage variable in
the electrical circuit to the context of the current measurement. This applies also when
coupling to a voltage excited terminal or lumped port. The name of this voltage
variable follows the convention cirn.UvsIm_v, where cirn is the tag of the Electrical
Circuit interface node and UvsIm is the tag of the External U vs. I node. The mentioned
tags are typically displayed within curly braces {} in the model tree.
External I-Terminal
The External I-Terminal node connects an arbitrary voltage-to-ground measurement,
for example, a circuit terminal boundary from another physics interface, as a
voltage-to-ground assignment to a node in the electrical circuit. The resulting circuit
current from the node is typically coupled back as a prescribed current source in the
context of the voltage measurement.
NODE CONNECTIONS
Set the Node name for the connecting node for the voltage assignment.
E X T E R N A L TE R M I N A L
Enter the source of the Voltage. If you have circuit- or current-excited terminals
defined on boundaries in other physics interfaces, these display as options in the Voltage
list. You can also select the User defined option and type in your own voltage variable,
for example, using a suitable coupling operator (see Model Couplings in the COMSOL
Multiphysics User’s Guide or Where Do I Access the Documentation and Model
Library?). Note that, except for when coupling to a circuit terminal, you must
manually couple back the current flow variable in the electrical circuit to the context
of the voltage measurement. This applies also when coupling to a current excited
terminal. The name of this current variable follows the convention cirn.termIm_i,
where cirn is the tag of the Electrical Circuit interface node and termIm is the tag of
the External I-Terminal node. The mentioned tags are typically displayed within curly
braces {} in the model tree.
The Electrical Circuit interface makes it is possible to add nodes representing circuit
elements directly to the model tree in a COMSOL Multiphysics model. The circuit
variables can then be connected to a physical device model to perform co-simulations
of circuits and multiphysics. The model acts as a device connected to the circuit so that
you can analyze its behavior in larger systems.
The fundamental equations solved by the electrical circuit interface are Kirchhoff’s
circuit laws, which in turn can be deduced from Maxwell’s equations. The supported
study types are Stationary, Frequency Domain, and Time Dependent.
N P N B I P O L A R TR A N S I S T O R
Figure 7-1 illustrates the equivalent circuit for the bipolar transistor. Equation 7-1 is
used to compute the relations between currents and voltages in the circuit.
Equation 7-2 shows two capacitances that use the same formula as the junction
capacitance of the diode model. In the parameter names in Equation 7-2 and listed
v be
– --------------
v bc
– --------------
– 1
NF VT NR VT
= ----------------------------------------------- 1 + 1 + 4I S -------------------------- + --------------------------
1 e –1 e
f bq
v bc v be I KF A I KR A
2 1 – ----------- – -----------
V AF V AR
v be v be (7-1)
I S – -------------
N V
- – --------------
N V
i be = A ------- e F T – 1 + I SE e E T – 1
BF
v bc v bc
I S – --------------
N V – --------------
N V
i bc = A -------- e R T – 1 + I SC e C T – 1
B
R
v be v bc
I S – -------------
N V
- – --------------
N V
i ce = A ------- e F T + e C T
f bq
(7-2)
v bx – MJx
1 – ---------
-
V Jx v bx F C V Jx
C jbx
= AC Jx
v bx v bx F C V Jx
1 – F – 1 – M Jx 1 – F 1 + M + M ---------
C C Jx Jx V -
Jx
N - C H A N N E L M O S TR A N S I S T O R
Figure 7-2 illustrates an equivalent circuit for the MOS transistor. Equation 7-3 is used
to compute the relations between currents and voltages in the circuit. There are also
several capacitances between the terminals as illustrated in Equation 7-4. The model
parameters are as in Table 7-2:
TABLE 7-2: MOS TRANSISTOR MODEL PARAMETERS
(7-4)
C gd = C gd0 W
C gs = C gs0 W
1 – v
–MJ
bd
--------
-
PB v bx F C P B
C jbd = C BD
v bx v bx F C P B
1 – F – 1 – M J 1 – F 1 + M + M -------
-
C C J JP
B
DIODE
Figure 7-3 illustrates equivalent circuit for the diode. Equation 7-5 is used to compute
the relations between currents and voltages in the circuit and where we need the model
parameters in Table 7-3
TABLE 7-3: DIODE TRANSISTOR MODEL PARAMETERS
vd –M
1 – ------
- vd FC VJ
V J
C j = C J0
– 1 – M vd
1 – FC 1 – F C 1 + M + M ------- v d F C V J
VJ
REFERENCES
1. http://bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
The Heat Transfer branch included with the AC/DC Module license has The
Induction Heating Interface interface available, which combines magnetic
fields with heat transfer.
201
The Induction Heating Interface
The Induction Heating interface ( ) combines all features from the Magnetic Fields
interface in the time harmonic formulation with the Heat Transfer interface for
modeling of induction and eddy current heating. The interface has the equations,
boundary conditions, and sources for modeling. The predefined interaction adds the
electromagnetic losses from the magnetic field as a heat source. This interface is based
on the assumption that the magnetic cycle time is short compared to the thermal time
scale (adiabatic assumption). Thus, it is associated with two predefined study types:
When you add this interface, these default nodes are also added to the Model Builder—
Induction Heating Model, Electromagnetic Heat Source, Thermal Insulation, Magnetic
Insulation, and Initial Values.
Right-click the Induction Heating node to add other features that implement boundary
conditions and sources.
INTERFACE IDENTIFIER
The interface identifier is a text string that can be used to reference the respective
physics interface if appropriate. Such situations could occur when coupling this
interface to another physics interface, or when trying to identify and use variables
defined by this physics interface, which you use to reach the fields and variables in
expressions, for example. You can change it to any unique string in the Identifier field.
The default identifier (for the first interface in the model) is ih.
DOMAINS
Select the domains where you want to define the induction heating. The default setting
is to include all domains in the model.
ADVANCED SETTINGS
To display this section, select Show More Options from the View menu in the Model
Builder. Normally these settings do not need to be changed. See Show More Options:
Advanced Settings in the COMSOL Multiphysics User’s Guide or Where Do I Access
the Documentation and Model Library?.
DISCRETIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Select Quadratic, Linear, Cubic, or Quartic for the Temperature, Surface radiosity,
and Magnetic vector potential.
CONSISTENT STABILIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Also see Show More Options: Consistent and Inconsistent Stabilization in the
COMSOL Multiphysics User’s Guide for information about these settings.
INCONSISTENT STABILIZATION
To display this section, select Show More Options from the View menu in the Model
Builder. Also see Show More Options: Consistent and Inconsistent Stabilization in the
COMSOL Multiphysics User’s Guide for information about these settings.
Shared Features
The Induction Heating interface shares most of its Settings windows with the Magnetic
Fields (see The Magnetic Fields Interface) and the Heat Transfer interfaces.
MODEL INPUTS
This section contains field variables that appear as model inputs, if the current settings
include such model inputs. By default, this section is empty. If you add a linear
temperature relation for the conductivity, you can then define the source for the
temperature T. From the Temperature list, select an existing temperature variable (from
another physics interface) if available, or select User defined to define a value or
expression for the temperature (SI unit: K) in the edit field that appears underneath
the list.
CONDUCTION CURRENT
See the settings for Conduction Current under Ampère’s Law for the Magnetic Fields
interface.
ELECTRIC FIELD
See the settings for Electric Field under Charge Conservation described for the
Electrostatics interface.
MAGNETIC FIELD
See the settings for Magnetic Field under Ampère’s Law for the Magnetic Fields
interface. Note the following difference:
• HB curve This option is not relevant for time harmonic modeling so it should not be
selected when using the Induction Heating interface.
q = – k T
which is Fourier’s law of heat conduction. Enter this quantity as power per length and
temperature.
THERMODYNAMICS
The default uses the Heat capacity at constant pressure Cp (SI unit: J/(kg·K)) and
Density (SI unit: kg/m3) values From material. Select User defined to enter other
values or expressions for one or both variables.
DOMAINS
Select the domains where you want to apply the model. The default feature setting is
hard-coded to include all domains in the model.
Initial Values
The Initial Values feature adds initial values for the temperature, surface radiosity and
magnetic vector potential.
DOMAINS
Select the domains where you want to apply the initial values. The default setting is to
include all domains in the model.
IN IT IA L VA LUES
Enter values or expressions for the Temperature T (SI unit: K), Surface radiosity J (SI
unit W/m2) and Magnetic vector potential A (SI unit: Wb/m). The default
temperature is 293.15 K.
Materials
This section describes the materials databases included with the AC/DC Module.
• About the Material Databases
• About Using Materials in COMSOL
• Opening the Material Browser
• Using the AC/DC Material Database
207
Material Library and Databases
About the Material Databases
Material Library—Purchased
separately. Select from over 2500
predefined materials.
All COMSOL modules have predefined material data available to build models. The
most extensive material data is contained in the separately purchased Material Library,
but all modules contain commonly used or module-specific materials. For example, the
Built-In database is available to all users but the MEMS database is included with the
Acoustics Module, MEMS Module, and Structural Mechanics Module. You can also
create your own materials and material libraries by researching and entering material
properties yourself.
You access all the material databases (including the Material Library) from the Material
Browser. These databases are briefly described below.
MATERIAL LIBRARY
An optional add-on database, the Material Library ( ), contains data for over 2500
materials and 20,000 property functions.
BUILT-IN
Included with COMSOL Multiphysics, the Built-In database ( ) contains common
solid materials with electrical, structural, and thermal properties. See Predefined
Built-In Materials for all COMSOL Modules in the COMSOL Multiphysics User’s
Guide for a list.
AC/DC
Included in the AC/DC Module, the AC/DC database ( ) has electric properties for
some magnetic and conductive materials.
MEMS
Included in the Acoustics Module, MEMS Module, and Structural Mechanics
Module, the MEMS database ( ) has properties for MEMS materials—metals,
semiconductors, insulators, and polymers.
PIEZOELECTRIC
Included in the Acoustics Module, MEMS Module, and Structural Mechanics
Module, the Piezoelectric database ( ) has properties for piezoelectric materials.
Figure 9-1: Assigning materials to a heat sink model. Air is assigned as the material to
the box surrounding the heat sink, and aluminum to the heat sink itself.
If a geometry consists of a heat sink in a container, you can assign Air as the material in
the container surrounding the heat sink and Aluminum as the heat sink material itself
(see Figure 9-1). The Conjugate Heat Transfer physics interface, selected during model
set-up, has a Fluid flow model, defined in the box surrounding the heat sink, and a Heat
Transfer model, defined in both the aluminum heat sink and in the air box. The Heat
Transfer in Solids 1 settings use the material properties associated to the Aluminum
3003-H18 materials node, and the Fluid 1 settings define the flow using the Air material
All physics interface properties automatically use the correct Materials properties when
you use the default From material setting. This means that you can use one node to
define the physics across several domains with different materials; COMSOL then uses
the material properties from the different materials to define the physics in the
domains. If material properties are missing, the Material Contents section on the
Materials page displays a stop icon ( ) to warn you about the missing properties or
values. See About the Material Page in the COMSOL Multiphysics User’s Guide or
Where Do I Access the Documentation and Model Library?.
Note: When you are using the Material Browser, the words window and page are
interchangeable. For simplicity, the instructions refer only to the Material Browser.
Note: To clear the search field and browse, delete the search term and click Search to
reload all the databases.
- Click to open each database and browse for a specific material by class (for
example, in the Material Library) or physics module (for example, MEMS
Materials).
Note: Always review the material properties to confirm they are applicable for the
model. For example, Air provides temperature-dependent properties that are valid at
pressures around 1 atm.
The AC/DC database is included with the AC/DC Module and contains
electromagnetic and other material properties for these materials:
PREDEFINED MATERIALS
Copper
Soft Iron (without losses)
Soft Iron (with losses)
Quartz
Graphite
Graphite felt
Silicon Carbide
Some properties depend on the magnetic flux density, location, or temperature. The
database contains, depending on the material and in addition to the more common
material properties, the following properties:
PREDEFINED PROPERTIES
WO R K I N G W I T H T H E M A T E R I A L B R O W S E R | 213
214 | CHAPTER 9: MATERIALS
10
Glossary
215
Glossary of Terms
anisotropy Variation of material properties with direction.
constitutive relation The relation between the D and E fields and between the B and
H fields. These relations depend on the material properties.
electric dipole Two equal and opposite charges +q and q separated a short distance
d. The electric dipole moment is given by p = qd, where d is a vector going from q
to +q.
magnetic dipole A small circular loop carrying a current. The magnetic dipole
moment is m = IAe, where I is the current carried by the loop, A its area, and e a unit
vector along the central axis of the loop.
vector element A finite element often used for electromagnetic vector fields. The
tangential component of the vector field at the mesh edges is used as a degree of
freedom. Also called Nedelec’s edge element or just edge element.
INDEX| 217
contacting COMSOL 14 drill files 43
continuum mechanics 61, 65, 69
E ECAD import 39
Coulomb gauge 164–166
options 45
current conservation
troubleshooting 48
Ampère’s law 174
effective conductivity, porous media 122
current source 99
effective relative permittivity 124
electric currents 95
elastic material 61, 70
perfect magnetic conductor 146
electric
theory 121
conductivity 53
ungauged formulations 166
dipole moment 53
current density
energy 56
elastic pure conductor and 67
force 71
electromagnetic energy and 57
point dipole 110
external 98, 132–133
polarization 53
Lorentz force equation and 58
power 56
normal 102
scalar potential 16, 55
quantity 74
susceptibility 53
surface 59, 143, 146
torque 71
theory 121, 126, 168
electric conductivity, porous media 97,
current source 99, 184
125
boundary 101
electric currents interface 93
current-controlled 185
theory 121
line 109
electric currents, shell interface 111
point 109
theory 126
surface 101
electric fields theory 115
theory 117, 121, 123
electric point dipole 150
voltage-controlled 185
electrical circuit interface 182
currents, constant 71
theory 191
cylindrical coordinates 19, 24
electrical size 23
D dielectric effect 68 electromagnetic
dipole moment energy 56
electric 110, 150 energy, virtual work 70
electrostatic 92 fields 23
magnetic 53, 151 force 34, 61, 68
dispersive materials 58 force and torque 33
distributed capacitance 89 heat source 205
distributed impedance 103 quantities 74
documentation, location 13 sources 26
218 | I N D E X
stress tensor 65 frequency-stationary study 27
theory 52 frequency-transient study 27
torque 64, 71
G Galilei 68–69
volume force 34
gauge fixing 132, 164–166
electromotive intensity 69
gauge transformation 164, 167
electrostatics interface 78
Gauss’ law 52, 80, 115–116, 119
theory 119
GDS-II file format 40
emailing COMSOL 14
geometry, simplifying 23
energy density 57
Gerber layer files 43
energy loss, resistive and reactive 56
gradient, air pressure 64
equation of continuity 52, 57
gradient, temperature 62, 205
external current 54
H heat capacity 205
F Faraday’s law 52, 55, 58
heat flux 205
field variables in 2D 28
Helmholtz’s theorem 164
file formats
hysteresis effects 59
GDS-II 40
I impedance
NETEX-G 42
boundary condition 144–145
file, Touchstone 38
distributed 103
fixed current, port 36
lumped parameters 35, 38, 73
floating potential 88, 118
quantity 74
fluid saturation 98
reference 94
flux density
surface 104
magnetic 33, 75
inductance, lumped parameters 35, 73
materials 213
induction heating interface 202
remanent magnetic 54, 130
infinite elements 81
force
inhomogeneous materials 58
computations 33
internet resources 12
distributed in a volume 34
invariant field, Galilei 68
electric 71
electromagnetic 33, 61 J Joule heating 96
in a pure conductor 66, 69
K knowledge base, COMSOL 13
in moving objects 68
L line charge 91
Lorentz 58
line source 109
magnetic 71
linear material 61, 68
total 34, 63
Lorentz force 33–34, 58
forced voltage, port 36
Lorentz magnetization 69
formation factor 125
Lorentz term 132
Fourier’s law of heat conduction 205
INDEX| 219
loss, resistive and reactive 56 databases 209
lumped parameters linear 61, 68
calculating 35–38 properties 211
electric currents interface 94 Maxwell stress tensor 33–34, 65
electrostatics interface 79 Maxwell’s equations 52, 191
magnetic and electric fields interface quasi-static approximation 163
173 Maxwell-Ampère’s law 52, 55, 58, 99, 167,
169
M magnetic
mechanical stress tensor 62
dipole moment 53
mesh resolution 28
energy 56
method of virtual work 70
flux, constant 71
model library 13
force 71
model M-file 12
insulation 142
MOS transistor 194
losses 130
moving geometry 58
point dipole 151
MPH-files 13
power 56
multi-turn coils 133
scalar potential 16
shielding, boundary condition 157 N NETEX-G file format 42
susceptibility 53 netlists, SPICE 190–191
torque 71 nonlinear material 58, 68
magnetic and electric fields interface 172
O ODB++(X) files 39
theory 179
Ohm’s law 115, 117, 121
magnetic field
P PDE, reduced potential 55
boundary condition 142, 146
perfect conductor 59, 66
magnetic fields interface 128
perfect magnetic conductor 146
theory 168
permanent magnet 34, 53, 66
magnetic fields, no currents interface 152
permeability and permittivity
theory 170
relative 54
magnetic potential
vacuum 53
boundary condition 144
permittivity, volume average 124
scalar 16, 55
phasor 60
vector 16, 55
piezoelectric and piezomagnetic effects
magnetization 53
68
magnetization effect 68
PMC 146
magnetomotive intensity 69
point charge 91
mapped infinite elements 29, 72
point dipole 92, 110
materials
point source 109
AC/DC module 213
220 | I N D E X
polarization 53, 68–70, 75, 80 saturation exponent 98
porous media 122 scalar magnetic potential 16, 55
porous media and mixtures 94 semiconductor device models 191
potentials, constant 71 SI units 74
power law, porous media 123–124 single-turn coils 135
Poynting 57, 75 skin depth 144
pure conductor 66, 69 skin effect 28
pyroelectric and pyromagnetic effects 68 solver settings 28
SPICE 190–191
Q quasi-static approximation 57, 163
stress tensor
quasi-static modeling 23
electromagnetic 65
quasi-static time-harmonic 55, 167
Maxwell 34, 65
R radiative energy 56
mechanical 62
radiative loss 57
symmetric 68
reciprocal permittivity, volume average
surface
124
charge 85
reduced potential 55
charge density 59
refractive index 213
current 59, 143
relative
current source 101
permeability 128, 145, 147, 213
impedance 104
permittivity 93, 145, 147, 213
susceptibility, electric and magnetic 53
permittivity, porous media 97
T technical support, COMSOL 14
repair tolerance 47
temperature
remanent displacement 54, 80
coefficient 96, 105, 131
remanent magnetic flux density 54
gradient 62, 205
resistance
temperature-dependent conductivity 96
coil 134
tensors
contact 107
anisotropic 211
electrical circuit resistor 182
Maxwell stress 33–34
electromagnetic quantity 75
theory
lumped parameters 35, 73
electric currents 121
model parameters 192
electric currents, shell interface 126
surface 104
electric fields 115
resistive energy 56
electrical circuit 191
resistive heating 96
electromagnetics 52
rotating machinery, magnetic interface
electrostatics 119
160
magnetic and electric fields 163
S saturation coefficient 125
magnetic and electric fields interface
INDEX| 221
179
magnetic fields, no currents interface
170
thermal conductivity 205
thin low permittivity gap 90
thin shells, conductive media 126
time-dependent analysis 27
time-harmonic quasi-statics 167
tolerance, relative repair 47
torque computations 33
torque, electromagnetic 33, 64, 71
total force 34, 63
touchstone export 38
transformation, Galilei 69
transient analysis 27
transistor, bipolar 191–193
transition boundary condition 147
typographical conventions 14
222 | I N D E X