Next Article in Journal
Finite-Time Contraction Stability and Optimal Control for Mosquito Population Suppression Model
Next Article in Special Issue
Evolutionary Approach for DISCO Profit Maximization by Optimal Planning of Distributed Generators and Energy Storage Systems in Active Distribution Networks
Previous Article in Journal
Research on Malware Detection Technology for Mobile Terminals Based on API Call Sequence
Previous Article in Special Issue
Modeling the Five-Element Windkessel Model with Simultaneous Utilization of Blood Viscoelastic Properties for FFR Achievement: A Proof-of-Concept Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Calculation of Stationary Magnetic Fields Based on the Improved Quadrature Formulas for a Simple Layer Potential

by
Igor Reznichenko
1,
Primož Podržaj
1,* and
Aljoša Peperko
1,2
1
Faculty of Mechanical Engineering, University of Ljubljana, 1000 Ljubljana, Slovenia
2
Institute of Mathematics, Physics and Mechanics, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(1), 21; https://doi.org/10.3390/math12010021
Submission received: 9 November 2023 / Revised: 12 December 2023 / Accepted: 19 December 2023 / Published: 21 December 2023

Abstract

:
This research deals with precision calculations of stationary magnetic fields of volumetric bodies. The electrostatics analogy allows for the use of a scalar magnetic potential, which reformulates the original task as a boundary value problem for the Laplace equation. We approach this with the boundary element method, specifically in distance ranges close to the magnetized surface, where existing standard numerical methods are known to struggle. This work presents an approach based on the improved quadrature formulas for the simple layer potential and its normal derivative. Numerical tests confirm significant improvements in calculating the field at any distance from the surface of the magnet.
MSC:
35J05; 35J25; 35Q60; 45E05; 65D30; 65D32; 65M38

1. Introduction

In order to accurately simulate and control a magnetic system, one needs a reliable way of obtaining the values of the fields involved. This research deals with calculations of stationary magnetic fields at close proximity to a magnetized object. Standard numerical methods in the 3D case are known to struggle when the point of interest shifts towards the surface of the object. In order to achieve an adequate representation of the field under such conditions, one may need to heavily reduce the size of mesh elements, which greatly increases computational costs. The boundary element method approach is a valid choice, since it is known to yield a significant benefit because of the unit reduction in the dimensions of the original system of equations. Here, we aim to develop a calculation approach that provides uniform convergence and uniform approximation of stationary magnetic fields, that is, at any distance from the surface.
Magnetic fields are used in various physical applications [1]. Coil design is crucial in magnetic resonance imaging [2]. In transcranial magnetic stimulation, coils are used for individualized field targeting. A magnetically induced electric field is adopted to modulate brain tissue activity as a means of non-invasive scanning technology. Computational optimization of coil placement improves the performance of such medical imaging systems [3]. Linearized models are widely used to determine controller parameters of magnetic systems. However, the settings of a model usually fluctuate in relation to the operating point. A robust closed-loop control strategy for systems with active magnetic bearings requires calculations of the mentioned parameters over the entirety of the operating range [4]. Precision calculations of magnetic fields are required to successfully implement complicated magnetic phenomena, like magnetic levitation [5,6]. A more detailed expression of the magnetic force is an important optimization approach to controlling open-loop unstable magnetic systems [5]. Overall, magnets are parts of various mechanical systems and are still studied with new methods [7,8].
All these devices go through a design stage where it is in the best interest of the developer to find out more about the future performance of magnetic components. This is the reason why various calculation techniques are used in magnetism, like the finite element method, variational computing, the boundary element method and so on. For simple surfaces and volumetric bodies, quite often, there exist explicit expressions for the magnetic fields of such objects. A symmetry axis, for example, reduces the dimensions of the problem and thus makes it much easier to acquire an exact formula. An infinite dimension of a body like the infinitely long cylinder often used in theoretical endeavors allows for a limit passage. Real magnetic objects, on the other hand, often possess complicated geometries. For this reason, numerical methods are the only means of calculation in such situations. But even in numerical calculations, one can see that standard quadrature formulas have their limitations and may diverge under certain conditions [9]. Therefore, the development of numerical methods that provide uniform approximation is important.

The Boundary Element Method

When modeling a physical process, the main efforts are usually aimed at solving differential equations that characterize a physical system in a specific area, whose boundaries may have a complex shape. The presence of complex boundaries in practice does not allow for the construction of an explicit solution to the problem, so numerical methods have become the only means of obtaining sufficient results. Standard numerical methods often consider differential equations directly in the form in which they are obtained, without special mathematical transformations [10]. In the finite difference method (FDR), differential operators are approximated by simpler algebraic (difference) operators acting in a sequence of nodes located in the region of interest. The finite element method (FEM) approximates the desired solution in the area under consideration by a sum of elements that are not infinitely small. However, there is a range of tasks in which these approaches face certain difficulties. Since accuracy directly depends on the density of the grid that determines the nodal points, a need to discretize an entire region of interest may lead to a large number of finite elements [11]. The resulting systems of a high order may be too large even for modern computers. This is especially noticeable in external three-dimensional problems, for example, in acoustic wave scattering [12].
The boundary element method (BEM) is viewed by many as a bit rarer alternative to the dominating approaches, like FEM and FDR. It is a collection of numerical methods for solving various boundary value problems for differential and integral equations [13]. A layer potential transforms the original problem into a boundary integral equation, which means that we only have to discretize the boundaries of the area of interest. Since a numerical solution to a boundary integral equation is usually found as a solution to a system of algebraic equations, the dimensions of the problem are reduced by one. When using the BEM for external boundary value problems, one does not need to stretch the calculation mesh for large distances, as it satisfies the conditions at infinity by default. This decrease in many applied problems has a decisive influence on the choice of this solution method [1,14,15]. Some researchers aim to combine, where possible, the benefits of both finite and boundary element methods [16,17].
The BEM is also know as the potential or the boundary integral equation method. It uses the principle of superposition. Simple and double layer potentials are used to prove the existence of solutions to boundary value problems for the Laplace and Helmholtz equations in simply connected domains [18,19]. It is a process of transition from the original problem to the integral Fredholm equation of the second kind [20]. The numerical algorithm for solving boundary value problems with layer potentials consists of two stages. First, we need to find the values of the potential density on the surface. These values are the numerical solutions to the boundary integral equation. Next, they are substituted into a quadrature formula for the designated layer potential; thus, we find the solution to the boundary value problem at any point in space.
Standard quadrature formulas for the simple layer potential for the Laplace equation do not provide uniform approximation and convergence. When reaching the surface where the potential density is defined, the values of the simple layer potential tend to infinity, wherein the simple layer potential is a continuous function everywhere, including the surface itself. Thus, the property of boundedness and continuity of the potential on the surface [9] is not satisfied. The insufficient accuracy in calculating potentials near the surface using standard quadrature formulas is called the boundary layer effect [21]. The problem of calculating surface potentials near singularity points is widely known [22,23]. The article [24] discusses the need to move from standard numerical integration formulas to more advanced ones when calculating surface potentials near the surface on which the potential density is specified.
In [25], a quadrature formula for the simple layer potential which preserves the property of continuity was obtained. Unlike standard formulas of numerical integration, the developed method provides uniform convergence and uniform approximation when moving the point of interest through a given surface. This provides additional accuracy at close proximity without the need for mesh refinement. In [26], this approach was applied to obtain a quadrature formula for the direct value of the normal derivative of the simple layer potential. It can be applied to solving boundary integral equations that occur when dealing with various problems in mathematical physics. This research applies these results to the physical task of determining stationary magnetic fields in a three-dimensional case. We are going to see if these formulas should be used to numerically determine the magnetic potential at any point in 3D space.

