Difference between revisions of "Meshless Local Strong Form Method (MLSM)"

From Medusa: Coordinate Free Mehless Method implementation
Jump to: navigation, search
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The Meshless Local Strong Form Method (MLSM) is a generalization of methods which are in literature also known as Diffuse Approximate Method (DAM), Local Radial Basis Function Collocation Methods (LRBFCM), Generalized FDM, Collocated discrete least squares (CDLS) meshless, etc. Although each of the named methods pose some unique properties, the basic concept of all local strong form methods is similar, namely to approximate treated fields with nodal trial functions over the local support domain. The nodal trial function is then used to evaluate various operators, e.g. derivation, integration, and after all, approximation of a considered field in arbitrary position. The MLSM could easily be understood as a meshless generalization of the FDM, however much more powerful. MLSM has an ambition to avoid using pre-defined relations between nodes and shift this task into the solution procedure. The final goal of such an approach is higher flexibility in complex domains.
+
The Meshless Local Strong Form Method (MLSM) is a generalization of methods which are in literature also known as Diffuse Approximate Method (DAM), Local Radial Basis Function Collocation Methods (LRBFCM), Generalized FDM (GFDM), Collocated discrete least squares (CDLS) meshless, etc. Although each of the named methods has some unique properties, the basic concept of all local strong form methods is similar, namely to approximate differential operators as
 +
<figure id="fig:meshless1">
 +
[[File:image_1avhoje8u10tg1cip1atj1qo51j8b9.png|500px|thumb|upright=2|alt=The scheme of local meshless principle.|<caption>The scheme of local meshless principle. </caption>]]
 +
</figure>
  
<figure id="fig:square_heat">
+
weighted sums of function values over the local support domain. MLSM can be understood as a generalization of FDM to scattered nodes, however much more powerful.  
[[File:image_1avhoje8u10tg1cip1atj1qo51j8b9.png|600px|thumb|upright=2|alt=The scheme of local meshless principle.|<caption>The scheme of local meshless principle. </caption>]]
 
</figure>
 
  
The elegance of MLSM is its simplicity and generality. The presented methodology can be also easily upgraded or altered, e.g. with nodal adaptation, basis augmentation, conditioning of the approximation, etc., to treat anomalies such as sharp discontinues or other obscure situations, which might occur in complex simulations. In the MLSM, the type of approximation, the size of support domain, and the type and number of basis function is general. For example minimal support size for 2D transport problem (system of PDEs of second order) is five, however higher support domains can be used to stabilize computations on scattered nodes at the cost of computational complexity. Various types of basis functions might appear in the calculation of the trial function, however, the most commonly used are multiquadrics, Gaussians and monomials. Some authors also enrich the radial basis with monomials to improve performance of the method. All these features can be controlled on the fly during the simulation. From the computation point of view, the localization of the method reduces inter-processor communication, which is often a bottleneck of parallel algorithms.
+
The elegance of MLSM is its simplicity and generality. The presented methodology can be also easily upgraded or altered, e.g. with nodal adaptation, basis augmentation, conditioning of the approximation, etc., to treat anomalies such as sharp discontinues or other obscure situations, which might occur in complex simulations. In MLSM, the type of approximation, the size of support domain, and the type and number of basis function is general.  
 +
For example, minimal support size for 2D transport problem is five, however higher support domains can be used to stabilize computations on scattered nodes at the cost of computational complexity. Various types of basis functions might appear in the approximation, however, the most commonly used are multiquadrics, Gaussians and monomials. Some authors also enrich the radial basis with monomials to improve performance of the method (see [[Radial basis function-generated finite differences (RBF-FD)]]). All these features can be controlled during the simulation. From the computation point of view, the localization of the method reduces inter-processor communication, which is often a bottleneck of parallel algorithms.
  
The core of the spatial discretization is a local [[Moving Least Squares (MLS)]] approximation of a considered field over the overlapping local support domains, i.e. in each node we use approximation over a small local sub-set of neighbouring $n$ nodes. The trial function is thus introduced as
 
\[\hat{u}(\mathbf{p})=\sum\limits_{i}^{m}{{{\alpha }_{i}}{{b}_{i}}(\mathbf{p})}=\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}\mathbf{\alpha }\]
 
