Professional Documents
Culture Documents
1 Introduction
value. Compared to the volume of fluid method, the level set is easier to compute
from CAD file formats. In graphic visualization, the signed distance field is gen-
erated from the .STL file using GPUs [14, 18, 2]. For fluid-structure interaction,
the distributed bounding box hierarchy has been applied to compute the level
set function from the CAD file, and then inserted into the Cartesian mesh [19,
8, 6]. Although this method can reduce the computing time for complex geome-
tries, it is difficult to implement and requires a complicated data structure. In
this study, we will present a simple method to calculate the level set function
from the .STL file. The method can be time-consuming for bodies with huge
numbers of surface elements. However, the calculation is performed only once,
at the initial stage. Therefore, this step only slightly affects to total time of the
computation. In order to compute the fluid flows over a structure, we applied
the finite volume method combined with the cut-cell approach to discretize the
governing equations [4, 5, 11, 16]
d2 = |x2 − p2 |, (2)
Title Suppressed Due to Excessive Length 3
d3 = |x3 − p3 |. (3)
Then, the minimum length is determined by
The sign value of distance In order to decide if the grid point is inside or
outside the object, we need to assign the sign value to the computed distance
from section 2.1. In our study, we used the ray casting method [17], which deter-
mines the sign by inserting a ray from the target point and counts the number
of intersections between the ray and the object. If this is an odd number the
point is inside the object. If the number of intersections is even it means that
the point is outside.
∂ X X
V (αf ρu) = −αf V (∇p+ρg)+ µ∇u · nf Af +τ w ·nf,w Aw − ρuu · nf Af ,
∂t
Af Af
(8)
where, Af is fluid surface area, Af,w is wall area, nf is the normal vector at the
fluid surface, nF,w is the normal vector pointing to fluid field at the wall, uw is
the wall velocity, V is the volume of the cell, αf is the fluid volume fraction in
the cell and τ w is the wall shear stress tensor. The wall shear stress is computed
based on the distance from velocity position to the solid wall (∆h), as follows,
u − uw
τw = µ . (9)
∆h
The details of discretization are given in the work of Dang et al. [5]
Fig. 2: The cell contains both fluid and solid. The interface between two phases
is marked with red colour.
3 Numerical results
3.1 Level set function for a ship
In this test, we focus on generating the level set function from a .STL file.
The object is a vessel which is created by Fussion 360. Figure 3a shows the
ship structure with simple design. Figure 3b shows the surfaces of the ship as
being assembled from triangles. The size of the ship is 332 × 168 × 600 mm.
Computing the level set function for the whole computational domain will be
Title Suppressed Due to Excessive Length 5
(a) (b)
Fig. 3: The shape of ship (a) and the triangular wire-frame representing the
surface of the object (b).
Fig. 4: The zero contour level set represents the ship surface. The sign distance
is computed based on the ray casting method
Fig. 5: The computational domain (a) and the computational mesh (b) for the
flow over sphere test.
4 Conclusion
In this study, we presented the numerical method for computing the level set
function as well as solving fluid governing equations. The ray casting method is
implemented to correct the signed distance at specific region of the computa-
tional domain. Several tests were performed to validate our methods. In general,
the numerical method produced good outputs compared to other works in liter-
ature. In the future, we will perform more complex tests to check the robustness
of our method.
Title Suppressed Due to Excessive Length 7
Acknowledgement
We would like to thank the Norwegian Research Council to fund our research
through the ICELOAD project (project number 308780, “Enabling prediction
of ice loads on structures in the Arctic”), and the Russian Foundation for Basic
Research for funding through grant number 20-58-20004.
References
1. ANSYS. https://www.ansys.com/ (2018)
2. Fast distance fields for fluid dynamics mesh generation on graphics hard-
ware. Communications in Computational Physics 26(3), 654–680 (2019).
https://doi.org/https://doi.org/10.4208/cicp.OA-2018-013
3. Clift, R., Grace, J.R., Weber, M.E.: Bubbles, Drops, and Particles. Academic Press,
New York (1978)
4. Dang, S.T., Johansen, S.T., Meese, E.A.: A Cartesian Cut-Cell Method, Based
on Formal Volume Averaging of Mass, Momentum Equations. SINTEF akademisk
forlag (2017)
5. Dang, S.T., Meese, E.A., Morud, J.C., Johansen, S.T.: Numerical Approach
for Generic Three-Phases Flow Based on Cut-cell and Ghost Fluid Meth-
ods. International Journal for Numerical Methods in Fluids 0(ja) (Jun 2019).
https://doi.org/10.1002/fld.4758
6. DesJardin, P.E., Bojko, B.T., McGurn, M.T.: Initialization of high-order ac-
curacy immersed interface cfd solvers using complex cad geometry. Interna-
tional Journal for Numerical Methods in Engineering 109(4), 487–513 (2017).
https://doi.org/https://doi.org/10.1002/nme.5294
7. Geuzaine, C., Remacle, J.F.: Gmsh: A 3-d finite element mesh
generator with built-in pre- and post-processing facilities. Inter-
national Journal for Numerical Methods in Engineering 79(11),
1309–1331 (2009). https://doi.org/https://doi.org/10.1002/nme.2579,
https://onlinelibrary.wiley.com/doi/abs/10.1002/nme.2579
8 S.T. Dang et al.