2. Materials and Methods

2.1. Electrostatics Analogy: A Scalar Magnetic Potential

A permanent magnet can be viewed as a collection of the so-called imaginary magnetic charges. The idea behind it is the analogy between the electrostatic and magnetostatic fields [1]. If the area of interest does not possess conduction currents, j = 0 , then div B = 0 , and
B = μ 0 H + M ,
where B is the magnetic flux density vector, μ 0 is the vacuum permeability, H is the magnetic field strength vector and M is the magnetization vector. Then, the density of imaginary magnetic charges ρ m can be formally introduced as
div B = μ 0 div H ρ m = 0 .
Since rot H = j and j = 0 ,
div H = div M = ρ m , rot H = 0 .
Now, let us compare (3) with the electrostatic equations
div E = ρ ϵ 0 , rot E = 0 ,
where ρ is the density of electrical charges and ϵ 0 is the dielectric permeability of vacuum. There is an analogy between Equations (3) and (4). The original magnetostatic problem can be addressed as an equivalent problem of electrostatics. The solution to (4) with constitutions E H and ρ / ϵ 0 ρ m is the solution to the original problem in (3).
If magnetization vector M is constant, then ρ m = 0 . However, one also needs to consider the surface imaginary magnetic charge density ( σ m ). It can be defined as
σ m = n , M 2 M 1 ,
where M 1 and M 2 are the magnetization vectors of media 1 and 2, with n being the normal vector from the first to the second area (see Figure 1).
So, if surface magnetization is presented in this method, we also have to formally constitute σ / ϵ 0 σ m , where σ is the density of the surface electric charges. Also, if in the electrostatic solution we also estimate polarization vector P , then P / ϵ 0 M is also required. The same formal procedure can be constructed for a magnetic field induced by stationary currents.
After solving the analogous electrostatic problem, the formal substitution is in place:
E H , ρ / ϵ 0 ρ m , σ / ϵ 0 σ m , P / ϵ 0 M
which gives the solution to the original magnetostatic problem.
Let us assume the absence of free currents and that the electric fields ( E ) (if any) present in the area of interest are constant. A scalar magnetic potential (u) is analogous to an electric potential. It is used to determine the field of a permanent magnet when its magnetization is known. Potential u uniquely provides the magnetic field at a given point in space. In a magnetic levitation train, for example, the field is determined in the vicinity of the accelerating channel [27]. A scalar magnetic potential (u) is introduced, so the magnetic field is found as
B = grad u .
This is appropriate when the free currents and the gradient of electric field E are absent or can be neglected.

2.2. Exterior Neumann Boundary Value Problem for the Laplace Equation in a Three-Dimensional Domain

Let us introduce in space the Cartesian coordinate system x = ( x 1 , x 2 , x 3 ) R 3 . We consider a simple, smooth, closed surface Γ of class C 2 enclosing a simply connected inner region D. Let the electric fields (if any) in region D be constant. The normal component of the magnetic flux vector ( B n ) is set as a boundary condition and is assumed to be a continuous function on Γ . Let us study an exterior Neumann boundary value problem for the Laplace equation.
Δ u = 0 , u C 1 ( R 3 D ¯ ) C 2 ( R 3 D ¯ ) , u ( x ) n Γ = f ( x ) , x Γ , f ( x ) C 1 ( Γ ) , u = O 1 | x | , | x | + ,
where / n is the normal derivative [20] on surface Γ from the outside at a point x. We assume that u ( x ) has a normal derivative on Γ . The solution is found in the form of a simple layer potential V 0 [ μ ] ( x ) .
V 0 [ μ ] ( x ) = 1 4 π y Γ μ ( y ) 1 | x y | d S y ,
where μ = μ ( y ) C 0 ( Γ ) is the potential density. The simple layer potential V 0 [ μ ] ( x ) is a harmonic function in the region R 3 D ¯ .
The normal derivative from the outside of surface Γ is given by the expression [20,26]
1 2 μ ( x ) + V 0 [ μ ] ( x ) n x Γ , x Γ ,
where
V 0 [ μ ] ( x ) n x = 1 4 π Γ μ ( y ) n x 1 | x y | d S y
is the direct value of the normal derivative of the simple layer potential for the Laplace equation at a point x Γ , while n x is a unit normal directed inwardly. By equating this expression to the function defined on Γ , we obtain the following equation for the values of the potential density ( μ ( x ) ):
1 2 μ ( x ) + V 0 [ μ ] ( x ) n x Γ = f ( x ) , x Γ .
Equation (12) is a linear Fredholm integral equation of the second kind, which, under given assumptions, is known to be uniquely solvable [20,28].

2.3. Surface Parametrization