with $m,\,\,\mathbf{\alpha }\text{,}\,\,\mathbf{b},\,\,\mathbf{p}\left( {{p}_{x}},{{p}_{y}} \right)$ standing for the number of basis functions, approximation coefficients, basis functions and the position vector, respectively. 
 
  
----
+
<figure id="fig:implementation">
When the number of basis functions and number of support domain is the same $n=m$ the determination of coefficients $\mathbf{\alpha }$ simplifies to solving a system of $n$ linear equations
+
[[File:image_1avhh0f97le11d68kgk18gon9h9.png|900px|thumb|alt=The implementation diagram.|<caption>The implementation diagram. </caption>]]
\[u\left( {{\mathbf{p}}_{j}} \right)=\mathbf{u}=\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}\mathbf{\alpha }\],
+
</figure>
${{\mathbf{p}}_{j}}$ are positions of support nodes and \[\mathbf{u}\] are values of considered field in the support positions. The above system can be written in a matrix form as
 
\[\mathbf{u}=\mathbf{B\alpha }\],
 
where $\mathbf{B}$ stands for coefficient matrix with elements ${{B}_{ji}}={{b}_{i}}\left( {{\mathbf{p}}_{j}} \right)$. System  can be effectively solved with Cholesky decomposition. The most known method that use such an approach is LRBFCM that has been recently used in various problems. If the number of support nodes is higher than the number of basis functions \[n>m\] a Weighted Least Squares (WLS) approximation is used to solve over-determined problem. An example of such approach is DAM that was originally formulated to solve fluid flow in porous media. DAM uses six monomials for basis and nine nodded support domains to evaluate first and second derivatives of physical fields required to solve problem at hand. To determine the approximation coefficients a norm
 
\[{{r}^{2}}=\sum\limits_{j}^{n}{W\left( {{\mathbf{p}}_{j}} \right){{\left( u({{\mathbf{p}}_{j}})-\hat{u}({{\mathbf{p}}_{j}}) \right)}^{2}}}={{\left( \mathbf{B\alpha }-\mathbf{u} \right)}^{\text{T}}}\mathbf{W}\left( \mathbf{B\alpha }-\mathbf{u} \right)\], (4)
 
is minimized, where $\mathbf{W}$ is a diagonal matrix with elements ${{W}_{jj}}=W\left( {{\mathbf{p}}_{j}} \right)$ with
 
\[W\left( \mathbf{p} \right)=\exp \left( -{{\left( \frac{\left\| {{\mathbf{p}}_{0}}-\mathbf{p} \right\|}{\sigma {{p}_{\min }}} \right)}^{2}} \right)\], (5)
 
where $\sigma $ stands for weight parameter, ${{\mathbf{p}}_{0}}$ for centre of support domain  and ${{p}_{\min }}$ for the distance to the first support domain node. There are different approaches to solve (4). The most intuitive and also computationally effective is to simply compute gradient of (4) with respect to the $\mathbf{\alpha }$ resulting in
 
\[~\mathbf{WB}{{\mathbf{B}}^{\text{T}}}\mathbf{\alpha }=\mathbf{W}{{\mathbf{B}}^{\text{T}}}\mathbf{u}\]. (6)
 
The problem of above approach is bad conditioning. More stable and more expensive approach is QR decomposition. Even more stable is SVD decomposition, which is off course also more expensive. Nevertheless,
 
