1. Introduction
Various numerical methods have been developed for solving partial differential equations (PDEs) [
1,
2,
3,
4,
5]. Among these, the Finite Element Method (FEM) remains one of the most established and widely used approaches. However, FEM and computer-aided design (CAD) were developed in different eras, resulting in a significant disconnect in engineering workflows. While designs are created in CAD systems, meshes must be generated from CAD data for FEM analysis. This process introduces a geometric description that is often only an approximation, leading to inefficiencies. It is estimated that up to
of analysis time in industries such as automotive, aerospace, and shipbuilding is devoted to mesh generation [
6]. Mesh construction is not only time consuming but also forms a source of potential inaccuracies. Additionally, numerically approximating higher-order PDEs presents challenges due to the need for complex shape functions with high-order continuity. Methods such as discontinuous Galerkin schemes [
7,
8] and mixed formulations [
9] have been developed to address these issues, but they often come with high computational costs, complex implementation, and large degrees of freedom.
B-splines are piecewise polynomials with smoothness that is one order less than their degree. Their ability to achieve higher approximation orders with fewer degrees of freedom makes them particularly suitable as basis functions for numerical analysis with high potential [
10,
11]. This potential is utilized by a number of numerical methods that used B-splines in various settings as building blocks for approximation [
2,
12,
13,
14]. One of the most popular techniques that utilize B-splines for analysis is Isogeometric Analysis (IGA) [
1,
15], which is a technique that integrates CAD and FEM by using non-uniform rational B-splines (NURBS) to represent geometry exactly. While IGA pushed forward the quest of bridging the gap between geometry and analysis, it still faces challenges with complex geometries that include for example curved boundaries and small features. Singularities in parameterized domains can lead to ill-defined test functions and stiffness matrices, complicating numerical discretization [
16]. Efforts to address these challenges include various strategies for improving parameterization [
17,
18,
19,
20,
21,
22].
The R-function method (RFM) is a method that also employs B-splines for analysis [
23,
24]. Unlike IGA, RFM represents domains using implicit R-functions. The RFM solution structure ensures that boundary conditions are satisfied exactly by incorporating undetermined functional components. Based on the theory of R-functions [
25], this method handles arbitrarily complex domains and boundary conditions. Moreover, it is essentially meshfree, enabling automated spatial discretization that does not rely on geometry-conforming meshes. However, due to the use of outer B-splines, the method can suffer from instability, resulting in large condition numbers for the stiffness matrix. To address such instabilities, K. Höllig and colleagues proposed the WEB (Weighted Extended B-splines) method [
2] that is mainly directed to solving homogeneous Dirichlet boundary-value problems. This approach stabilizes the B-splines by attaching splines with small domain supports to more robust ones, creating a well-conditioned basis for FEM approximations. The extended B-splines retain optimal approximation order while ensuring that the condition number of the linear system stays manageable. This approach has been applied to problems with various boundary conditions; however, for example, the numerical solution cannot satisfy the Neumann boundary condition exactly and the boundary integral is only an approximation, which is not easy to compute when the implicit domain is complex.
Driven by the challenges outlined earlier, we propose a new framework that merges the strengths of the RFM and WEB methods. This framework is specifically designed for solving PDEs with hybrid boundary conditions on implicitly defined domains using R-functions. While our approach primarily utilizes B-splines as the basis for analysis, its adaptability enables the straightforward incorporation of other spline bases. With only minor adjustments to the original framework, alternatives such as T-splines [
26], S-splines [
21], and PHT-splines [
27] can be seamlessly integrated. We focus on implicitly defined domains because of their numerous advantages when handling geometries with specific characteristics such as curved edges, small holes, and complex shapes [
28]. In such cases, parameterization often becomes a bottleneck in numerical schemes. An implicit surface provides a more compact representation of intricate geometries, while also offering flexibility, well-defined Boolean operations, and the ability to determine a point’s location (inside or outside the surface) using the sign of the implicit function [
29,
30].
Building on this foundation, our work focuses on Poisson equations defined on implicit domains with hybrid boundary conditions. To address the inherent challenges of such problems, we propose a solution-structure B-spline-based framework to deal with hybrid boundary conditions. In order to overcome the boundary integral which is required for the non-homogeneous Neumann boundary condition in previous methods, we first convert the non-homogeneous hybrid problems to homogeneous hybrid problems. Then, we use RFM to construct a solution-structure-based B-splines that conform to the homogeneous hybrid boundary condition exactly. Finally, we reconstruct the analysis basis following the same steps used in WEB method to maintain a well-conditioned basis functions. We introduce three numerical examples where the Poisson equation with hybrid boundary conditions is solved on different implicit domains to reflect the performance and efficiency of the proposed approach.
The paper is structured as follows:
Section 2 provides an overview of the R-function method (RFM) solution structures.
Section 3 details the principles of the WEB method, highlighting its role in ensuring numerical stability. In
Section 4, we introduce the proposed approach that integrates solution-structure B-splines to address hybrid boundary problems effectively.
Section 5 presents a series of numerical examples that illustrate the method’s accuracy and potential.
Section 6 offers concluding remarks.
3. The WEB Method
In this section, we provide a concise overview of the WEB method introduced in [
2]. This method addresses the challenge of mesh generation in standard FEM by replacing it with a weight function that analytically defines the domain on a grid. The weight function ensures the exact enforcement of Dirichlet boundary conditions at the domain boundaries. The basis functions used are weighted extended B-splines (WEB-splines), which fulfill essential finite element properties while maintaining the stability of the resulting linear system. For a detailed explanation of the construction process, readers are referred to [
39].
3.1. Weight Function
The concept of using a weight function to enforce boundary conditions was initially introduced in [
31] and further elaborated in [
35]. In the WEB method, the weight function
is defined as an implicit field function, where its value at the domain boundaries is zero. This weight function is typically represented by a distance function with a bounded gradient, given by:
An alternative approach presented by the WEB method to determine
involves using algebraic analytic equations for simple domains and employing an R-function to handle more complex geometries. The fundamental concept behind the R-function is discussed in
Section 2.2. An example of a weight function, constructed using an analytical equation, is given by:
Figure 2 illustrates the weight function defined by Equation (
21). The left side of the figure shows the domain, while the corresponding weight function field is depicted on the right.
The next step involves integrating the weight function into the analysis basis functions to ensure exact enforcement of the boundary conditions. The WEB method utilizes uniform B-spline basis functions, which are multiplied by a positive weight function within the domain, and vanish at the boundaries. In the following subsection, we provide a brief overview of B-spline basis functions.
3.2. Tensor-Product B-Splines
Multivariate tensor-product B-splines are formed by taking the tensor product of univariate B-splines in multiple directions. To understand this concept, we begin by reviewing the univariate B-splines. Let us define the knot vector as:
where the B-spline basis functions are recursively defined, starting with the piecewise constant B-splines:
For higher degrees
, the basis functions are defined recursively as follows:
For convenience, we denote the basis function for degree n as instead of .
Since here we focus on uniform meshes in the domain with a grid width h. Multivariate tensor-product B-splines are constructed as the tensor products of univariate B-splines using the following approach.
Let
b denote the cardinal B-spline of degree
n with support
. The scaled translates of these B-splines are given by:
These scaled B-splines are
-times continuously differentiable and are polynomials of degree
in the variables
within each of the grid cells with width
h:
Figure 3 illustrates the construction of quadratic B-splines in both
and
. In
, the knot vector
forms the basis for smooth, piecewise curves. In
, a quadratic B-spline is constructed using the knot vector
, producing a smooth surface shaped by control points.
3.3. Weighted Extended B-Splines
The construction of weighted extended B-splines is the solution proposed in [
2] in order to retain the stability the solution linear system. B-spline basis functions with very small support in
often result in an ill-conditioned stiffness matrix, which can compromise the stability of the numerical solution. To address this, an extension process is employed, where basis functions with minimal support are linked to their neighboring functions, enhancing overall stability.
The set of indices for B-spline basis functions that intersect with is denoted by K. These basis functions are categorized into two groups, i.e., inner and outer, based on the extent of their support within . An inner B-spline basis function has at least one complete cell of its support contained entirely within . The indices of all inner B-splines are represented by I. Conversely, a B-spline basis function with an index in is classified as an outer B-spline, with their indices collectively represented by J. Naturally, K is the union of I and J, or .
In
Figure 4, basis functions with support centers marked by “•” are inner B-splines, while those marked by “∘” are outer B-splines. This classification is key to understanding how the extension process reinforces stability by effectively balancing the contributions of both inner and outer B-spline basis functions.
For each inner B-spline
, the extended B-spline is defined as follows:
where
denotes the index set of all outer B-splines associated with
, and
, are the outer B-splines. The coefficients
are the extension coefficients, which satisfy the conditions:
These extension coefficients are computed to ensure that the extended B-splines maintain completeness. Specifically, all polynomials of the same degree as the B-splines can be represented by the extended B-splines. For further details on the computation of these coefficients, see [
2].
For a PDE where the boundary condition is of the first type described in
Section 2.3 with
, the solution is given by:
We denote , where , are referred to as weighted extended B-splines in the WEB method.
In this paper, we use the RFM to construct solution-structure-based B-splines that conform exactly to the hybrid boundary conditions. We build on the stability concept presented by the WEB method and develop stable basis functions for analysis by incorporating the RFM structure to achieve the best results possible. In the following section, we present the proposed approach in detail.
4. Solution-Structure B-Spline-Based Framework
In this section, we develop analysis basis functions for solving PDEs on implicit domains with hybrid boundary conditions. The method starts by transforming non-homogeneous boundary conditions into homogeneous ones using the R-function method (RFM), simplifying the problem while ensuring exact boundary conformity. Tensor-product B-splines are then modified using implicit functions derived from RFM to align with the domain. These basis functions are classified into inner and outer types based on their domain support. To ensure numerical stability, an extension process inspired by the Weighted Extended B-spline (WEB) method links outer functions to inner ones through weighted combinations. The resulting extended solution-structure B-splines (ESSB-splines) exactly satisfy the boundary conditions, ensuring both accuracy and stability. Following this, we divide the construction steps into subsections starting by a model problem to simplify the process.
4.1. Model Problem
In this paper, we use the Poisson partial differential equation as a model problem with different hybrid boundary conditions. In this subsection, we present the problem along with the weak form and its solution. Let us start by considering the following model problem:
where
, the operator
, and
n is the unit inward normal to
. We assume that
and
each have non-zero length, and that
f,
, and
are square-integrable over
,
, and
, respectively.
The Finite Element Analysis begins by defining a weak formulation that solves the problem by finding
such that:
where
, and
is the Sobolev space. The symmetric bilinear form
is defined as:
and the linear functional
is given by:
Given a finite-dimensional subspace
spanned by basis functions
,
, where
I is the index set of the basis functions, the solution to the model problem introduced by Equation (
30) is approximated by solving the weak problem:
Find
such that:
For
,
can be expressed as a linear combination of the basis functions:
Substituting this into the weak problem presented by Equation (
34), the problem reduces to solving the following linear system:
It is important to note that the Dirichlet boundary condition is imposed on the test function space, while the Neumann boundary condition is handled via a boundary integral. Generally, the numerical solution does not exactly satisfy the Neumann condition, and the boundary integral itself is only an approximation that is especially challenging when the domain is implicit or complex.
In the next subsections, we introduce our proposed method for solving hybrid problems on implicit domains, which avoids the need for boundary integrals. We use tensor-product B-splines with different degrees as the core piecewise functions to build up the final basis functions for the analysis part.
4.2. Conversion of the Model Problem Using the RFM Solution Structure
The boundary condition of the model problem (
30) falls under the third type of boundary conditions with
, as described in
Section 2.3. The solution structure is given by:
where
is approximated by a finite-dimensional space in the RFM solution structure, and
and
are implicit functions with zero contours
and
, respectively.
Define
and
. By simple calculation, the model problem (
30) with non-homogeneous hybrid boundary conditions can be converted into the following problem with homogeneous hybrid boundary conditions:
Thus, the need for a boundary integral is eliminated. The solution structure for the homogeneous hybrid problem can be given as:
By removing the need for boundary integrals, the error associated with approximating these integrals is entirely eliminated, resulting in a more precise numerical solution. This improvement is particularly significant because boundary integrals often introduce inaccuracies, especially when the domain boundaries are complex or not well-defined. Moreover, the computational complexity involved in evaluating such integrals on implicitly defined domains is completely bypassed, simplifying the entire process. Without the burden of these intricate calculations, the solution approach becomes more efficient and easier to implement, reducing both the computational cost and the potential for numerical errors.
In the next subsection, we construct basis functions that rigorously satisfy the homogeneous hybrid boundary conditions by leveraging the solution structure outlined in Equation (
39). These basis functions are designed to ensure stability and accuracy, adhering to the theoretical framework while maintaining the simplicity and elegance of the approach.
4.3. Basis Functions for Analysis
Let
be a tensor-product mesh covering the computational domain
. Let
, represent the B-spline basis functions defined on
with a non-empty intersection with
. We define solution-structure-based B-splines (SSB-splines) as follows:
The functions and satisfy the hybrid boundary conditions and exactly. However, using directly as basis functions in analysis may result in excessively large condition numbers for the Galerkin system due to the small support of some in .
To tackle this problem, we categorize the SSB-splines , where , into two distinct groups according to the extent of their support within the domain . The classification differentiates between inner SSB-splines and outer SSB-splines, based on whether the support of the spline is entirely contained within the domain or whether it extends to the domain’s boundary. This classification scheme closely follows the methodology used in the WEB method. The inner SSB-splines are those whose support is fully contained inside the domain, ensuring that they do not interact with the boundary of . These splines are classified by the index set I. On the other hand, the outer SSB-splines have support that extends to the boundary of the domain, which may lead to interaction with the boundary conditions. These splines are indexed by the set J.
This distinction is crucial for achieving a stable and well-conditioned Galerkin system, as the inner splines contribute to the interior approximation, while the outer splines play a key role in accurately satisfying the boundary conditions. To ensure that the system remains stable, we employ an extension process for the SSB-splines, creating extended SSB-splines by linking the outer splines to the inner splines through appropriate weighting functions. This step is essential for maintaining the numerical stability of the resulting system and preventing issues such as ill-conditioning, which can arise when using splines with small support near the boundary. This extended basis construction is an effective strategy to improve the overall performance of the method, allowing for precise and stable approximations in both the interior and boundary regions of the domain.
Similar to the WEB method, for each inner SSB-spline
,
, the extended SSB-spline (ESSB-spline) is defined as:
where
denotes the index set of all outer B-splines connected to
, and
,
, are the outer B-splines. The extension coefficients
satisfy:
The computation of
follows the same process as in the WEB method, so the details are omitted here and the intersted reader is suggested to refer to [
2,
39] for a detailed construction process.
4.4. Approximation and Error
For the converted model problem described by Equation (
38), which is subject to homogeneous hybrid boundary conditions, the ESSB-splines
, with
, serve as the chosen basis functions. These splines are employed to compute the numerical solution
by solving the linear system defined in Equation (
34). The resulting approximation
for the original problem, as given by Equation (
30) and subject to non-homogeneous hybrid boundary conditions, is then obtained by adding the correction term
to
, leading to the final expression:
This approach ensures that the numerical solution is consistent with the boundary conditions of the original problem while leveraging the computational efficiency of the ESSB-splines in the converted problem.
For a tensor-product mesh with grid width
h, if the exact solution
u is known, the error is defined as
, and the
relative error is given by:
where
denotes the
norm defined as:
In traditional finite element methods (FEM), the convergence order for the error is typically , where n represents the degree of the shape functions. In this study, we employ B-splines of varying degrees, specifically and . The examples provided in the next section clearly demonstrate that our method achieves convergence orders of 3 and 4, respectively, when solving Poisson equations with hybrid boundary conditions. This not only illustrates the effectiveness of our approach but also confirms that it attains the optimal convergence order. Consequently, our method proves to be highly effective for addressing hybrid problems on implicitly defined domains, offering superior accuracy and efficiency compared to traditional FEM techniques.
5. Numerical Implementation
In this section, we demonstrate the application of the theoretical results previously discussed by solving three distinct numerical examples. Specifically, we tackle the Poisson equation, as described by Equation (
30), across three different domains that are defined by implicit equations. The first two domains are two-dimensional, while the third domain is extended into three dimensions, adding complexity to the problem.
For the hybrid boundary conditions, we implement the first and third types of boundary conditions, as outlined in
Section 2.3, assigning each boundary condition type to a corresponding example. Notably, the second type of boundary condition is a special case of the third type, meaning that applying the third type alone is sufficient to cover all cases. For each example, we present the domain configuration, the computed numerical solution, and corresponding error plots. Furthermore, we analyze the convergence rates to verify that the results attain optimal values. This analysis is carried out using basis functions of degrees 2 and 3, ensuring that the accuracy of the numerical solution is consistent with the expected convergence behavior.
5.1. Example 1
In this example, we consider the Poisson Equation presented in
Section 4.1 and solve it on the domain defined on
by the zero-contour of the implicit function
where
and
are defined as follows:
We consider the boundary conditions defined as follows:
The right-hand side
f in the model problem (
30) is constructed such that the exact solution is
.
Figure 5 presents the
domain along with the numerical solution solved on a grid with a cell width of
, where the solution is visualized using a color map to illustrate the variation in values across the domain.
The
relative error with grid width
calculated for basis functions with degrees 2 and 3, respectively, along with the resulting local error
with grid width
with basis functions with a degree of 3, are illustrated by
Figure 6. The local error is visualized using a color map to show the error variation across the computational domain, as shown in the right part of
Figure 6. The results demonstrate that the
convergence order remains consistently around 3 for basis of degree 2 and 4 with basis of degree 3 when the mesh is refined beyond a certain threshold. This indicates that our method successfully achieves the optimal convergence rates for solving the Poisson equation under homogeneous hybrid boundary conditions of type 1. Such stability underscores the effectiveness of the approach, especially in scenarios that demand high accuracy in computational solutions.
A closer analysis reveals that the largest errors are concentrated near the boundaries, a phenomenon aligned with theoretical expectations for similar methods defined by boundary functions and implicit equations. This boundary-related error is a well-documented challenge in solving partial differential equations (PDEs) on structured grids. Several factors contribute to this behavior, including the limited support of basis functions within the computational domain and issues related to numerical integration near boundary regions. For readers seeking a deeper exploration of these boundary effects and the intricacies of numerical error, we recommend consulting the comprehensive discussions provided in [
39,
40].
5.2. Example 2
For this example, we solve the Poisson problem defined by Equation (
30) in
Section 4.1 on the domain defined in the interval
. The geometry is the union of two circles that are separate. The implicit function
is used to bound the domain. The example is selected to show the convergence of our method in solving the Poisson equation with hybrid boundary conditions on domains consist of two separate parts where
and
are defined as follows:
We consider the following boundary conditions:
For this example, the boundary conditions with
,
are considered. The right-hand side
f in the model problem (
30) is constructed so that the exact solution is
.
Figure 7 presents the
domain along with the numerical solution solved on a grid with a cell width of
, where the solution is visualized using a color map to illustrate the variation in values across the domain.
In
Figure 8, we present the
relative error as a function of grid width, denoted by
for
. These computations are performed using basis functions of degrees 2 and 3. Additionally, the plot shows the error distribution across the domain, visualized using a color map. This illustrates how the error, represented by
, varies throughout the domain when the grid resolution is
and using basis functions of degree 3.
The results clearly demonstrate that our method consistently achieves optimal convergence rates for both degrees, even when applied to the more challenging case of non-homogeneous hybrid boundary conditions. This is particularly noteworthy because it highlights the robustness of the approach across varying levels of complexity in boundary behavior.
5.3. Example 3
For this example, we solve the Poisson problem defined by Equation (
30) in
Section 4.1 on the
domain defined in the interval
by the zero-contour of the implicit function
where
and
are defined as follows:
We consider the following boundary conditions:
For this example, the boundary conditions with
,
are considered. The right-hand side
f in the model problem (
30) is constructed so that the exact solution is
.
Figure 9 presents the
domain along with the numerical solution solved on a grid with a cell width of
, where the solution is visualized using a color map to illustrate the variation in values across the domain.
In
Figure 10, we display the
relative error as it varies with grid width, represented by
for
. These results are computed using basis functions of degrees 2 and 3, allowing for a comparison of how different polynomial degrees influence accuracy and convergence behavior. The plot also highlights the error, denoted by
, across several slices of the
solution when
, specifically for basis functions of degree 3. The error is visualized using a color map to illustrate the variation in values across the domain. These findings emphasize the effectiveness of using higher-degree basis functions in capturing the finer details of the solution, particularly in 3D geometries. By refining the grid and examining error behavior across multiple slices, we can better reflect both accuracy and stability in the numerical solution.