Consider the following parametrization of surface Γ :
y = ( y 1 , y 2 , y 3 ) Γ , y 1 = y 1 ( u , v ) , y 2 = y 2 ( u , v ) , y 3 = y 3 ( u , v ) ;
u [ 0 , A ] , v [ 0 , B ] ;
y j ( u , v ) C 2 ( [ 0 , A ] × [ 0 , B ] ) , j = 1 , 2 , 3 .
Let us introduce N points u n with step h on the segment [ 0 , A ] and M points v m with step H on the segment [ 0 , B ] and consider a partition of the rectangle [ 0 , A ] × [ 0 , B ] (see Figure 2):
A = N h , B = M H , u n = ( n + 1 / 2 ) h , n = 0 , , N 1 ;
v m = ( m + 1 / 2 ) H , m = 0 , , M 1 .
Let us introduce the continuous numbering of all of the small rectangles sized h × H :
p = m N + n ,
then, 0 p N M 1 . If the number p is defined, then n , m are uniquely found as follows:
m = [ p / N ] , n = p [ p / N ] N ,
where [ · ] denotes the integer part of a non-negative real number. Under y p = y ( u n , v m ) , p = 0 , 1 , N M 1 , we shall consider a central point of a small rectangle ( u n , v m ) , where n and m are determined by (16).
It is known that at a point y = ( y 1 , y 2 , y 3 ) Γ , the components of a non-unit normal vector η ( y ) = ( η 1 ( y ) , η 2 ( y ) , η 3 ( y ) ) can be expressed as matrix determinants by the expressions
η 1 = ( y 2 ) u ( y 3 ) u ( y 2 ) v ( y 3 ) v , η 2 = ( y 3 ) u ( y 1 ) u ( y 3 ) v ( y 1 ) v , η 3 = ( y 1 ) u ( y 2 ) u ( y 1 ) v ( y 2 ) v .
Let | η ( y ) | = ( η 1 ( y ) ) 2 + ( η 2 ( y ) ) 2 + ( η 3 ( y ) ) 2 . For a surface integral of the first kind, it is known that
Γ F ( y ) d s y = 0 A d u 0 B F ( y ( u , v ) ) | η ( y ( u , v ) ) | d v .
Note that if | η ( y ( u , v ) ) | = 0 at some point, then the function | η ( y ( u , v ) ) | may be non-differentiable at this point. Therefore, we additionally require that
| η ( y ( u , v ) ) | C 2 ( [ 0 , A ] × [ 0 , B ] ) .
In addition, we require that
| η ( y ( u , v ) ) | > 0 , ( u , v ) ( ( 0 , A ) × ( 0 , B ) ) .
With such parametrization of surface Γ , the simple layer potential with density μ ( y ) C 0 ( Γ ) is expressed as
V 0 [ μ ] ( x ) = 1 4 π Γ μ ( y ) | x y | d S y = 1 4 π 0 A d u 0 B μ ( y ( u , v ) ) | x y ( u , v ) | | η ( y ( u , v ) ) | d v =
= 1 4 π n = 0 N 1 m = 0 M 1 u n h / 2 u n + h / 2 v m H / 2 v m + H / 2 μ ( y ( u , v ) ) | x y ( u , v ) | | η ( y ( u , v ) ) | d u d v ,
where
| x y ( u , v ) | = ( x 1 y 1 ( u , v ) ) 2 + ( x 2 y 2 ( u , v ) ) 2 + ( x 3 y 3 ( u , v ) ) 2 .
On the other hand, the direct value of the normal derivative of the simple layer potential is expressed as
V 0 [ μ ] ( x ) n x = 1 4 π Γ μ ( y ) n x 1 | x y | d s y = 1 4 π | η ( x ) | ×
× 0 A d u 0 B μ ( y ( u , v ) ) | η ( y ( u , v ) ) | j = 1 3 η j ( x ) ( x j y j ( u , v ) ) | x y ( u , v ) | 3 d v =
= 1 4 π | η ( x ) | n = 0 N 1 m = 0 M 1 u n h / 2 u n + h / 2 d u v m H / 2 v m + H / 2 μ ( y ( u , v ) ) | η ( y ( u , v ) ) | ×
× j = 1 3 η j ( x ) ( x j y j ( u , v ) ) | x y ( u , v ) | 3 d v .
The double integrals in (21) and (22) are referred to as the canonical integrals. The numerical calculation of these expressions is the subject of rigorous research. In most applications, standard quadrature formulas of numerical integration are used for this task. But, as stated above, this approach struggles in ranges close to surface Γ . In this work, we are going to apply certain results in numerical methods [25,26] to the solution to the boundary value problem for the Laplace equation, which originates from the problem of finding the scalar magnetic potential. However, we shall use the standard formulas of numerical integration as a means of comparison.

2.4. Application of the Standard Quadrature Formulas for the Simple Layer Potential and Its Normal Derivative

The standard quadrature formula for the direct value of the simple layer potential on surface Γ is often used in applied calculations (Chapter 2, [9]) It is obtained by replacing the canonical integrals at points x y ( u n ^ , v m ^ ) with their approximate values at the centers of the corresponding rectangles while zeroing the canonical integral over a piece of surface Γ centered at the point x = y ( u n ^ , v m ^ )
V 0 [ μ ] ( x ) n x x = y ( u n ^ , v m ^ ) Γ 1 4 π | η n ^ m ^ | n = 0 , m = 0 ( n , m ) ( n ^ , m ^ ) n = N 1 , m = M 1 μ n m | η n m | B n m ( x ) ,
where
B n m ( x ) = h H j = 1 3 η j ( x ) ( y j ( u n , v m ) x j ) | x y ( u n , v m ) | 3 .
Using continuous numbering (15), Formula (23) takes the form
V 0 [ μ ] ( x ) n x x = y ( u n ^ , v m ^ ) Γ 1 4 π | η p ^ | p = 0 p p ^ N M 1 μ p | η p | B p ( x ) ,
where μ p = μ ( y p ) = μ n m are the potential density values at the centers of small rectangles y p and B p ( x ) = B n m ( x ) .
Thus, for a given parametrization of surface Γ , integral Equation (12) is reduced to a system of linear algebraic equations with respect to N · M values of the unknown potential density function μ ( y p ) = μ p at points y p = y ( u n , v m ) .
1 2 μ p ^ + 1 4 π | η p ^ | p = 0 p p ^ N M 1 μ p | η p | B p p ^ = f p ^ , p ^ = 0 , 1 , 2 , , N M 1 ,
where f p ^ = f ( y p ^ ) are the values of the boundary condition function on surface Γ and B p ( x ) = B p ( y ( u n ^ , v m ^ ) ) = B p ( y p ^ ) = B p p ^ . Let us multiply system (26) by 4 π and write it in the general form
p = 0 N M 1 2 π Δ p p ^ + | η p | | η p ^ | B p p ^ 1 Δ p p ^ μ p = 4 π f p ^ ,
where p ^ = 0 , 1 , 2 , , N M 1 and
Δ p p ^ = 1 , i f p = p ^ , 0 , i f p p ^ .
We multiply each p ^ -th equation of the system by | η p ^ |
p = 0 N M 1 2 π | η p ^ | Δ p p ^ + | η p | B p p ^ 1 Δ p p ^ μ p = 4 π | η p ^ | f p ^ ,
where p ^ = 0 , 1 , 2 , , N M 1 . Equation (28) can be written in matrix form as seen in (A1) in Appendix A. From this system of equations, we obtain the values of the potential density μ p ^ = μ ( y p ^ ) at the centers of small rectangles y p ^ , which will then be used to calculate the simple layer potential everywhere outside Γ , thus solving the original boundary value problem.
To calculate the potential itself, as a means of comparison, we are going use the standard quadrature formula:
V 0 [ μ ] ( x ) 1 4 π n = 0 , m = 0 n = N 1 , m = M 1 μ n m D n m ( x ) = 1 4 π p = 0 N M 1 μ p D p ( x ) ,
where
D n m = h H | η ( y ( u n , v m ) ) | | x y ( u n , v m ) |
and D p ( x ) = D n m ( x ) . It is obtained by replacing the canonical integrals at points y ( u n , v m ) Γ to its approximate values at the centers of the corresponding rectangles. This formula, as we are going to see in the Results and Discussion section, tends to infinity when point x tends to the surface. In this case, the same is often true about more complex numerical integration formulas [9,24]. Thus, one of the ways to reduce the calculation error is the reduction in steps h , H which leads to a large number of boundary elements. This eliminates the main benefit of the boundary element method in close proximity to a surface [9].