---
 
  
The problem can be written in matrix form (refer to [[Moving Least Squares (MLS)]] for more details) as
+
The core of the spatial discretization is a local [[Weighted Least Squares (WLS)]] approximation of a considered field over the overlapping local support domains,
\[~\mathbf{\alpha }={{\left( {{\mathbf{W}}^{0.5}}\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\mathbf{u}\],
+
i.e. in each node we use approximation over a small local sub-set of neighbouring $n$ nodes. This idea is used to [[Computation of shape functions | compute the shape functions ]],
where \[{{\left( {{\mathbf{W}}^{0.5}}\mathbf{B} \right)}^{+}}\] stand for a Moore–Penrose pseudo inverse. By explicit expression of $\mathbf{\alpha }$
+
which enable us to approximate operators as $$(\mathcal{L}u)(p) = \sum_{i=1}^n c_i u_i.$$
\[~\hat{u}\left( \mathbf{p} \right)=\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}{{\left( {{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{u}=\mathbf{\chi }\left( \mathbf{p} \right)\mathbf{u}\],
 
is obtained, where \[\mathbf{\chi }\] stand for the shape functions. Now, we can apply partial differential operator, which is our goal, on the trial function,
 
\[L~\hat{u}\left( \mathbf{p} \right)=L\mathbf{\chi }\left( \mathbf{p} \right)\mathbf{u}\]
 
where L stands for general differential operator.  
 
  
 +
Refer to [[Weighted Least Squares (WLS)]] and [[Computation of shape functions]] for details about numerical calculation of shape functions / stencil weights $\b c = (c_i)_i$.
  
\[{{\mathbf{\chi }}^{\partial x}}\left( \mathbf{p} \right)=\frac{\partial }{\partial x}~\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}{{\left( {{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\], (10)
+
The presented formulation is convenient for implementation since most of the complex operations, i.e. finding support nodes and building shape functions, are performed only when nodal topology changes. To  evaluate the desired operator in the main simulation, only a dot product of the pre-computed shape functions with the vector of field values in the support needs to be computed. The presented approach is even easier to handle than in FDM, however, despite its simplicity it offers many possibilities for treating challenging cases, e.g. nodal adaptivity to address regions with sharp discontinuities or $p$-adaptivity to treat obscure anomalies in physical field, furthermore, the stability versus  computation complexity and accuracy can be regulated simply by changing number of support nodes, etc. All these features can be controlled during the simulation by re computing the shape functions with different setups.  
\[{{\mathbf{\chi }}^{\partial y}}\left( \mathbf{p} \right)=\frac{\partial }{\partial y}~\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}{{\left( {{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\], (11)
+
However, such re-setup is expensive, since shape functions have to be re-evaluated, with complexity of $O(N nm^2)$, where $N$  stands for total number of discretization nodes. In addition, the determination of support domain nodes also consumes some time, for example, if a [[Kd Tree|kD-tree]] data structure is used, first the tree is built with $O(N \log N)$ and then additional $O(nN\log N)$ for collecting $n$ supporting nodes.
\[{{\mathbf{\chi }}^{{{\nabla }^{2}}}}\left( \mathbf{p} \right)={{\nabla }^{2}}\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}{{\left( {{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\], (12)
 
  
The presented formulation is convenient for implementation since most of the complex operations, i.e. finding support nodes and building shape functions, are performed only when nodal topology changes. In the main simulation, the pre-computed shape functions are then convoluted with the vector of field values in the support to evaluate the desired operator. The presented approach is even easier to handle than the FDM, however, despite its simplicity it offers many possibilities for treating challenging cases, e.g. nodal adaptivity to address regions with sharp discontinuities or p-adaptivity to treat obscure anomalies in physical field, furthermore, the stability versus computation complexity and accuracy can be regulated simply by changing number of support nodes, etc. All these features can be controlled on the fly during the simulation by re computing the shape functions with different setups. However, such re-setup is expensive, since the \[\mathbf{b}{{\left( \mathbf{p} \right)}^{\text{T}}}{{\left( {{\mathbf{W}}^{0.5}}\left( \mathbf{p} \right)\mathbf{B} \right)}^{+}}{{\mathbf{W}}^{0.5}}\] has to be re-evaluated, with asymptotical complexity of $O\left( {{N}_{D}}n{{m}^{2}} \right)$, where ${{N}_{D}}$  stands for total number of discretization nodes. In addition, the determination of support domain nodes also consumes some time, for example, if a kD-tree [20] data structure is used, first the tree is built with $O\left( {{N}_{D}}\log {{N}_{D}} \right)$ and then additional $O\left( {{N}_{D}}\left( log{{N}_{D}}+n \right) \right)$ for collecting n supporting nodes.
+
== References ==
 +
* Kosec G., A local numerical solution of a fluid-flow problem on an irregular domain. Advances in engineering software. 2016;7 ; [29512743] :: [http://comms.ijs.si/~gkosec/data/papers/29512743.pdf manuscript]
 +
* Trobec R., Kosec G., Šterk M., Šarler B., Comparison of local weak and strong form meshless methods for 2-D diffusion equation. Engineering analysis with boundary elements. 2012;36:310-321; [http://comms.ijs.si/~gkosec/data/papers/EABE2499.pdf manuscript]
 +
* Kosec G, Sarler B. Solution of thermo-fluid problems by collocation with local pressure correction. International Journal of Numerical Methods for Heat & Fluid Flow. 2008;18:868-82 [http://comms.ijs.si/~gkosec/data/papers/KosecSarlerNS2008.pdf manuscript]
 +
* Trobec R., Kosec G., Parallel Scientific Computing, ISBN: 978-3-319-17072-5 (Print) 978-3-319-17073-2.

Latest revision as of 17:39, 8 September 2019

The Meshless Local Strong Form Method (MLSM) is a generalization of methods which are in literature also known as Diffuse Approximate Method (DAM), Local Radial Basis Function Collocation Methods (LRBFCM), Generalized FDM (GFDM), Collocated discrete least squares (CDLS) meshless, etc. Although each of the named methods has some unique properties, the basic concept of all local strong form methods is similar, namely to approximate differential operators as

The scheme of local meshless principle.
Figure 1: The scheme of local meshless principle.

weighted sums of function values over the local support domain. MLSM can be understood as a generalization of FDM to scattered nodes, however much more powerful.

The elegance of MLSM is its simplicity and generality. The presented methodology can be also easily upgraded or altered, e.g. with nodal adaptation, basis augmentation, conditioning of the approximation, etc., to treat anomalies such as sharp discontinues or other obscure situations, which might occur in complex simulations. In MLSM, the type of approximation, the size of support domain, and the type and number of basis function is general. For example, minimal support size for 2D transport problem is five, however higher support domains can be used to stabilize computations on scattered nodes at the cost of computational complexity. Various types of basis functions might appear in the approximation, however, the most commonly used are multiquadrics, Gaussians and monomials. Some authors also enrich the radial basis with monomials to improve performance of the method (see Radial basis function-generated finite differences (RBF-FD)). All these features can be controlled during the simulation. From the computation point of view, the localization of the method reduces inter-processor communication, which is often a bottleneck of parallel algorithms.


The implementation diagram.
Figure 2: The implementation diagram.

The core of the spatial discretization is a local Weighted Least Squares (WLS) approximation of a considered field over the overlapping local support domains, i.e. in each node we use approximation over a small local sub-set of neighbouring $n$ nodes. This idea is used to compute the shape functions , which enable us to approximate operators as $$(\mathcal{L}u)(p) = \sum_{i=1}^n c_i u_i.$$

Refer to Weighted Least Squares (WLS) and Computation of shape functions for details about numerical calculation of shape functions / stencil weights $\b c = (c_i)_i$.

The presented formulation is convenient for implementation since most of the complex operations, i.e. finding support nodes and building shape functions, are performed only when nodal topology changes. To evaluate the desired operator in the main simulation, only a dot product of the pre-computed shape functions with the vector of field values in the support needs to be computed. The presented approach is even easier to handle than in FDM, however, despite its simplicity it offers many possibilities for treating challenging cases, e.g. nodal adaptivity to address regions with sharp discontinuities or $p$-adaptivity to treat obscure anomalies in physical field, furthermore, the stability versus computation complexity and accuracy can be regulated simply by changing number of support nodes, etc. All these features can be controlled during the simulation by re computing the shape functions with different setups. However, such re-setup is expensive, since shape functions have to be re-evaluated, with complexity of $O(N nm^2)$, where $N$ stands for total number of discretization nodes. In addition, the determination of support domain nodes also consumes some time, for example, if a kD-tree data structure is used, first the tree is built with $O(N \log N)$ and then additional $O(nN\log N)$ for collecting $n$ supporting nodes.

References

  • Kosec G., A local numerical solution of a fluid-flow problem on an irregular domain. Advances in engineering software. 2016;7 ; [29512743] :: manuscript
  • Trobec R., Kosec G., Šterk M., Šarler B., Comparison of local weak and strong form meshless methods for 2-D diffusion equation. Engineering analysis with boundary elements. 2012;36:310-321; manuscript
  • Kosec G, Sarler B. Solution of thermo-fluid problems by collocation with local pressure correction. International Journal of Numerical Methods for Heat & Fluid Flow. 2008;18:868-82 manuscript
  • Trobec R., Kosec G., Parallel Scientific Computing, ISBN: 978-3-319-17072-5 (Print) 978-3-319-17073-2.