선정목록으로
A Consistent Parallel Isotropic Unstructured Mesh Generation Method based on Multi-phase SPH
산업용 섬유 · (17) 스펀본드 부직포
기본 정보
- 저자
- DOI
- 10.48550/arxiv.1906.07925
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1906.07925
- 토픽
- Surface Modification and Superhydrophobicity
- OpenAlex ID
- W6910758266
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (17) 스펀본드 부직포
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > 스펀본드 부직포' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
In this paper, we propose a consistent parallel unstructured mesh generator based on a multi-phase SPH method. A set of physics-motivated modeling equations are developed to achieve the targets of domain decomposition, communication volume optimization and high-quality unstructured mesh generation simultaneously. A unified density field is defined as the target function for both partitioning the geometry and distributing the mesh-vertexes. A multi-phase Smoothing Particle Hydrodynamics (SPH) method is employed to solve the governing equations. All the optimization targets are achieved implicitly and consistently by the particle relaxation procedure without constructing triangulation/tetrahedralization explicitly. The target of communication reduction is achieved by introducing a surface tension model between distinct partitioning sub-domains, which are characterized by colored SPH particles. The resulting partitioning diagram features physically localized sub-domains and optimized interface communication. The target of optimizing the mesh quality is achieved by introducing a tailored equation-of-state (EOS) and a smooth isotropic kernel function. The mesh quality near the interface of neighboring sub-domains is improved by gradually removing the surface-tension force once a steady state is achieved. The proposed method is developed basing on a new parallel environment for multi-resolution SPH to exploit both coarse- and fine-grained parallelism. A set of benchmarks are conducted to verify that all the optimization targets are achieved consistently within the current framework.
본문 66,182자
본문 펼치기
## A Consistent Parallel Isotropic Unstructured Mesh Generation Method based on Multi-phase SPH
Zhe Ji <sup>a,</sup> <sup>_∗_</sup>, Lin Fu <sup>b,</sup> <sup>_∗_</sup>, Xiangyu Hu <sup>a</sup>, Nikolaus Adams <sup>a</sup>
_aChair_ _of_ _Aerodynamics_ _and_ _Fluid_ _Mechanics,_ _Department_ _of_ _Mechanical_ _Engineering,_
_Technical_ _University_ _of_ _Munich,_ _85748_ _Garching,_ _Germany_
_bCenter_ _for_ _Turbulence_ _Research,_ _Stanford_ _University,_ _Stanford,_ _CA_ _94305,_ _USA_
Abstract
In this paper, we propose a consistent parallel unstructured mesh genera
tor based on a multi-phase SPH method. A set of physics-motivated modeling
equations are developed to achieve the targets of domain decomposition, com
munication volume optimization and high-quality unstructured mesh gener
ation simultaneously. A unified density field is defined as the target function
for both partitioning the geometry and distributing the mesh-vertexes. A
multi-phase Smoothing Particle Hydrodynamics (SPH) method is employed
to solve the governing equations. All the optimization targets are achieved
implicitly and consistently by the particle relaxation procedure without con
structing triangulation/tetrahedralization explicitly. The target of communi
cation reduction is achieved by introducing a surface tension model between
distinct partitioning sub-domains, which are characterized by colored SPH
particles. The resulting partitioning diagram features physically localized
sub-domains and optimized interface communication. The target of optimiz
_∗_ Zhe Ji and Lin Fu contributed equally to this work
_Email_ _addresses:_ `zhe.ji@tum.de` (Zhe Ji), `linfu@stanford.edu` (Lin Fu),
`xiangyu.hu@tum.de` (Xiangyu Hu), `nikolaus.adams@tum.de` (Nikolaus Adams)
_Preprint_ _submitted_ _to_ _XXX_ _June_ _20,_ _2019_
ing the mesh quality is achieved by introducing a tailored equation-of-state
(EOS) and a smooth isotropic kernel function. The mesh quality near the
interface of neighboring sub-domains is improved by gradually removing the
surface-tension force once a steady state is achieved. The proposed method
is developed basing on a new parallel environment for multi-resolution SPH
to exploit both coarse- and fine-grained parallelism. A set of benchmarks are
conducted to verify that all the optimization targets are achieved consistently
within the current framework.
_Keywords:_
Parallel Mesh Generator, High Performance Computing, Smoothing
Particle Hydrodynamics, Domain Decomposition
1. Introduction
The topic of parallel mesh generation is critical for capturing complex
physical phenomena in various areas, e.g. Finite Element Analysis (FEA)
[1], Computational Fluid Dynamics (CFD) [2] and image discretization in
bioinformatics [3]. Developing scalable, stable and high-quality parallel mesh
generation methods is important in reducing simulation cost and achieving
high-accuracy for the underlying numerical methods. Recently, new chal
lenges have raised for parallel mesh generation methods due to the rapidly
growing capabilities and capacities of modern supercomputers. To fully ex
ploit the potential of distributed memory system, the parallel mesh generator
needs to resolve various difficulties, e.g. the data dependency, the load bal
ancing and the irregular behavior of the mesh refinement [4]. According to
the NASA CFD vision 2030 study [5], mesh generation is still a significant
2
bottleneck in CFD and more research is needed.
Sequential unstructured mesh generation methods can be roughly cat
egorized as advancing front methods (AFT) [6][7], Delaunay refinement
based methods [8][9], Delaunay variational-based methods [10][11], Particle
based methods [12][13][14], etc. The advancing front method generates the
mesh from the geometry boundary and inserts layers of vertices representing
the front iteratively towards the interior of the domain [6]. The Delaunay
refinement-based method starts from a coarse representation of the geome
try and improves the mesh quality by gradually inserting new Steiner points
into the domain until a prescribed criterion is achieved [8]. As for Delau
nay variational-based method and particle-based method, either an energy
function [10][15] or a target mesh-size function [12][16] is defined. Different
numerical approaches are then applied to minimize the energy or interpo
lation error in order to optimize the mesh quality. Despite the similarities
shared by both methods, one fundamental difference is whether the con
nectivity information is required during the optimization procedure. For
particle-based mesh generation methods [12][13][17], pair-wise forces are de
fined between interacting particles to relax the system towards the target
distribution. Therefore, the mesh quality is improved implicitly without
constructing a Delaunay tessellation for each optimization iteration. More
over, since the interaction is constrained locally within a short cutoff radius,
only local information is required for each particle. Benefiting from afore
mentioned unique features, the particle-based method can be easily extended
to parallel systems and achieve scalable performance.
Comparing to sequential mesh generator, additional targets arise when
3
the mesh is generated in a distributed memory system. Ideally, a parallel
mesh generation method should retain the mesh quality generated by the
state-of-the-art sequential code and achieve fully code reuse without signif
icantly deteriorating the scalability of the code [18]. Therefore, in order
to accomplish the additional goals in a parallel environment, a consistent
formulation is required to maintain the quality of the mesh in a parallel
environment.
In the past decades, tremendous efforts have been done to develop parallel
unstructured mesh generation methods [19]. Initially, most of the developed
schemes follow a coarse-grained parallel strategy [20]. A Domain Decompo
sition (DD) step is first used to partition the geometry into either continuous
sub-domains or discrete simply-connected sub-meshes [21][22]. Different se
quential mesh-generation kernels are applied to mesh each sub-problem and
optimize the interface between sub-domains/sub-meshes respectively. The
main effort to increase the parallel efficiency relies on the amount of com
munication required on the sub-problem interfaces [23]. Depending on the
data synchronization strategy, the parallel mesh generations can be catego
rized into tightly-coupled, partially-coupled and decoupled approaches [19].
Tightly-coupled methods, e.g. Parallel Optimistic Delaunay Mesh (PODM)
[24] and Parallel Advancing Front Technique for shared memory computers
(PAFT _SM_ ) [21], optimize the mesh in the interior and on the interface of
each individual sub-problem simultaneously. While stability and quality of
the resulting mesh are guaranteed, the parallel implementation induces a sig
nificant amount of communication overhead and features low code reuse. For
decoupled approaches, e.g. Parallel Projective Delaunay Meshing (P <sup>2</sup> DM)
4
method [25] and Parallel Delaunay Domain Decoupling (PD3) method [22],
the geometry first is decomposed into continuous sub-domains and each sub
domain is meshed separately. This approach achieves high code reuse, but
the mesh quality depends on a proper domain decomposition method. The
partially coupled strategy, e.g. Parallel Octree AFT (POAFT) method [21]
and Parallel Constrained Delaunay Meshing method (PCDM) [26], find a
balance between the aforementioned two approaches. The meshing proce
dure is separated into two phases by defining an interior region and interface
region. The amount of communication is significantly reduced comparing
to tightly coupled ones and the codes are more stable in terms of achieving
high-quality meshes.
The coarse-grained mesh generators generally feature irregular commu
nication patterns and lack data locality due to the excessive remote data
access [27]. Recently with the fast development of manycore processors, e.g.
Graphic Processing Unit (GPU), the coarse-grained schemes are no longer
suitable for the newly-emerged architectures [28]. Several fine-grained par
allel models are exploited to achieve higher concurrency and data locality in
shared-memory systems [29][20]. In [20], the data dependency and concur
rency are ensured by constructing a graph and utilizing a fine-grained edge
coloring algorithm respectively. Apart from fine-grained parallel models, a
hybrid two-level Locality-Aware Parallel Delaunay imaging-to-mesh conver
sion algorithm (LAPD) is developed in [27]. A partially coupled scheme is
employed operating at the coarse level, and a tightly coupled method PODM
is utilized to optimize mesh quality within each sub-domain. The inter-node
communication only happens at the coarse level and high-concurrency is
5
maintained by the tightly coupled approach. More recently, a nested master
worker communication model is proposed in [30] to overlap the communi
cation and computation and to further exploit the two-level parallelism on
manycore distributed memory system.
To conclude, in order to utilize the full potential of the state-of-the-art
clusters, the parallel mesh generation method should be able to achieve the
following characteristics: (1) well-balanced load, optimized communication
volume, high scalability in the node level; (2) high concurrency and data
locality property in the thread level within each node; (3) easy to be extended
in a parallel environment, i.e. high code reusability.
According to the above discussions, the particle-based mesh generation
method is suitable as a candidate of large-scale parallel-mesh generator. Since
the mesh generation procedure is accomplished implicitly without operating
on a mesh and the pair-wise interaction only relies on its local informa
tion, it fulfills the fine-grained parallelism naturally. With a proper domain
decomposition method and dynamic load balancing strategy, e.g. the Cen
troidal Voronoi Particle (CVP) method [31], scalable performance can be
achieved with a large number of computational nodes. Moreover, due to the
Lagrangian nature of the particle-based method it is particularly suitable
and easy to program for modern parallel environment consisting of shared
memory or distributed-memory systems utilizing various parallel techniques,
e.g. Message Passing Interface (MPI) [32], OpenMP [33] and CUDA [34].
A number of well-established codes has been developed for different parti
cle methods on different architectures, e.g DualSPHysics [35] for free-surface
weakly-compressible flows using Smoothed Particle Hydrodynamics (SPH),
6
LAMMPS [36] for Molecular Dynamics (MD) and Dissipative Particle Dy
namics (DPD) simulations, OpenFPM [37] for hybrid particle-mesh simula
tions, etc. To the best of our knowledge, the topic of parallel particle-based
mesh generator in a distributed memory system has not yet been explored.
In this paper, a consistent particle-based parallel unstructured mesh gen
eration method is developed. Unlike other parallel approaches, which rely
on a domain decomposition step first before generating the mesh, the pro
posed method merges both steps into a single phase. The targets of improv
ing mesh quality, optimizing communication volume and domain decomposi
tion are achieved consistently within one set of physics-motivated modeling
equations. By defining a unified target function and introducing a surface
tension model in the governing equation, the newly-developed SPH-based
isotropic unstructured mesh generation method [12] is extended to a parallel
multi-resolution environment [38][39]. The parallel framework employs both
MPI and Thread Building Blocks (TBB) [40] techniques, therefore the mesh
generation procedure is able to exploit the parallelism with both coarse- and
fine-grained abstractions.
The rest of the paper is arranged as follows: In Section 2, we first in
troduce the mathematical description of our targets. The main idea and
the physics-motivated modeling equations are then elaborated. The detailed
numerical methods, e.g. the geometry definition, the discretization of the
modeling equations, the parallel environment, and etc., are presented in Sec
tion 3. In Section 4, various validation tests are carried out to demonstrate
the performance of the proposed method.
7
2. Physics motivated models
_2.1._ _Target_ _definition_
We first introduce the mathematical definition of the targets in both
the domain decomposition and the mesh generation. Given a target func
tion Φ( x ) defined in domain Ω, a point set _V_ is initialized to partition the
domain into elements. Each element in the resulting tessellation can be
treated as a computational unit. We can characterize the partition as a
graph _G_ = ( _V, E_ ), where _E_ denotes the communication relationship between
computational units.
In parallel simulation, _V_ is divided into _n_ disjoint subsets denoted as _V_ 1,
_V_ 2,..., _Vn_ respectively, and each subset is associated with one MPI task. An
optimal partitioning should have the following properties [41]:
_•_ _V_ 1 _∪_ _V_ 2 _... ∪_ _Vn_ = _V_ and _Vi ∩_ _Vj_ = _∅_ with _i̸_ = _j_ ;
_•_ _|Vi| ≈⌈_ <sup>_<u>|V |</u>_</sup>
_n_ <sup>_⌉_</sup> <sup>,</sup> <sup>_i_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, ..., n_</sup> <sup>;</sup>
_•_ <sup>�</sup> _i<j_ <sup>_Eij_</sup> <sup>is</sup> <sup>minimum,</sup> <sup>where</sup> <sup>_Eij_</sup> <sup>=</sup> <sup>_{_</sup> <sup>_{u, v} ∈_</sup> <sup>_E|u ∈_</sup> <sup>_Vi ∧_</sup> <sup>_v_</sup> <sup>_∈_</sup> <sup>_Vj_</sup> <sup>_}_</sup> <sup>.</sup>
Note that in this paper only equal mass partitioning is considered.
Regarding to mesh generation, there exists several approaches to charac
terize the approximation error between the discretized mesh element and the
given target function. According to [10], the _L_ <sup>_p_</sup> norm between the gradient
of Φ( x ), _▽_ Φ( <sup>˜</sup> x ), and its interpolation is defined to characterize the error
since the mesh quality can strongly affect the gradient error. In this paper,
we define an optimal mesh quality by
_•_ _L_ ( x ) =
Ω <sup>_∥▽_</sup> <sup>˜Φ(</sup> <sup>x</sup> <sup>)</sup> <sup>_−▽_</sup> <sup>Φ(</sup> <sup>x</sup> <sup>)</sup> <sup>_∥Lpd_</sup> <sup>x</sup> <sup>is</sup> <sup>minimum.</sup>
8
_2.2._ _Main_ _concept_
According to the definition in Section 2.1, we propose that the target
function Φ( x ) can be used for both the domain decomposition and mesh
generation. The total number of mesh vertices can be calculated basing
on Φ( x ), considering that the total mass is known and that each particle
has unit mass. The target mass of each sub-domain for load balancing can
be determined straightforwardly. A color function can be defined for each
particle, where within the same sub-domain particles share the same color.
To achieve the objective of domain decomposition and communication
optimization, a surface tension force can be applied between particles with
distinct colors to preserve the sharp interface condition between neighboring
sub-domains [41]. Consequently, particles of the same color tend to con
centrate. Sub-domains are optimized towards convex and compact shape
due to the existence of surface tension force. According to [41], the steady
state multi-phase fluid has high similarity to the balanced partitioning dia
gram, and the objectives of domain decomposition and communication can
be achieved implicitly.
During the partitioning stage, the mesh quality can be optimized simul
taneously. By introducing a tailored equation-of-state (EOS), the relative
error of particle density and target density is characterized as pseudo pres
sure. The error gradient results in pair-wise particle interaction force and
drives particles towards target density distribution while maintaining a regu
larized and isotropic distribution [12]. Once a steady state has been achieved,
the particles in the inner region of each sub-domain are optimized, and the
target of minimizing _L_ ( x ) is achieved implicitly.
9
Last, the mesh quality near the interface region of neighboring sub
domains can be optimized by gradually alleviating the surface tension force.
Since an equilibrium state already has been achieved, the optimization of
mesh quality near interface region will only result in local redistribution of
mesh vertices, i.e. limited overhead of the communication volume.
_2.3._ _Target_ _function_
We first refer the target function as ”target density” function or ”density”
function to relate with fluid dynamics
_ρt_ = Φ( x ) (1)
Since the target density function determines the size of mesh elements, we
can further define the target feature-size function ( _ht_ ) based on _ρt_ through a
mapping function,
_ht_ = _Q_ ( _ρt_ ) _._ (2)
The target density function can be defined considering different characteristic
fields. In general we can write
_ρt_ = Φ1( _a_ 1 _, a_ 2 _, ..., an_ ) _,_
_ht_ = Φ2( _a_ 1 _, a_ 2 _, ..., an_ ) _,_
(3)
where _a_ 1 _, a_ 2 _, ..., an_ are the contributing factors that characterize the mesh
vertex distribution. In [12], the authors suggest to calculate the target func
tion considering the level-set function _φ_, the diffused curvature _κ_ and the
minimum distance function _ψ_ taking into account the effect of geometry sin
gularities. Moreover, the target function can also be an arbitrary user-defined
function to facilitate capturing details with various objectives.
10
Based on the target density function, the total mass for generating a
volume mesh can be calculated by [14]
_Mv_ =
_ρt △_ _dv,_ (4)
where
Ω
1 _,_ if inside the geometry,
0 _,_ otherwise.
_△_ =
(5)
The total mass for generating a surface mesh can be calculated similarly by
integrating the target density function over the geometry surface
_Ms_ =
_ρtds._ (6)
_∂_ Ω
In order to characterize the target information for domain decomposition,
we define the total computational load ( _Mt_ ), i.e. total mass, as
_Mt_ = _Mv_ + _Ms._ (7)
Then the target mass for each sub-domain can be derived by
_Mproci_ = _ωi,tMt,_ (8)
where _i_ = _{_ 1 _,_ 2 _, .., Nproc}_ . _ωi,t_ is the fraction of the target mass for sub
domain _i_ compared with the total mass, and <sup>�</sup> <sup>_N_</sup> _i_ <sup>_proc_</sup>
<sup>_N_</sup> _i_ <sup>_proc_</sup> _ωi,t_ = 1. For equal mass
_<u>Mt</u>_
partitioning, _ωi,t_ =
_Nproc_
.
_2.4._ _Model_ _equations_
The Lagrangian form of governing equations for isothermal multi-phase
compressible flows is [41]
_<u>dρ</u>_
_dt_ <sup>=</sup> <sup>_−ρ ▽·_</sup> <sup>v</sup> <sup>_,_</sup> (9)
11
_<u>d</u>_ <u>v</u>
_dt_ <sup>=</sup> <sup>_−_</sup> <sup>F</sup> <sup>_p_</sup> <sup>+</sup> <sup>F</sup> <sup>_v_</sup> <sup>+</sup> <sup>F</sup> <sup>_s,_</sup> (10)
_<u>d</u>_ <u>x</u>
_dt_ <sup>=</sup> <sup>v</sup> <sup>_,_</sup> (11)
where _ρ_ is the density, v the velocity vector, x the position. F _p_, F _v_ and
F _s_ denote the pressure force, the viscous force and the surface tension force
respectively.
To close the system, an equation of state (EOS) is required:
_p_ = _f_ ( _ρ_ ) _,_ (12)
where _p_ denotes the fluid pressure. In the current paper, since the particles
are treated as pseudo fluid and the objective is to minimize the interpolation
error, the equation of state can be set as
_p_ = _P_ 0
- _<u>ρ</u>_
_ρt_
- _γ_
_,_ (13)
where _P_ 0 is a constant pressure and _γ_ is a user-defined parameter. This
EOS drives particles to relax to the target distribution. Once an equilibrium
state has been reached, pressure becomes constant, and consequently the
interpolation error is minimized, i.e. <sup>_<u>ρ</u>_</sup>
_ρt_
is approximately constant.
The model equations can be discretized and solved by the Smoothed
Particle Hydrodynamics method. The discretized form is presented in Section
3.3.
3. Numerical algorithms
The main numerical algorithms and implementation details are elabo
rated in this section.
12
_3.1._ _Level-set_ _method_ _for_ _geometry_ _definition_
First, we use the level-set method [42] to represent the geometry surface
using a zero level-set following [12].
Γ = _{_ ( _x, y_ ) _|φ_ ( _x, y, t_ ) = 0 _}._ (14)
The level-set field is discretized on a Cartesian background mesh. The mesh
generation region is defined as the positive phase, i.e. Γ+ = _{_ ( _x, y_ ) _|φ_ ( _x, y, t_ ) _>_
0 _}_ .
_3.2._ _Target_ _information_ _calculation_
The target information defined in Section 2.1 is calculated utilizing the
same Cartesian background mesh. A tag system is defined to characterize
the positive/negative phase, feature curve, feature surface and singularity
respectively. Each cell C _i_ is assigned with a unique integer and five categories
are defined accordingly, i.e. positive cell (C+), negative cell (C _−_ ), feature
surface cell (C _s_ ), feature-curve cell (C _c_ ) and singularity cell (C _si_ ) (see Fig.
1). Moreover, according to the level-set function, the volume fraction of the
positive phase inside each cell can be determined explicitly.
13
Figure 1: Tag system developed for characterizing the geometry and facilitating the mesh generating
process.
To calculate the target information, the integration can be performed
efficiently by looking for corresponding cells based on the tag system. In this
paper, the total mass for volume mesh _Mv_ is calculated using the divide-and
conquer method [43] for S _v_ = _{_ C _i|_ C _i_ _∈_ (C+ _∪_ C _s ∪_ C _c ∪_ C _si_ ) _}_ . The total mass
for surface mesh _Ms_ is calculated separately considering the surface integral
on the feature surface and the line integration on the feature curve. The
surface integration is calculated for S _s_ = _{_ C _i|_ C _i_ _∈_ (C _s ∪_ C _c ∪_ C _si_ ) _}_ and the
line integration S _c_ = _{_ C _i|_ C _i_ _∈_ (C _c_ _∪_ C _si_ ) _}_ . The same divide-and-conquer
method can be applied for the integration. To describe the feature surface
explicitly, the Marching Cube method [44] is used for surface reconstruction.
Once the total mass for mesh generation _Mt_ is determined, the target mass
for partitioning can be calculated straightforwardly applying Eq. (8).
14
In order to determine the total number of SPH particles, we assume that
each particle possesses unit mass
_mi_ = 1 _._ (15)
Since the SPH method inherently conserves mass and there is no mass trans
fer between particles, the density of each particle will evolve during the re
laxation procedure and eventually conforms to the target density field. The
target density _ρt,i_ for particle _i_ is interpolated from the Cartesian background
mesh at particle position r _i_ . The target feature-size is calculated following
_ht,i_ = _τ_
- _<u>mi</u>_
_ρt,i_
�1 _/d_
_,_ (16)
where _τ_ is a scaling factor depending on the kernel function and _d_ denotes
the spacial dimensionality.
_3.3._ _SPH_ _discretization_
With standard SPH method, the density of a particle can be calculated
using direct summation over all the neighboring _j_ particles
_ρi_ =
_j_
_mjW_ ( _rij, hi_ ) _,_ (17)
where _W_ ( _rij, hi_ ) is the kernel function, _hi_ the smoothing length of particle _i_,
r _ij_ = r _i −_ r _j_ the connecting vector between particle _i_ and _j_ .
Following [12], the pressure force can be discretized in a symmetric form
as
+ <sup>_<u>p</u>_</sup> <sup><u>0</u></sup>
_t,j_
e _ij,_ (18)
F _p,i_ =
_j_
_mj_
- _<u>p</u>_ <u>0</u>
_ρ_ <sup>2</sup> _t,i_
_ρ_ <sup>2</sup>
- _<u>∂W</u>_ <u>(</u> _<u>rij, hij</u>_ <u>)</u>
_∂rij_
15
where _hij_ = <sup>_<u>hi</u>_</sup> <sup><u>+</u></sup> <sup>_<u>hj</u>_</sup>
_∂rij_
is the derivative of kernel function, and
e _ij_ = <sup><u>r</u></sup> <sup>_<u>ij</u>_</sup>
_rij_
<sup><u>+</u></sup> <sup>_<u>hj</u>_</sup>, <sup>_<u>∂W</u>_</sup> <sup><u>(</u></sup> <sup>_<u>rij, hij</u>_</sup> <sup><u>)</u></sup>
2 _∂rij_
<sup><u>r</u></sup> <sup>_<u>ij</u>_</sup>
_rij_ <sup>is</sup> <sup>the</sup> <sup>unit</sup> <sup>vector</sup> <sup>pointing</sup> <sup>from</sup> <sup>particle</sup> <sup>_i_</sup> <sup>to</sup> <sup>_j_</sup> <sup>.</sup>
Note that the density term in the original discretized form disappears by
assuming _γ_ = 2 in Eq. (13) (see [12]), i.e.
_<u>ρ</u>_ <sup>2</sup>
_ρ_ <sup>2</sup> _t_
_p_ = _p_ 0
_._ (19)
Therefore the density summation term defined in Eq. (17) is no longer nec
essary.
The viscous force is calculated following
+ <sup><u>1</u></sup>
_j_
<u>v</u> _<u>ij</u>_
_rij_
- <u>1</u>
_ρ_ <sup>2</sup> _i_
F _v,i_ =
_j_
_mj_
<u>2</u> _<u>ηiηj</u>_
_ηi_ + _ηj_
_ρ_ <sup>2</sup> _j_
_,_ (20)
- _<u>∂W</u>_ <u>(</u> _<u>rij, hij</u>_ <u>)</u>
_∂rij_
where v _ij_ = v _i −_ v _j_, and _η_ = _ρν_ is the dynamic viscosity. In this paper, we
use
_ν_ _∼_ 0 _._ 1 _rc|_ v _|,_ (21)
where _rc_ is the cut-off radius of particle interaction range, assuming that the
local Reynolds number is on the order of _O_ (10). Moreover, by setting
_ρ_ = _ρt,_ (22)
the viscous force model can be further simplified. Meanwhile, as suggested in
[12], a simplified friction model is utilized to set an effectively infinite friction
coefficient and to damp particle kinetic energy to zero after each time-step.
As discussed in Section 1 and Section 2, the targets of maintaining com
pact and physically-connected sub-domains are handled by introducing a
surface tension model between particles belonging to distinct sub-domains,
i.e. particles carrying different colors. Ideally, the surface tension force can
16
be modeled by the continuum surface force (CSF) method [45] or the con
tinuum surface stress (CSS) method [46], where a finite transitional band is
used to characterize the interface. Within the transitional band the surface
tension force is approximated as a continuous force. However, to avoid the
direct calculation of curvature a simplified surface tension model is utilized in
this paper. Similarly with [41], the acceleration contributed by the interface
force can be approximated by an inter-particle repulsive pressure force,
e _ij,_ (23)
+ <sup>_<u>p</u>_</sup> <sup><u>0</u></sup>
_t,j_
F _s,i_ = _−_
_j_
_β_ ( _t_ ) _mj_
- _<u>p</u>_ <u>0</u>
_ρ_ <sup>2</sup> _t,i_
_ρ_ <sup>2</sup>
- _<u>∂W</u>_ <u>(</u> _<u>rij, hij</u>_ <u>)</u>
_∂rij_
where _β_ ( _t_ ) is a time-dependent coefficient to characterize the strength of
surface-tension effect
_β_ ( _t_ ) =
0 _,_ if _Ci_ = _Cj,_
_σ_ ( _t_ ) _,_ overwise,
(24)
where _Ck_ is the color function for particle _k_ . Note that the simplified surface
tension model has high similarity with the discretized pressure force formula
tion, Eq. (18). With the coefficient _σ_ ( _t_ ) _>_ 0, particles of different colors near
the interface region of neighboring sub-domains are separated by a repulsive
force. Moreover, in high-curvature regions particles are expected to concen
trate more, consequently resulting in a larger repulsive force to regularize the
interface shape.
To incorporate with the mesh generation procedure, the surface tension
force is removed once the target of domain-decomposition is achieved. In
order to maintain numerical stability, _β_ ( _t_ ) is reduced gradually. In this paper,
we use a linear function to ramp down the strength of surface tension effect
17
between the time interval [ _t_ 0 _, t_ 1]
3 _,_ if _t ≤_ _t_ 0 _,_
3(1 _−_ _t_ <sup>_<u>t</u>_</sup> 0 <sup><u>0</u></sup> _−_ <sup>_<u>−</u>_</sup> _t_ <sup>_<u>t</u>_</sup> 1 <sup>)</sup> _,_ if _t_ 0 _< t ≤_ _t_ 1 _,_
0 _,_ if _t_ 1 _< t,_
_β_ ( _t_ ) =
(25)
where _t_ 0 is the time when the initial partitioning is converged, and an initial
constant of 3 is set for _β_ following the suggestion in [41]. _t_ 1 can be obtained by
adding a fraction of _t_ 0, i.e. _t_ 1 = (1+ _ϑ_ ) _t_ 0. In this paper, we set _ϑ ∈_ [0 _._ 1 _,_ 0 _._ 2].
The convergence of partitioning is achieved when the particle system is
fully relaxed and an equilibrium state is maintained. We measure the topol
ogy variation of the system for a certain amount of iterations, e.g. 50. If the
topology remains static for the predefined interval, we assume the partition
ing procedure terminates and set _t_ = _t_ 0. In order to measure the topology
variation, the sampling procedure introduced in [41] can be carried out.
_3.4._ _Time_ _integration_
Following [41] and [12], a simplified time-integration scheme is employed
as
v - _n_ + <u>12</u> <sup>=</sup> <sup>v</sup> <sup>_n_</sup> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>a</sup> <sup>_n_</sup> <sup>∆</sup> <sup>_t,_</sup> (26)
v _n_ + <u>12</u> <sup>= �</sup> <sup>v</sup> <sup>_n_</sup> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>+</sup> <sup><u>1</u></sup> 2 <sup>�</sup> <sup>a</sup> <sup>_n_</sup> <sup>+</sup> 2 <sup><u>1</u></sup> <sup>∆</sup> <sup>_t,_</sup> (27)
r _n_ +1 = r _n_ + v _n_ + 21 <sup>∆</sup> <sup>_t._</sup> (28)
The acceleration a _n_ is first calculated from the pressure force F _p_ and the
surface tension force F _s_ and is used to update the mid-point velocity v - _n_ + 21 <sup>.</sup>
Then the viscous force F _v_ is calculated to obtain the mid-point acceleration
- a _n_ + 21 <sup>utilizing</sup> <sup>the</sup> <sup>predicted</sup> <sup>velocity</sup> <sup>v</sup> <sup>�</sup> <sup>_n_</sup> <sup>+</sup> 2 <sup><u>1</u></sup> <sup>.</sup> <sup>At</sup> <sup>last</sup> <sup>the</sup> <sup>particle</sup> <sup>position</sup> <sup>is</sup>
updated by a full timestep according to the modified velocity v _n_ + <u>12</u> <sup>.</sup>
18
The time-step size of the simulation is calculated with respect to the
physical model to maintain numerical stability. In this paper, the time-step
size is determined by the CFL criterion, the viscous criterion, and the body
force criterion respectively [12],
- ~~�~~ _<u>rc</u>_
0 _._ 25
_|_ a _|_ <sup>_,_</sup> 40 <sup><u>1</u></sup>
_<u>c</u>_
_ν_ <sup>2</sup>
_,_ (29)
∆ _t_ = _min_
_<u>rc</u>_ _<u>c</u>_
40 <sup><u>1</u></sup> _|_ v _|_ <sup>_,_</sup> <sup>0</sup> <sup>_._</sup> <sup>125</sup> <sup>_<u>r</u>_</sup> _ν_ <sup>2</sup>
where the artificial speed of sound is assumed as _cs_ _∼_ 40 _|_ v _|max_ .
_3.5._ _Singularity,_ _feature_ _curve_ _and_ _feature_ _surface_
Four types of particles, i.e. singularity particle, feature-curve particle,
feature-surface particle and normal particle, are defined to characterize the
features of underlying geometry specifically. Singularity particles are em
ployed to represent geometrical singularities such as sharp corners. The
position is not updated once a particle is marked as singularity particle.
Feature-curve particles and feature-surface particles are used to represent
sharp edges and surface of the geometry respectively. Particles that are
inside the mesh-generation region, i.e. the positive phase, are referred as
normal particles.
The feature-curve particles are used to provide repulsive force for sur
face and normal particles to prevent penetration. During the triangula
tion/tetrahedralization process, they are also utilized to generate 1D line
mesh. For the force calculation, only the same type of particles or singularity
particles are considered within the cut-off radius. The pair-wise interaction
force is projected to the tangential direction of the curve T ( r _i_ ) at position r _i_
F _∗,i_ = ( F _∗,i ·_ T ( r _i_ )) T ( r _i_ ) _._ (30)
19
After updating position, the particles are projected back to the feature curve
at the closest point to preserve the geometry.
Similarly, the feature-surface particles are used as the boundary condi
tions of normal particles and are also used to generate surface mesh. The
contribution from normal particles are excluded in the force calculation of
the feature-surface particles. The normal component of the interaction force
is ignored
F _∗,i_ = F _∗,i −_ ( N ( r _i_ ) _·_ F _∗,i_ ) N ( r _i_ ) _,_ (31)
where N ( r _i_ ) is the unit normal vector on the surface. To constrain the
particle motion on the surface, the updated position is projected back onto
the surface by
r _i_ = r _i −_ _φi_ N ( r _i_ ) _._ (32)
_3.6._ _Triangulation_ _and_ _tetrahedralization_
In the proposed method, since the mesh quality is optimized implicitly
without connectivity information, the 2D triangulation or 3D tetrahedraliza
tion is only performed for post-processing to visualize mesh elements and cal
culate mesh quality. For 2D triangulation, the mesh is constructed similarly
with [12] utilizing a local Voronoi tessellation. At the sub-domain bound
aries, the ghost buffer particles from neighboring processors are utilized to
generate the Voronoi diagram. A pair-wise synchronization is then performed
to remove duplicated elements. For 3D tetrahedralization, the open-source
code TetGen [47] is used. The flip operations included in TetGen (2-3 flip,
3-2 flip and 4-4 flip) are performed to improve the connectivity.
20
_3.7._ _Mesh_ _quality_ _criterion_
For isotropic triangular meshes, the mesh quality is quantified by _G_ =
_√_
2
3 _PH_ <sup>_<u>S</u>_</sup> <sup>and</sup> <sup>the</sup> <sup>angle</sup> <sup>_θ_</sup> <sup>,</sup> <sup>where</sup> <sup>_S_</sup> <sup>is</sup> <sup>the</sup> <sup>triangle</sup> <sup>area,</sup> <sup>_P_</sup> <sup>the</sup> <sup>half-perimeter</sup>
and _H_ the length of the longest edge. _θmax_, _Gavg_ and _Gmin_ / _θmin_ are the
maximum, average and minimum values respectively. _θmin_ <sup>#</sup> <sup>is</sup> <sup>the</sup> <sup>averaged</sup>
value of the minimum angle in each triangle. _θ<_ 30 is the number of triangle
that contains angle smaller than 30 <sup>_◦_</sup> . The distribution of angles is provided
too to check the regularity.
For isotropic tetrahedral mesh, the mesh quality is quantified by the dihe
dral angle _θ_ and radius ratio _γ_ = 3 _r_ <sup>_<u>r</u>_</sup> _circ_ <sup>_<u>in</u>_</sup> <sup>respectively,</sup> <sup>where</sup> <sup>_rin_</sup> <sup>is the inradius</sup>
and _rcirc_ the circumradius of a tetrahedron. _θmax_, _γavg_ and _γmin_ / _θmin_ are the
maximum, average and minimum values respectively. _θmin_ <sup>#</sup> <sup>is</sup> <sup>the</sup> <sup>averaged</sup>
value of the minimum dihedral angle in each tetrahedron. To evaluate the
distribution, diagrams of dihedral angle and radius ratio are provided. The
number of slivers are measured by counting the number of tetrahedra with
different smallest dihedral angles, i.e. 10 <sup>_◦_</sup>, 20 <sup>_◦_</sup>, 30 <sup>_◦_</sup> and 40 <sup>_◦_</sup> .
_3.8._ _Parallel_ _environment_ _for_ _multi-resolution_ _SPH_
The proposed method is implemented in a newly developed parallel en
vironment for multi-resolution SPH [38], which is designed for large-scale
simulations with arbitrarily adaptive smoothing-length. The code utilizes
a localized nested hierarchical data structure and a tailored parallel fast
neighbor-search algorithm for an efficient construction of ghost buffer parti
cles in remote processors. The communication is optimized by a ”diffused
graph” strategy, which facilitates the reduction of communication frequency.
21
The framework is parallelized with both MPI and TBB. The framework ex
hibits scalable performance on current state-of-the-art computer clusters for
both uniform and non-uniform particle distributions. The weak scaling re
veals that the code scales well up to at least 3584 cores. Good efficiency is
achieved for strong scaling tests (scales up to 7168 cores) at various scales.
For more detailed description of the framework, the readers are referred to
[38][48][39].
_3.9._ _Overview_
In this section, a detailed flowchart of the proposed method is summarized
in Algorithm 1.
22
<u>Algorithm</u> <u>1</u> <u>Flowchart</u> <u>of</u> <u>the</u> <u>parallel</u> <u>mesh</u> <u>generation</u> <u>method</u>
1: Initialize the background Cartesian mesh;
2: Initialize the level-set function (Eq. (14)) and target density function (Eq. (3)) basing
on the background mesh;
3: Calculate the target information for mesh generation (Eq. (7)) and domain decompo
sition (Eq. (8));
4: Initialize the parallel environment; _▷_ _e.g._ _construct_ _local_ _data_ _structure,_ _build_
_communication_ _topology,_ _allocate_ _resources,_ _and_ _etc._
5: while _t < tend_ do
6: Define particle target density ( _ρt_ ), scale ( _ht_, see Eq. (16)) as well as other infor
mation at r <sup>_n_</sup> _i_ <sup>;</sup>
7: Refresh data structure and communication topology; _▷_ _See_ _[38]_ _for_ _detailed_
_description_
8: Construct ghost buffer particles, and find neighboring particles to construct neigh
bor list;
9: Reset particle velocity and forces;
10: Calculate pressure force F _p_ (Eq. (18));
11: Calculate surface-tension coefficient (Eq. (24) and accumulate surface-tension force
F _s_ (Eq. (23));
12: Map F _p_ and F _s_ for feature-curve and feature-surface particles (Eq. (30) and Eq.
(31));
13:
Set physical time-step size (Eq. (29)) and update the mid-point velocity v - _n_ + 21
(Eq. (26));
14: Accumulate viscous force (Eq. (22));
15: Set physical time-step size (Eq. (29)) and update predicted velocity v _n_ + <u>12</u> <sup>(Eq.</sup>
(27));
16: Update particle position (Eq. (28));
17: Find particles that are close to the geometry features utilizing the tag system (de
fined in Section 3.2). Map the new singularity/feature-curve/feature-surface particles
into corresponding singularity/feature curve/feature surface (Section 3.5);
18: if Do post-processing then
19: Generate the corresponding mesh and calculate mesh quality;
20: end if
<u>21:</u> <u>end</u> <u>while</u>
23
4. Numerical validation
In this section, a set of two- and three-dimensional test cases are presented
to validate the performance of our method. All cases in this section are
simulated on the facilities provided by Leibniz-Rechenzentrum (LRZ). For
all the test cases below, we define the communication volume as _Neg/Net_,
where _Neg_ is the number of elements that contain vertices of different colors
and _Net_ is the total number of elements generated.
_4.1._ _Circle_
We first consider a 2D circle with adaptive resolution. The domain is
[0 _,_ 100] _×_ [0 _,_ 100], and the circle is defined as
Γ = _{_ ( _x, y_ ) _|_ 43 _−_
~~�~~ ( _x −_ 50) <sup>2</sup> + ( _y −_ 50) <sup>2</sup> ) = 0 _}._ (33)
The target feature-size function is given as _ht_ = _hmin_ +
_tanh_ ( <sup><u>2</u></sup> <u>43</u> <sup>_<u>.</u>_</sup> <sup><u>5</u></sup> <sup>_<u>φ</u>_</sup> <sup>)</sup>
_tanh_ (2 _._ 5) <sup>(</sup> <sup>_hmax_</sup> <sup>_−_</sup>
_hmin_ ), where _hmax_ and _hmin_ are the maximum and minimum mesh size. Two
resolutions are simulated with different number of MPI tasks. For the first
case (referred as _circle_ _~~6~~_ _mpi_ ), we set _hmax_ = 3 _._ 125 and _hmin_ = 0 _._ 391, and
6 MPI tasks are launched. For the second case (referred as _circle_ _~~1~~_ _2mpi_ ),
we set _hmax_ = 1 _._ 95 and _hmin_ = 0 _._ 195, and 12 MPI tasks are launched. The
simulation results for _circle_ _~~6~~_ _mpi_ is illustrated in Fig. 2 and Fig. 3. Fig. 4
and Fig. 5 are results of case _circle_ _~~1~~_ _2mpi_ respectively. The measurement of
mesh quality for both cases are shown in Table 1.
From the simulation results, it can be observed that before the ramping
down of surface tension force, all sub-domains feature convex and connected
shape, and a sharp interface is maintained between neighboring sub-domains
24
(see Fig. 2 (c) and Fig. 4 (c)). After removing the surface-tension force, the
sharp-interface condition is gradually relaxed and the mesh vertices near the
interface regions are regularized to an isotropic distribution (see Fig. 2 (d)
and Fig. 4 (d)). The final meshes still feature convex shape of sub-domains
(see Fig. 2 (b) and Fig. 4 (b)), and the increase of communication volume
after removing the surface tension force is negligible (see Fig. 2 (f) and Fig.
4 (f)).
High quality meshes are generated for both cases and for both in the
regions near geometry boundaries and in the far field (see Fig. 2 (a)(e)
and Fig. 4 (a)(e)). The convergence history of mesh quality and runtime
information are also provided in Fig. 3 and Fig. 5. Both cases feature
proper convergence. Also it can be observed that the overall mesh quality has
a rapid increase during the ramping-down of the surface-tension force stage,
which starts at approximately 4,000 iterations for _circle_ _~~1~~_ _2mpi_ and 40,000 for
_circle_ _~~1~~_ _2mpi_ ). This phenomenon is consistent with the expectation since the
repulsive force between sub-domains introduces irregularities at the interface
regions.
Table 1: Mesh quality of the circle case
_Gavg_ _Gmin_ _θmax_ _θmin_ _θmin_ <sup>#</sup> _θ<_ 30 _Np_ _Ntri_ <sup>1</sup>
_circle_ _~~6~~_ _mpi_ 0.91 0.53 110.7 28.2 52.0 11 4,289 7,977
_circle_ _~~1~~_ _2mpi_ 0.93 0.55 109.1 29.9 53.9 2 13,129 25,111
1 _Np_ denotes the total number of particles and _Ntri_ the total number of triangles
25
Figure 2: _circle_ _~~6~~_ _mpi_ : (a) Generated mesh after 20000 iterations. (b) Particle distribution after 20000
iterations. Particles are plotted with colors of each sub-domain and radius identical to the target feature
size. Particle distribution (c) before removing surface tension force and (d) after relaxation (zoom-in view
of the box region in (b)). (e) Zoomed-in view of the final mesh after 20000 iterations. (f) History of
communication volume. 26
Figure 3: _circle_ _~~6~~_ _mpi_ : (a) Histogram of the angle distribution. (b) Convergence history of _θmax_, _θmin_
and _θmin_ <sup>#</sup> <sup>.</sup> <sup>(c)</sup> <sup>Convergence</sup> <sup>history</sup> <sup>of</sup> <sup>_Gavg_</sup> <sup>and</sup> <sup>_Gmin_</sup> <sup>.</sup> <sup>(d)</sup> <sup>History</sup> <sup>of</sup> <sup>runtime.</sup>
27
Figure 4: _circle_ _12mpi_ : (a) Generated mesh after 200000 iterations. (b) Particle distribution after 200000
iterations. Particles are plotted with colors of each sub-domain and radius identical to the target feature
size. Particle distribution (c) before removing surface tension force and (d) after relaxation (zoom-in view
of the box region in (b)). (e) Zoomed-in view of the final mesh after 200000 iterations. (f) History of
communication volume. 28
Figure 5: _circle_ _~~1~~_ _2mpi_ : (a) Histogram of the angle distribution. (b) Convergence history of _θmax_, _θmin_
and _θmin_ <sup>#</sup> <sup>.</sup> <sup>(c)</sup> <sup>Convergence</sup> <sup>history</sup> <sup>of</sup> <sup>_Gavg_</sup> <sup>and</sup> <sup>_Gmin_</sup> <sup>.</sup> <sup>(d)</sup> <sup>History</sup> <sup>of</sup> <sup>runtime.</sup>
_4.2._ _Square_
Second, we consider a 2D square case with constant resolution using larger
scale and larger amount of MPI tasks (referred as _square_ _~~5~~_ _6mpi_ ). The size
of the square is 95 _×_ 95. The total number of mesh vertices is 1,772,894
and 56 MPI tasks are launched. Within each MPI tasks 14 TBB threads
are initialized for higher concurrency. The target feature-size is set with a
constant value _ht_ = 0 _._ 0714. For the initial condition, we first initialize 56
29
Voronoi generators and sample the generators uniformly into the background
mesh in positive region. The SPH particles are then randomly sampled inside
each Voronoi cell. The simulation results are presented in Fig. 6 and Fig. 7
and mesh quality statistics are given in Table 2.
The resulting partitioning diagram (see Fig. 6 (a)(b)) features compact
and convex shape of sub-domains, which has high similarities with the par
titioning results using the CVP method [31] and a graph-based partitioning
method in [49]. Similarly with the first case, the sharp-interface condition is
preserved before removing the surface tension force (see Fig. 6 (d)). After
optimizing the mesh quality near the interface, small disturbance is intro
duced at the inter-domain boundaries (see Fig. 6 (d)), and the amount of
communication overhead is limited too (see Fig. 6 (e)). It is worth men
tioning that the optimization of communication with the presence of surface
tension force does not always lead to the monotonic decrease of communica
tion volume, which depends on the initial condition particle seeding and the
distribution of the target function.
High-quality meshes are obtained from the calculation. Over 80% of
angles range from 55 <sup>_◦_</sup> to 65 <sup>_◦_</sup> (see Fig. 7 (a)). The convergence history of
mesh quality measurements presented in Fig. 7 (b) and (c) demonstrate the
good convergence of our method.
Table 2: Mesh quality of the square case
_Gavg_ _Gmin_ _θmax_ _θmin_ _θmin_ <sup>#</sup> _θ<_ 30 _Np_ _Ntri_
_square_ _~~5~~_ _6mpi_ 0.96 0.58 105.3 35.5 56.9 0 1,772,894 3,541,674
30
Figure 6: _square_ _~~5~~_ _6mpi_ : (a) Generated mesh after 80000 iterations. (b) Zoomed-in view of the box region
in (a) after 80000 iterations. Particles are plotted with colors of each sub-domain. Particle distribution
(c) before removing surface tension force and (d) after relaxation (zoom-in view of the box region in (a)).
(e) History of communication volume.
31
Figure 7: _square_ _~~5~~_ _6mpi_ : (a) Histogram of the angle distribution. (b) Convergence history of _θmax_, _θmin_
and _θmin_ <sup>#</sup> <sup>.</sup> <sup>(c)</sup> <sup>Convergence</sup> <sup>history</sup> <sup>of</sup> <sup>_Gavg_</sup> <sup>and</sup> <sup>_Gmin_</sup> <sup>.</sup> <sup>(d)</sup> <sup>History</sup> <sup>of</sup> <sup>runtime.</sup>
_4.3._ _Bunny_
The _Stanford_ _Bunny_ model [50] is considered. A constant target feature
size of _ht_ = 1 _._ 5 is defined and the total number of particles is 240,370.
20 MPI tasks are allocated and each contains 14 TBB threads. Similarly
with previous case, 20 Voronoi generators are sampled uniformly inside the
geometry. Particles are then initialized randomly inside a sphere, whose
diameter is the minimum distance to its nearest neighbor. The initial seeding
32
of SPH particles are illustrated in Fig. 8 (a), where particles are rendered
with sub-domain colors.
The particle distribution and the generated mesh are illustrated in Fig.
8 (c) to (e) at two different camera positions. A cross-section view is pre
sented as Fig. 8 (b) to show the inter-domain boundaries. All the results
demonstrate that the compact and connected sub-domains are maintained,
even at the connecting region of the ears. The features and details of the
model are well-captured and mesh vertices are distributed homogeneously
inside the geometry. The history of communication volume as shown in Fig.
9 (f) exhibits a slight increase after the ramping-down of the surface-tension
force (after 75000 iterations), however the overall overhead is approximately
0.4%.
Good mesh quality is obtained and the statistics are presented in Fig. 9
and Table 3 respectively. The histories of mesh quality demonstrate that the
simulation converges properly.
Table 3: Mesh quality of the Stanford bunny case
_θmin/θmax_ _γmin/γavg_ _θmin_ <sup>#</sup> _θ<_ 10 _θ<_ 20 _θ<_ 30 _θ<_ 40 _Np_ _Ntet_
_bunny_
15.3/154.8 0.24/0.92 56.6 0 2 127 8636 240,370 1,366,196
_~~2~~_ _0mpi_
33
Figure 8: _bunny_ _~~2~~_ _0mpi_ : (a) Initial particle distribution. Particles are plotted with sub-domain colors. (b)
Cross-section view of the particle distribution after 100,000 iteration. Front view of resulting mesh after
100,000 iteration plotted with (c) particles and (d) surfaces with edges. Back view of resulting mesh after
100,000 iteration plotted with (e) particles and (f) surfaces with edges.
34
Figure 9: (a) Histogram of the dihedral angle distribution. (b) Histogram of the radius ratio distribution.
(c) Convergence history of number of tetrahedra with minimum dihedral angle smaller than 10 <sup>_◦_</sup>, 20 <sup>_◦_</sup>,
30 <sup>_◦_</sup> and 40 <sup>_◦_</sup> . (d) History of runtime. (e) Tetrahedra with minimum dihedral angle smaller than 30 <sup>_◦_</sup> . (f)
History of communication volume.
35
_4.4._ _Cube_
We consider a cube of size [95 _×_ 95]. This is a simple geometry but
contains both singularities and feature curves. A constant target feature
size of _ht_ = 0 _._ 78 is defined and the total number of particles is 1,888,113.
24 MPI tasks are allocated and each contains 14 TBB threads. Similarly
with the bunny case, 24 Voronoi generators are sampled uniformly inside the
geometry. The initial particle seeding is shown in Fig. 11 (a).
The simulation result after 217500 iterations is illustrated in Fig. 10 pre
sented by particles rendered with sub-domain colors (see Fig. 10 (a)(c)(e))
and tetrahedra (see Fig. 10 (b)(d)(f)). Again overall compact and convex
sub-domains are maintained with small disturbance at the interface (see Fig.
10 (c) for a zoom-in view and Fig. 10 (e) for a clipped view). The over
head of communication volume after relaxation of surface tension force is
approximately 1%.
Regarding to mesh quality, statistics and history curves are presented in
Table 4 and Fig. 11. According to the Dihedral angle histogram in Fig. 11
(c), most of the angles concentrate at approximately 60 <sup>_◦_</sup> ( _∼_ 60%) and 90 <sup>_◦_</sup>
( _∼_ 25 _._ 5%), which is highly close to the dihedral angles of a Body-Centered
Cubic (BCC) tetrahedron and features minimum mean square error [51].
From the zoom-in view (see Fig. 10 (d)) and clipped view of the generated
mesh (see Fig. 10 (f)), the BCC distribution of mesh vertices can be observed.
For the radius ratio diagram (see Fig. 11 (d)), about 83% of all tetrahedra
falls into the range between 0.94 to 1.13.
36
Table 4: Mesh quality of the cube case
_θmin/θmax_ _γmin/γavg_ _θmin_ <sup>#</sup> _θ<_ 10 _θ<_ 20 _θ<_ 30 _θ<_ 40 _Np_ _Ntet_
_cube_
21.5/147.3 0.27/0.94 58.8 0 0 187 7796 1,888,113 11,127,061
_~~2~~_ _4mpi_
37
Figure 10: Simulation result after 217500 iterations plotted with (a) particles and (b) surfaces with edges.
(c) Zoomed-in view of (a). (d) Zoomed-in view of (b). Simulation result with clipping after 217500
it ti l tt d ith ( ) ti l d (f) f ith d P ti l d d b b d i
Figure 11: (a) Initial seeding of particles. (b) History of communication volume. (c) Histogram of the
dihedral angle distribution. (d) Histogram of the radius ratio distribution. (e) Convergence history of
number of tetrahedra with minimum dihedral angle smaller than 10 <sup>_◦_</sup>, 20 <sup>_◦_</sup>, 30 <sup>_◦_</sup> and 40 <sup>_◦_</sup> . (f) History of
runtime.
38
_4.5._ _Spur_ _gear_
Lastly we consider a realistic geometry of spur gear developed for gear
lubrication tests [52]. Multiple singularities and sharp edges are presented in
the model. The size of computational domain is [86 _._ 4 _×_ 17 _._ 6 _×_ 86 _._ 4]. The mini
mum and maximum target feature-size is 0.4 and 1.6 respectively. The target
density field is calculated considering singularities, feature curve, curvature
and distance to the geometry surface similar with [12]. The total number of
particles calculated is 1,888,113. 6 MPI tasks are allocated and each con
tains 14 TBB threads. 6 Voronoi generators are uniformly distributed in the
geometry and particles are initially randomly sampled within each Voronoi
cell. The initial condition is shown in Fig. 13 (a).
The generated results after 250000 iterations are illustrated in Fig. 12
(a) and (b) with particle and mesh representation, and clipped views (see
Fig. 12 (c)(d)) are presented too. The resulting partitioning sub-domains
feature convex and compact shape. The sharp-interface condition is main
tained before the relaxation of surface-tension force (see Fig. 12 (e)). While
some disturbances are observed at the geometry corners after the system is
fully relaxed (see Fig. 12 (a) and f), the communication overhead is around
0.15% (see 13 (b)).
The histories of _θ<_ 10, _θ<_ 20, _θ<_ 30 and _θ<_ 40 (13 (e)) show good convergence
of the simulation. The number of slivers is ignorable, i.e. 1 tetrahedron
has dihedral angle smaller than 10 <sup>_◦_</sup>, comparing to total number of elements
generated (1,847,416). The histograms of dihedral angle (13 (c)) and radius
ratio (13 (d)) exhibit good mesh quality too.
39
Table 5: Mesh quality of the spur gear case
_θmin/θmax_ _γmin/γavg_ _θmin_ <sup>#</sup> _θ<_ 10 _θ<_ 20 _θ<_ 30 _θ<_ 40 _Np_ _Ntet_
_Spur_ _~~g~~_ _ear_
6.84/168.7 0.14/0.90 54.8 1 162 4244 73411 358,836 1,847,416
_~~6~~_ _mpi_
40
Figure 12: Simulation result after 250000 iterations plotted with (a) particles and (b) surfaces with edges.
(c) Clipped view of (a). (d) Clipped view of (b). Particle distribution (c) before removing surface tension
f d (d) ft f ll l d P ti l d d b b d i l
Figure 13: (a) Initial seeding of particles. (b) History of communication volume. (c) Histogram of the
dihedral angle distribution. (d) Histogram of the radius ratio distribution. (e) Convergence history of
number of tetrahedra with minimum dihedral angle smaller than 10 <sup>_◦_</sup>, 20 <sup>_◦_</sup>, 30 <sup>_◦_</sup> and 40 <sup>_◦_</sup> . (f) History of
runtime.
41
5. Conclusions
In this paper, we have developed a consistent parallel mesh generation
method with a multi-phase SPH formulation and particle relaxation strategy.
The objectives of partitioning the domain, optimizing communication volume
and improving mesh quality are achieved consistently by solving the same
set of physics-motivated governing equations. The main contributions of the
paper are:
(1) A unified target density function is defined to characterize the targets of
both the domain decomposition and the mesh generation. The target
density function can be any smooth scalar field considering various
geometrical features and user-defined inputs. By utilizing a background
Cartesian mesh and level-set function, the total number of mesh vertices
and target mass for each sub-domain can be determined a priori;
(2) A parallelization strategy is developed and a set of physics motivated
governing equations are proposed to achieve all underlying targets con
sistently. A surface tension model is introduced to the previous particle
based mesh generator [12] to handle the additional target of optimiz
ing the communication volume in a parallel environment. During the
domain decomposition stage, the mesh quality is improved simultane
ously in the interior region of each sub-domain. Once a steady state
is achieved, the mesh quality near the interface region is optimized by
gradually alleviating the surface tension force.
(3) A multi-phase SPH formulation is utilized to solve the governing equa
tions. The previously-developed mesh generator [12] is extended to
42
higher dimensions and parallelized with both MPI and TBB technique.
Numerical results demonstrate that the resulting sub-domains feature
compact and regularized shape, and high-quality mesh is generated
simultaneously. The communication overhead caused by the optimiza
tion of mesh quality near the interface is limited even in cases with
complex geometry and large spacial adaptivity;
(4) With the proposed parallel mesh generation method, high quality tri
angle/tetrahedron mesh can be generated without the need of con
structing Delaunay Triangulation/Tetrahedralization explicitly. Since
only local information are required during the simulation and the same
set of governing equations are solved for all the particles, the proposed
method features high consistency and code reusability. Benefiting from
the scalable parallel environment designed previously in [38], the mesh
generation procedure is able to exploit both fine-grained and coarse
grained parallelization.
Given all the above-mentioned advantages, the current particle-based
method is still considerably more expensive than the state-of-the-art Delaunay
based methods. In the future, we are looking forward to extend the proposed
algorithm to GPU-based architectures to achieve higher concurrency and per
formance, since most SPH methods have experienced one to two orders of
magnitude speedups when extended to GPUs. Moreover, more studies on ini
tial particle seeding strategies will be carried out and possible coupling with
existing mesh-generation methods will be investigated in the near future.
43
Acknowledgments
Zhe Ji is partially supported by China Scholarship Council (No. 201506290038).
Xiangyu Hu acknowledges funding Deutsche Forschungsgemeinschaft (HU1527/10
1 and HU1527/12-1). The computational resources are provided by Leibniz
Rechenzentrum der Bayerische Akademie der Wissenschaften, Munchen (LRZ).
References
[1] P. J. Frey, P.-L. George, Mesh generation: application to finite elements, ISTE, 2007.
[2] M. A. Park, J. A. Krakos, T. Michal, A. Loseille, J. J. Alonso, Unstructured grid adaptation: Status,
potential impacts, and recommended investments toward CFD vision 2030.
[3] D. Feng, C. Tsolakis, A. N. Chernikov, N. P. Chrisochoides, Scalable 3d hybrid parallel Delaunay
image-to-mesh conversion algorithm for distributed shared memory architectures, Procedia Engineer
ing 124 (2015) 18–30.
[4] D. Feng, A. N. Chernikov, N. P. Chrisochoides, A hybrid parallel Delaunay image-to-mesh conversion
algorithm scalable on distributed-memory clusters, Procedia engineering 163 (2016) 59–71.
[5] J. Slotnick, A. Khodadoust, J. Alonso, D. Darmofal, W. Gropp, E. Lurie, D. Mavriplis, CFD vision
2030 study: a path to revolutionary computational aerosciences.
[6] J. Sch¨oberl, Netgen an advancing front 2D/3D-mesh generator based on abstract rules, Computing
and visualization in science 1 (1) (1997) 41–52.
[7] R. L¨ohner, Recent advances in parallel advancing front grid generation, Archives of Computational
Methods in Engineering 21 (2) (2014) 127–140.
[8] J. R. Shewchuk, Delaunay refinement algorithms for triangular mesh generation, Computational
geometry 22 (1-3) (2002) 21–74.
[9] L. P. Chew, Guaranteed-quality delaunay meshing in 3D (short version), in: Proceedings of the
thirteenth annual symposium on Computational geometry, ACM, 1997, pp. 391–393.
[10] S. Ni, Z. Zhong, Y. Liu, W. Wang, Z. Chen, X. Guo, Sliver-suppressing tetrahedral mesh optimization
with gradient-based shape matching energy, Computer Aided Geometric Design 52 (2017) 247–261.
[11] Q. Du, V. Faber, M. Gunzburger, Centroidal voronoi tessellations: Applications and algorithms,
SIAM review 41 (4) (1999) 637–676.
[12] L. Fu, L. Han, X. Y. Hu, N. A. Adams, An isotropic unstructured mesh generation method based
on a fluid relaxation analogy, Computer Methods in Applied Mechanics and Engineering 350 (2019)
396–431.
44
[13] Z. Zhong, X. Guo, W. Wang, B. L´evy, F. Sun, Y. Liu, W. Mao, Particle-based anisotropic surface
meshing, ACM Transactions on Graphics (TOG) 32 (4) (2013) 99.
[14] L. Fu, X. Y. Hu, N. A. Adams, Adaptive anisotropic unstructured mesh generation method based
on fluid relaxation analogy, submit.
[15] Q. Du, D. Wang, Tetrahedral mesh generation and optimization based on Centroidal Voronoi Tes
sellations, International journal for numerical methods in engineering 56 (9) (2003) 1355–1373.
[16] P.-O. Persson, Mesh size functions for implicit geometries and PDE-based gradient limiting, Engi
neering with Computers 22 (2) (2006) 95–109.
[17] M. D. Meyer, P. Georgel, R. T. Whitaker, Robust particle systems for curvature dependent sampling
of implicit surfaces, in: International Conference on Shape Modeling and Applications 2005 (SMI’05),
IEEE, 2005, pp. 124–133.
[18] C. Tsolakis, N. Chrisochoides, M. A. Park, A. Loseille, T. R. Michal, Parallel anisotropic unstructured
grid adaptation, in: AIAA Scitech 2019 Forum, 2019, p. 1995.
[19] N. Chrisochoides, Parallel mesh generation, in: Numerical solution of partial differential equations
on parallel computers, Springer, 2006, pp. 237–264.
[20] H. Rakotoarivelo, F. Ledoux, F. Pommereau, Fine-grained locality-aware parallel scheme for
anisotropic mesh adaptation, Procedia engineering 163 (2016) 123–135.
[21] R. Lohner, J. R. Cebral, Parallel advancing front grid generation, in: in International Meshing
Roundtable, Sandia National Labs, Citeseer, 1999.
[22] L. Linardakis, N. Chrisochoides, Delaunay decoupling method for parallel guaranteed quality planar
mesh refinement, SIAM Journal on Scientific Computing 27 (4) (2006) 1394–1423.
[23] A. Loseille, V. Menier, F. Alauzet, Parallel generation of large-size adapted meshes, Procedia Engi
neering 124 (2015) 57–69.
[24] D. Nave, N. Chrisochoides, L. P. Chew, Guaranteed-quality parallel Delaunay refinement for re
stricted polyhedral domains, Computational Geometry 28 (2-3) (2004) 191–215.
[25] J. Galtier, P. L. George, Prepartitioning as a way to mesh subdomains in parallel, in: in 5th Inter
national Meshing Roundtable, Citeseer, 1996.
[26] L. P. Chew, N. Chrisochoides, F. Sukup, Parallel constrained Delaunay meshing, ASME APPLIED
MECHANICS DIVISION-PUBLICATIONS-AMD 220 (1997) 89–96.
[27] D. Feng, A. N. Chernikov, N. P. Chrisochoides, Two-level locality-aware parallel Delaunay image-to
mesh conversion, Parallel Computing 59 (2016) 60–70.
[28] J.-F. Remacle, V. Bertrand, C. Geuzaine, A two-level multithreaded Delaunay kernel, Procedia
Engineering 124 (2015) 6–17.
[29] G. Rokos, G. J. Gorman, K. E. Jensen, P. H. Kelly, Thread parallelism for highly irregular computa
tion in anisotropic mesh adaptation, in: Proceedings of the 3rd International Conference on Exascale
Applications and Software, University of Edinburgh, 2015, pp. 103–108.
45
[30] D. Feng, A. N. Chernikov, N. P. Chrisochoides, A hybrid parallel Delaunay image-to-mesh conversion
algorithm scalable on distributed-memory clusters, Computer-Aided Design 103 (2018) 34–46.
[31] L. Fu, X. Y. Hu, N. A. Adams, A physics-motivated Centroidal Voronoi Particle domain decompo
sition method, Journal of Computational Physics 335 (2017) 718–735.
[32] M. P. Forum, MPI: A Message-Passing Interface Standard, Tech. rep., Knoxville, TN, USA (1994).
[33] O. A. R. Board, OpenMP Application [Program](http://www.openmp.org/mp-documents/spec30.pdf) Interface Vsersion 3.0 (may 2008).
URL `[http://www.openmp.org/mp-documents/spec30.pdf](http://www.openmp.org/mp-documents/spec30.pdf)`
[34] J. Nickolls, I. Buck, M. Garland, K. Skadron, Scalable Parallel [Programming](http://doi.acm.org/10.1145/1365490.1365500) with CUDA, Queue
6 (2) (2008) 40–53. `[doi:10.1145/1365490.1365500](http://dx.doi.org/10.1145/1365490.1365500)` .
URL `[http://doi.acm.org/10.1145/1365490.1365500](http://doi.acm.org/10.1145/1365490.1365500)`
[35] A. J. Crespo, J. M. Dom´ınguez, B. D. Rogers, M. G´omez-Gesteira, S. Longshaw, R. Canelas, R. Va
condio, A. Barreiro, O. Garc´ıa-Feal, DualSPHysics: Open-source parallel CFD solver based on
Smoothed Particle Hydrodynamics (SPH), Computer Physics Communications 187 (2015) 204–216.
[36] S. Plimpton, Fast parallel algorithms for short-range molecular dynamics, Journal of computational
physics 117 (1) (1995) 1–19.
[37] P. Incardona, A. Leo, Y. Zaluzhnyi, R. Ramaswamy, I. F. Sbalzarini, OpenFPM: A scalable open
framework for particle and particle-mesh codes on parallel computers, Computer Physics Communi
cations.
[38] Z. Ji, L. Fu, X. Y. Hu, N. A. Adams, A new multi-resolution parallel framework for SPH, Computer
Methods in Applied Mechanics and Engineering 346 (2019) 1156–1178.
[39] L. Fu, Z. Ji, X. Y. Hu, N. A. Adams, Parallel fast-neighbor-searching and communication strategy
for particlebased methods, Engineering Computations 36 (3) (2019) 899–929.
[40] G. Contreras, M. Martonosi, Characterizing and improving the performance of intel threading build
ing blocks, in: Workload Characterization, 2008. IISWC 2008. IEEE International Symposium on,
IEEE, 2008, pp. 57–66.
[41] L. Fu, S. Litvinov, X. Y. Hu, N. A. Adams, A novel partitioning method for block-structured adaptive
meshes, Journal of Computational Physics 341 (2017) 447–473.
[42] S. Osher, J. A. Sethian, Fronts propagating with curvature-dependent speed: algorithms based on
Hamilton-Jacobi formulations, Journal of computational physics 79 (1) (1988) 12–49.
[43] L. Han, X. Hu, N. A. Adams, Adaptive multi-resolution method for compressible multi-phase flows
with sharp interface model and pyramid data structure, Journal of Computational Physics 262 (2014)
131–152.
[44] W. E. Lorensen, H. E. Cline, Marching cubes: A high resolution 3D surface construction algorithm,
in: ACM siggraph computer graphics, Vol. 21, ACM, 1987, pp. 163–169.
[45] J. Brackbill, D. B. Kothe, C. Zemach, A continuum method for modeling surface tension, Journal of
Computational Physics 100 (2) (1992) 335–354.
46
[46] B. Lafaurie, C. Nardone, R. Scardovelli, S. Zaleski, G. Zanetti, Modelling merging and fragmentation
in multiphase flows with SURFER, Journal of Computational Physics 113 (1) (1994) 134–147.
[47] H. Si, Tetgen, a Delaunay-based quality tetrahedral mesh generator, ACM Transactions on Mathe
matical Software (TOMS) 41 (2) (2015) 11.
[48] Z. Ji, L. Fu, X. Y. Hu, N. A. Adams, A Lagrangian Inertial Centroidal Voronoi Particle method
for dynamic load balancing in particle-based simulations, Computer Physics Communications 239
(2019) 53–63.
[49] H. Meyerhenke, B. Monien, S. Schamberger, Graph partitioning and disturbed diffusion, Parallel
Computing 35 (10-11) (2009) 544–569.
[50] G. Turk, M. Levoy, Zippered polygon meshes from range images, in: Proceedings of the 21st annual
conference on Computer graphics and interactive techniques, ACM, 1994, pp. 311–318.
[51] E. Barnes, N. Sloane, The optimal lattice quantizer in three dimensions, SIAM Journal on Algebraic
Discrete Methods 4 (1) (1983) 30–41.
[52] B. R. Hoehn, P. Oster, T. Tobie, K. Michaelis, Test methods for gear lubricants, Goriva i maziva
47 (2) (2008) 141–152.
47
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.