2.5. Application of the Improved Quadrature Formulas for the Simple Layer Potential and Its Normal Derivative

In [26], a quadrature formula for the direct value of the normal derivative of the simple layer potential on surface Γ was explicitly obtained.
V k [ μ ] ( x ) n x x = y ( u n ^ , v m ^ ) Γ 1 4 π μ n ^ m ^ J n ^ m ^ + 1 4 π | η ( x ) | ×
× n = 0 , m = 0 ( n , m ) ( n ^ , m ^ ) n = N 1 , m = M 1 μ n m | η ( y ( u n , v m ) ) | T n m ( x ) ,
where the integrals J n ^ m ^ and T n m ( x ) are calculated explicitly in [26]. Using continuous numbering (15), Formula (30) becomes
V 0 [ μ ] ( x ) n x x = y ( u n ^ , v m ^ ) Γ 1 4 π μ n ^ m ^ J n ^ m ^ + 1 4 π | η n ^ m ^ | n = 0 , m = 0 ( n , m ) ( n ^ , m ^ ) n = N 1 , m = M 1 μ n m | η n m | T n m ( x ) =
= 1 4 π μ p ^ J p ^ + 1 4 π | η p ^ | p = 0 p p ^ N M 1 μ p | η p | T p ( x ) ,
where μ p = μ ( y p ) = μ n m are the values of the potential density at the centers of small rectangles y p , T p ( x ) = T n m ( x ) and | η p | = | η ( y p ) | = | η n m | are the absolute values of the normal vector at y p . The integral J p ^ = J n ^ m ^ , the density value μ p ^ = μ ( y p ^ ) = μ n ^ m ^ and the absolute value of the normal vector | η p ^ | = | η ( y p ^ ) | = η n ^ m ^ correspond to the case when point x lies in the region of integration. In this case, the integration is carried out over a small rectangle centered at the point ( u n ^ , v m ^ ) , to which the dot y p ^ = y ( u n ^ , v m ^ ) = x on surface Γ corresponds.
Therefore, with the given parametrization of surface Γ , integral Equation (12) is reduced to the system of linear algebraic equations for N · M values of the unknown potential density function μ ( y p ) = μ p at the points y p = y ( u n , v m ) .
1 2 μ p ^ + 1 4 π μ p ^ J p ^ + 1 4 π | η p ^ | p = 0 p p ^ N M 1 μ p | η p | T p p ^ = f p ^ , p ^ = 0 , 1 , 2 , , N M 1 ,
where f p ^ = f ( y p ^ ) are the values of the boundary condition function given on surface Γ , while T p ( x ) = T p ( y ( u n ^ , v m ^ ) ) = T p ( y p ^ ) = T p p ^ . Here, we multiply system (32) by 4 π and write it in a general form:
p = 0 N M 1 J p ^ + 2 π Δ p p ^ + | η p | | η p ^ | T p p ^ 1 Δ p p ^ μ p = 4 π f p ^ ,
where p ^ = 0 , 1 , 2 , , N M 1 and
Δ p p ^ = 1 , if p = p ^ , 0 , if p p ^ .
Next, each p ^ -th equation of system (33) is multiplied by | η p ^ | .
p = 0 N M 1 | η p ^ | J p ^ + 2 π Δ p p ^ + | η p | T p p ^ 1 Δ p p ^ μ p = 4 π | η p ^ | f p ^ ,
where p ^ = 0 , 1 , 2 , , N M 1 . Equation (34) can be written in matrix form as seen in (A2) in Appendix A. By reversing the matrix on the left side of the equality in (A2) and multiplying the inverse matrix on the left by the column with the values of the boundary condition function, we obtain the density value capacity μ p ^ = μ ( y p ^ ) at the centers of small rectangles y p ^ , which will then be used to calculate the simple layer potential everywhere outside Γ , thereby solving the original boundary value problem.
To calculate the simple layer potential, we use the quadrature formula obtained in [25]
V 0 [ μ ] ( x ) 1 4 π n = 0 N 1 m = 0 M 1 μ n m θ n m ( x ) ,
where the integral θ n m ( x ) is explicitly derived in [25]. This formula preserves the property of continuity of the simple layer potential and approximates this function uniformly.

3. Results and Discussion

In [25], a quadrature formula for the simple layer potential which provides uniform approximation was obtained. A quadrature formula for the normal derivative of the simple layer potential with improved accuracy over standard numerical integration was suggested in [26]. We adopt these results to solve a particular magnetostatics problem, which is an external Neumann boundary value problem for the values of a scalar magnetic potential.

3.1. Numerical Tests

Testing was carried out for the case where surface Γ is a sphere of unit radius which is given parametrically by
y 1 ( u , v ) = cos u sin v , y 2 ( u , v ) = sin u sin v , y 3 ( u , v ) = cos v ,
where ( u , v ) [ 0 , 2 π ] × [ 0 , π ] .
Test 1. Under a boundary condition of the form f ( x ) = 3 / 5 · P 2 ( cos ϑ ) , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = P 2 ( cos ϑ ) 5 | x | 2 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = P 2 ( cos ϑ ) , x Γ ,
where ϑ is the zenith angle in spherical coordinates centered at the origin and
P 2 ( cos ϑ ) = 3 cos 2 ϑ 1 2
is a Legendre polynomial.
Test 2. Under a boundary condition of the form f ( x ) = 4 / 7 · P 3 ( cos ϑ ) , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = P 3 ( cos ϑ ) 7 | x | 3 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = P 3 ( cos ϑ ) , x Γ ,
where ϑ is the zenith angle in spherical coordinates centered at the origin and
P 3 ( cos ϑ ) = 5 cos 3 ϑ 3 cos ϑ 2
is a Legendre polynomial.
Test 3. Under a boundary condition of the form f ( x ) = 5 / 9 · P 4 ( cos ϑ ) , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = P 4 ( cos ϑ ) 9 | x | 4 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = P 4 ( cos ϑ ) , x Γ ,
where ϑ is the zenith angle in spherical coordinates centered at the origin and
P 4 ( cos ϑ ) = 35 cos 4 ϑ 30 cos 2 ϑ + 3 8
is a Legendre polynomial.
Test 4. Under a boundary condition of the form f ( x ) = 3 / 5 · cos 2 φ sin 2 ϑ , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = cos 2 φ sin 2 ϑ 5 | x | 2 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = cos 2 φ sin 2 ϑ , x Γ ,
where ϑ and φ are the zenith and azimuth angles in spherical coordinates centered at the origin.
Test 5. Under a boundary condition of the form f ( x ) = 4 / 7 · cos 3 φ sin 3 ϑ , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = cos 3 φ sin 3 ϑ 7 | x | 3 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = cos 3 φ sin 3 ϑ , x Γ ,
where ϑ and φ are the zenith and azimuth angles in spherical coordinates centered at the origin.
Test 6. Under a boundary condition of the form f ( x ) = 5 / 9 · cos 4 φ sin 4 ϑ , x Γ , the solution to the external Neumann boundary value problem for the Laplace equation is known and is given by the expression
u ( x ) = cos 4 φ sin 4 ϑ 9 | x | 4 when | x | > 1 .
In this case, the density of the simple layer potential is equal to
μ ( x ) = cos 4 φ sin 4 ϑ , x Γ ,
where ϑ and φ are the zenith and azimuth angles in spherical coordinates centered at the origin.

3.2. Calculations of the Potential Density

The solution to the external Neumann boundary value problem by the described method consists of two stages. In the first stage, using one of the two given quadrature formulas for the direct value of the normal derivative of the simple layer potential, we obtain the values of the potential density μ p , p = 0 , 1 , , N M 1 , at the centers of small rectangles, solving the corresponding system of linear algebraic equations. This can be either quadrature Formula (31), constructed in [26], or the standard quadrature formula for the normal derivative of the simple layer potential in (25). The point coordinates that were used to estimate the maximum absolute error are (see Figure 3)
x j q l = y j ( u q , v l ) , j = 1 , 2 , 3 ,
u q = 2 π 2 N q , q = 0 , , 2 N ; v l = π 2 M l , l = 1 , , 2 M 1 ,
where y j ( u , v ) is determined by the expressions in (36). That is, these points are located on the unit sphere at the centers of the small rectangles (see Figure 2), the midpoints of the boundaries between them and the intersections of these boundaries. Note that these points are distributed over the entire unit sphere.
The calculations were carried out for various values of M and N. The step values are determined as h = 2 π / N , H = π / M . If N / 2 = M = 10 , then h = H 0.31 ; if N / 2 = M = 20 , then h = H 0.16 ; if N / 2 = M = 40 , then h = H 0.079 .
First, let us consider the calculation error of potential density. The first number in the cells of Table 1 is the maximum absolute value of error of potential density μ p , acquired with the standard quadrature Formula (25) for the normal derivative of the simple layer potential. The second number after the semicolon is the maximum absolute value of error of potential density μ p , acquired with the improved quadrature Formula (31) for the normal derivative [26].
Let us also consider the average absolute error over all reference points (15) in Equation (12). The first number in the cells of Table 2 is the mean absolute error of potential density μ p , acquired with the standard quadrature Formula (25). The second number (after the semicolon) is the mean absolute error of potential density μ p , acquired with the improved quadrature Formula (31).

3.3. Calculations of the Potential—The Solution to the Neumann Problem

In the second stage, the obtained values of potential density μ p are used to calculate the simple layer potential at any point in the region R 3 D ¯ using one of the two formulas. It can be either (35) from [25] or the standard quadrature formula for the simple layer potential (29).
In the numerical tests, the values of potential density μ p , obtained using the improved Formula (31), are only used in Formula (35). Similarly, the values of the potential density μ p obtained using the standard Formula (25) we will use only in Formula (29).
The calculations of the simple layer potential solutions of the original external Neumann boundary value problem were carried out at some points on the auxiliary spheres with centers at the origin and radii R = 1 + Δ R . Thus, the auxiliary spheres are outside of the sphere of unit radius, on which the boundary condition or the potential density is given, at a distance Δ R from it. Then, the values of absolute errors at these points were calculated. For each auxiliary sphere the maximum values of these errors are determined.
The point coordinates that were used to estimate the maximum absolute error are (see Figure 3)
x j q l = R y j ( u q , v l ) , j = 1 , 2 , 3 ,
u q = 2 π 2 N q , q = 0 , , 2 N ; v l = π 2 M l , l = 1 , , 2 M 1 ,
where y j ( u , v ) is determined by the expressions in (36) and R is the auxiliary sphere radius.
Figure 3. Points x on the test spheres of radii equal to 1 + Δ R are chosen according to (50). The maximum values of absolute error of the simple layer potential among all of these points are used in Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8. If Δ R = 0 , then it is the first stage of the numerical solution, which is the determination of the potential density values ( μ p ).
Figure 3. Points x on the test spheres of radii equal to 1 + Δ R are chosen according to (50). The maximum values of absolute error of the simple layer potential among all of these points are used in Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8. If Δ R = 0 , then it is the first stage of the numerical solution, which is the determination of the potential density values ( μ p ).
Mathematics 12 00021 g003
That is, these points are located at a distance Δ R outside of the unit sphere above the centers of the small rectangles (see Figure 2), the midpoints of the boundaries between them and the intersections of these boundaries. Note that these points are distributed over the entire sphere.
The calculations were carried out for various values of M and N. The step values were determined as h = 2 π / N , H = π / M . If N / 2 = M = 10 , then h = H 0.31 ; if N / 2 = M = 20 , then h = H 0.16 ; if N / 2 = M = 40 , then h = H 0.079 .
Now, let us consider the calculation error of the solution to the external Neumann boundary problem. The first numbers in the cells of Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8 are the maximum absolute values of error of the solution, acquired with the standard quadrature formula for the simple layer potential (29). The second numbers after the semicolon are the maximum absolute values of error of the solution, acquired with the improved quadrature Formula (35) for the simple layer potential [25].
Table 1 shows that the maximum absolute values of error of potential density μ p , acquired with the improved quadrature Formula (31) from [26], are a few times lower than those of the standard quadrature Formula (25). The same can be observed about the mean absolute values of error of potential density in Table 2, while in tests 4-6, the values acquired with the improved quadrature Formula (31) are lower by an order of magnitude. In both tables, Formula (31) shows the first order of convergence in H for tests 1-3 and the third order of convergence in H for tests 4–6.
Let us perform an estimate of the maximum absolute value of error of the numerical solution to the original problem in tests 1–6 from Table 3, Table 4, Table 5, Table 6, Table 7 and Table 8. From them, it follows that the standard Formula (29) for the simple layer potential does not provide uniform approximation and uniform convergence of the solution in the form of the simple layer potential, since at a fixed step H, the error tends to infinity when approaching surface Γ . That is why this formula is not the priority choice for solving boundary value problems for the Laplace equation near a surface Γ .
Quadrature Formula (35) provides uniform approximation of the solution to the original problem. This remains true even for increasingly oscillating test functions, like in test 3 or 6. Therefore, Formula (35) retains the property of continuity of the simple layer potential while heading towards surface Γ . This is why both Formulas (31) and (35) should be used for numerically solving various boundary value problems for the Laplace equation, like the scalar magnetic potential.

4. Conclusions

  • In this work, a new method for determining three-dimensional stationary magnetic fields is proposed. Based on the conception of a magnetic potential, this task can be formulated as a boundary value problem for the Laplace equation with a Neumann condition on a magnetized surface. This work presents a full solution using the boundary element method (BEM). With the use of a simple layer potential, a three-dimensional magnetostatic problem is reduced to a two-dimensional boundary Fredholm integral equation that is uniquely solvable.
  • While, in an external boundary value problem, the BEM automatically satisfies the conditions at infinity, it is known to struggle in close proximity to the boundary. The non-integrable singularity is addressed by applying the improved quadrature formulas for the simple layer potential (35) and its normal derivative (31) [25,26]. For the values of the potential density, a system of linear algebraic equations was constructed, the matrix form of which can be seen in Appendix A. For the same task, standard quadrature Formulas of numerical integration were used as a reference.
  • With the mean and maximum absolute values of error of the potential density being significantly lower (up to an order of magnitude) than that, when acquired with the standard approach, Formula (31) shows improved accuracy. The improved Formula (35) for the simple layer potential provides uniform approximation of the solution, unlike the standard Formula (29), which tends to infinity. The developed approach provides improved accuracy and approximates to the solution uniformly at any distance from the surface, as was confirmed with numerical tests. This remains true even for increasingly oscillating test functions. Therefore, the developed approach can be used to solve the magnetostatic problem at any distance from a volumetric body.

Author Contributions

Conceptualization, I.R., P.P. and A.P.; methodology, I.R., P.P. and A.P.; software, I.R.; validation, I.R., P.P and A.P.; formal analysis, I.R.; investigation, I.R.; resources, I.R., P.P. and A.P.; data curation, I.R., P.P. and A.P.; writing—original draft preparation, I.R.; writing—review and editing, I.R., P.P. and A.P.; visualization, I.R., P.P. and A.P.; supervision, P.P. and A.P. All authors have read and agreed to the published version of the manuscript.

Funding

P. Podržaj was supported by Slovenian Research Agency, grant number P2-0270. A. Peperko was partially supported by ARIS-Slovenian Agency for Research and Innovation (grants P1-0222 and J2-2512).

Data Availability Statement

The data used in this research are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Here, we write system (28) in matrix form:
2 π | η 0 | | η 1 | B 1 0 | η p ^ 1 | B p ^ 1 0 | η p ^ | B p ^ 0 | η p ^ + 1 | B p ^ + 1 0 | η N M 1 | B N M 1 0 | η 0 | B 0 1 2 π | η 1 | | η p ^ 1 | B p ^ 1 1 | η p ^ | B p ^ 1 | η p ^ + 1 | B p ^ + 1 1 | η N M 1 | B N M 1 1 | η 0 | B 0 p ^ | η 1 | B 1 p ^ | η p ^ 1 | B p ^ 1 p ^ 2 π | η p ^ | | η p ^ + 1 | B p ^ + 1 p ^ | η N M 1 | B N M 1 p ^ | η 0 | B 0 p ^ + 1 | η 1 | B 1 p ^ + 1 | η p ^ 1 | B p ^ 1 p ^ + 1 | η p ^ | B p ^ p ^ + 1 2 π | η p ^ + 1 | | η N M 1 | B N M 1 p ^ + 1 | η 0 | B 0 N M 1 | η 1 | B 1 N M 1 | η p ^ 1 | B p ^ 1 N M 1 | η p ^ | B p ^ N M 1 | η p ^ + 1 | B p ^ + 1 N M 1 2 π | η N M 1 | ×
× μ 0 μ 1 μ N M 1 = 4 π | η 0 | f 0 | η 1 | f 1 | η N M 1 | f N M 1 .
Also, let us write system (34) in matrix form:
| η 0 | ( J 0 + 2 π ) | η 1 | T 1 0 | η p ^ 1 | T p ^ 1 0 | η p ^ | T p ^ 0 | η p ^ + 1 | T p ^ + 1 0 | η N M 1 | T N M 1 0 | η 0 | T 0 1 | η 1 | ( J 1 + 2 π ) | η p ^ 1 | T p ^ 1 1 | η p ^ | T p ^ 1 | η p ^ + 1 | T p ^ + 1 1 | η N M 1 | T N M 1 1 | η 0 | T 0 p ^ | η 1 | T 1 p ^ | η p ^ 1 | T p ^ 1 p ^ | η p ^ | ( J p ^ + 2 π ) | η p ^ + 1 | T p ^ + 1 p ^ | η N M 1 | T N M 1 p ^ | η 0 | T 0 p ^ + 1 | η 1 | T 1 p ^ + 1 | η p ^ 1 | T p ^ 1 p ^ + 1 | η p ^ | T p ^ p ^ + 1 | η p ^ + 1 | ( J p ^ + 1 + 2 π ) | η N M 1 | T N M 1 p ^ + 1 | η 0 | T 0 N M 1 | η 1 | T 1 N M 1 | η p ^ 1 | T p ^ 1 N M 1 | η p ^ | T p ^ N M 1 | η p ^ + 1 | T p ^ + 1 N M 1 | η N M 1 | ( J N M 1 + 2 π ) ×
× μ 0 μ 1 μ N M 1 = 4 π | η 0 | f 0 | η 1 | f 1 | η N M 1 | f N M 1 .

References

  1. Reznichenko, I.; Podržaj, P.; Peperko, A. Control theory and numerical analysis of magnetic field involving mechanical systems. In Proceedings of the 17th International Symposium on Operational Research in Slovenia, SOR’23, Slovenian Society Informatika (SSI), Section for Operational Research (SOR), Bled, Slovenia, 20–22 September 2023. [Google Scholar]
  2. Cobos Sanchez, C.; Power, H.; Garcia, S.G.; Rubio Bretones, A. Quasi-static multi-domain inverse boundary element method for MRI coil design with minimum induced E-field. Eng. Anal. Bound. Elem. 2011, 35, 264–272. [Google Scholar] [CrossRef]
  3. Gomez, L.J.; Dannhauer, M.; Peterchev, A.V. Fast computational optimization of TMS coil placement for individualized electric field targeting. NeuroImage 2021, 228, 117696. [Google Scholar] [CrossRef] [PubMed]
  4. Polajžer, B.; Štumberger, G.; Ritonja, J.; Dolinar, D. Variations of Active Magnetic Bearings Linearized Model Parameters Analyzed by Finite Element Computation. IEEE Trans. Magn. 2008, 44, 1534–1537. [Google Scholar] [CrossRef]
  5. Reznichenko, I.; Podržaj, P. Design Methodology for a Magnetic Levitation System Based on a New Multi-Objective Optimization Algorithm. Sensors 2023, 23, 979. [Google Scholar] [CrossRef] [PubMed]
  6. Chen, Q.; Li, J. Field Dynamic Balancing for Magnetically Suspended Turbomolecular Pump. Sensors 2023, 23, 6168. [Google Scholar] [CrossRef] [PubMed]
  7. Pashkovskiy, A.; Tkachev, A.; Bahvalov, U. New Standard Elements for Calculating Magnetic Fields of Electromechanical and Magnetic Systems with Permanent Magnets. In Proceedings of the 2018 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), Moscow, Russia, 15–18 May 2018; pp. 1–5. [Google Scholar] [CrossRef]
  8. Yu, Y.; Yue, H.; Wen, F.; Zhao, H.; Zhou, A. Electromagnetic Force on an Aluminum Honeycomb Sandwich Panel Moving in a Magnetic Field. Sensors 2023, 23, 8577. [Google Scholar] [CrossRef] [PubMed]
  9. Brebbia, C.A.; Telles, J.C.F.; Wrobel, L.C. Boundary Element Techniques Theory and Applications in Engineering; Springer: Berlin/Heidelberg, Germany, 1984. [Google Scholar]
  10. Samarskii, A.A.; Nikolaev, E.S. Numerical Methods for Grid Equations; Birkhauser: Basel, Switzerland, 1989. [Google Scholar]
  11. Samarskii, A.A.; Matus, P.P.; Vabishchevich, P.N. Difference Schemes with Operator Factors; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
  12. Colton, D.; Kress, R. Integral Equation Methods in Scattering Theory; John Wiley & Sons: New York, NY, USA, 1983. [Google Scholar]
  13. Banerjee, P.; Butterfield, R. Boundary Element Methods in Engineering Science; McGraw-Hill Inc.: London, UK, 1981. [Google Scholar]
  14. Kalitkin, N.N.; Alshina, E.A. Numerical Methods: Numerical Analysis; Academia: Moscow, Russia, 2013. [Google Scholar]
  15. Kalitkin, N.N.; Koryakin, P.V. Numerical Methods: Mathematical Physics; Academia: Moscow, Russia, 2013. [Google Scholar]
  16. Lobry, J. A FEM-Green Approach for Magnetic Field Problems with Open Boundaries. Mathematics 2021, 9, 1662. [Google Scholar] [CrossRef]
  17. Radcliffe, A. Quasi-Stable, Non-Magnetic, Toroidal Fluid Droplets in a Ferrofluid with Annular Magnetic Field. Magnetism 2022, 2, 380–391. [Google Scholar] [CrossRef]
  18. Sun, Y.; Wei, X.; Zhuang, Z.; Luan, T. A Numerical Method for Filtering the Noise in the Heat Conduction Problem. Mathematics 2019, 7, 502. [Google Scholar] [CrossRef]
  19. Sun, Y.; Hao, S. A Numerical Study for the Dirichlet Problem of the Helmholtz Equation. Mathematics 2021, 9, 1953. [Google Scholar] [CrossRef]
  20. Vladimirov, V.S. Equations of Mathematical Physics; Mir Publishers: Moscow, Russia, 1981. [Google Scholar]
  21. Khatri, S.; Kim, A.; Cortez, R.; Carvalho, C. Close evaluation of layer potentials in three dimensions. J. Comput. Phys. 2020, 423, 109798. [Google Scholar] [CrossRef]
  22. Klockner, A.; Barnett, A.; Greengard, L.; O’Neil, M. Quadrature by expansion: A new method for the evaluation of layer potentials. J. Comput. Phys. 2013, 252, 332–349. [Google Scholar] [CrossRef]
  23. Epstein, C.L.; Greengard, L.; Klockner, A. On the convergence of local expansions of layer potentials. Siam J. Numer. Anal. 2013, 51, 2660–2679. [Google Scholar] [CrossRef]
  24. Af Klinteberg, L.; Sorgentone, C.; Tornberg, A.K. Quadrature error estimates for layer potentials evaluated near curved surfaces in three dimensions. Comput. Math. Appl. 2022, 111, 1–19. [Google Scholar] [CrossRef]
  25. Krutitskii, P.A.; Fedotova, A.D.; Kolybasova, V.V. Quadrature formula for the simple layer potential. Differ. Equations 2019, 55, 1226–1241. [Google Scholar] [CrossRef]
  26. Krutitskii, P.A.; Reznichenko, I.O.; Kolybasova, V.V. Quadrature formula for the direct value of the normal derivative of the single layer potential. Differ. Equations 2020, 56, 1237–1255. [Google Scholar] [CrossRef]
  27. Han, H.S.; Kim, D.S. Magnetic Levitation: Maglev Technology and Applications; Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
  28. Krutitskii, P.A. A mixed problem for the Laplace equation in three-dimensional multiply connected domains. Differ. Equ. 1999, 35, 1193–1200. [Google Scholar]
Figure 1. The normal vector ( n ) between the two magnetized media ( M 1 and M 2 ).
Figure 1. The normal vector ( n ) between the two magnetized media ( M 1 and M 2 ).
Mathematics 12 00021 g001
Figure 2. The rectangle [ 0 , A ] × [ 0 , B ] is divided into N × M small rectangles, whose centers are denoted as ( u n , v m ) and are used as reference points in Equation (12).
Figure 2. The rectangle [ 0 , A ] × [ 0 , B ] is divided into N × M small rectangles, whose centers are denoted as ( u n , v m ) and are used as reference points in Equation (12).
Mathematics 12 00021 g002
Table 1. The maximum absolute error of potential density in tests 1–3.
Table 1. The maximum absolute error of potential density in tests 1–3.
Test Number N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
Test 10.039; 0.0150.021; 0.00960.019; 0.0057
Test 20.038; 0.0140.02; 0.00910.018; 0.0055
Test 30.031; 0.0140.019; 0.00880.018; 0.0054
Test 40.081; 0.00350.042; 0.00110.021; 0.0003
Test 50.087; 0.00380.044; 0.00140.022; 0.00039
Test 60.088; 0.00370.043; 0.00150.022; 0.00047
Table 2. The mean absolute error of potential density in tests 1–3.
Table 2. The mean absolute error of potential density in tests 1–3.
Test Number N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
Test 10.023; 0.00430.013; 0.00140.0066; 0.00047
Test 20.02; 0.00410.012; 0.00130.0059; 0.00045
Test 30.018; 0.00450.01; 0.00140.0053; 0.00046
Test 40.024; 0.00120.012; 0.000350.0059; 9.5 × 10 5
Test 50.023; 0.00110.011; 0.000360.0054; 9.9 × 10 5
Test 60.021; 0.0010.0099; 0.000360.0051; 0.00011
Table 3. Maximum absolute values of error of quadrature formulas in test 1.
Table 3. Maximum absolute values of error of quadrature formulas in test 1.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.018; 0.0130.0047; 0.00560.0021; 0.0018
0.060.039; 0.0150.0077; 0.00770.0024; 0.0029
0.030.098; 0.0160.02; 0.00940.004; 0.0045
0.010.35; 0.0160.083; 0.010.017; 0.0056
0.0013.86; 0.0160.98; 0.010.24; 0.0058
0.000138.9; 0.0169.97; 0.012.48; 0.0058
Table 4. Maximum absolute values of error of quadrature formulas in test 2.
Table 4. Maximum absolute values of error of quadrature formulas in test 2.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.017; 0.0110.0040; 0.00500.0010; 0.0016
0.060.030; 0.0130.0069; 0.00700.0017; 0.0027
0.030.082; 0.0140.015; 0.00870.0034; 0.0042
0.010.30; 0.0140.066; 0.00940.013; 0.0054
0.0013.36; 0.0140.80; 0.00940.19; 0.0056
0.000133.9; 0.0148.18; 0.00942.01; 0.0056
Table 5. Maximum absolute values of error of quadrature formulas in test 3.
Table 5. Maximum absolute values of error of quadrature formulas in test 3.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.017; 0.0110.0036; 0.00470.00076; 0.0015
0.060.028; 0.0130.0065; 0.00670.0014; 0.0026
0.030.059; 0.0140.014; 0.00830.0031; 0.0041
0.010.22; 0.0140.058; 0.00900.012; 0.0053
0.0012.4; 0.0140.70; 0.00900.18; 0.0055
0.000124.2; 0.0147.19; 0.00901.84; 0.0055
Table 6. Maximum absolute values of error of quadrature formulas in test 4.
Table 6. Maximum absolute values of error of quadrature formulas in test 4.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.020; 0.0150.0098; 0.0150.012; 0.015
0.060.065; 0.0100.0067; 0.0100.0069; 0.010
0.030.19; 0.00680.033; 0.00570.0035; 0.0055
0.010.70; 0.0100.16; 0.00260.032; 0.0021
0.0017.74; 0.0151.96; 0.00350.48; 0.00044
0.000178.2; 0.01620; 0.00414.96; 0.00097
Table 7. Maximum absolute values of error of quadrature formulas in test 5.
Table 7. Maximum absolute values of error of quadrature formulas in test 5.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.022; 0.0120.0065; 0.010.0077; 0.0099
0.060.067; 0.00950.0055; 0.00730.0046; 0.0069
0.030.19; 0.00720.033; 0.00450.0028; 0.0039
0.010.72; 0.0130.16; 0.00240.031; 0.0016
0.0017.97; 0.0181.98; 0.00410.48; 0.00049
0.000180.5; 0.01920.1; 0.00474.97; 0.0011
Table 8. Maximum absolute values of error of quadrature formulas in test 6.
Table 8. Maximum absolute values of error of quadrature formulas in test 6.
Δ R N / 2 = M = 10 N / 2 = M = 20 N / 2 = M = 40
0.10.020; 0.0190.012; 0.0150.013; 0.015
0.060.062; 0.0160.010; 0.0110.0086; 0.010
0.030.19; 0.0130.028; 0.00690.0055; 0.0061
0.010.72; 0.0170.15; 0.00340.030; 0.0024
0.0017.98; 0.0221.88; 0.00490.47; 0.00067
0.000180.6; 0.02219.2; 0.00554.92; 0.0013
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Reznichenko, I.; Podržaj, P.; Peperko, A. Calculation of Stationary Magnetic Fields Based on the Improved Quadrature Formulas for a Simple Layer Potential. Mathematics 2024, 12, 21. https://doi.org/10.3390/math12010021

AMA Style

Reznichenko I, Podržaj P, Peperko A. Calculation of Stationary Magnetic Fields Based on the Improved Quadrature Formulas for a Simple Layer Potential. Mathematics. 2024; 12(1):21. https://doi.org/10.3390/math12010021

Chicago/Turabian Style

Reznichenko, Igor, Primož Podržaj, and Aljoša Peperko. 2024. "Calculation of Stationary Magnetic Fields Based on the Improved Quadrature Formulas for a Simple Layer Potential" Mathematics 12, no. 1: 21. https://doi.org/10.3390/math12010021

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop