Numerical Methodology of Mesh-Based Simulation Technique
Numerical Methodology of Mesh-Based Simulation Technique
ISSN No:-2456-2165
Abstract— A clear methodology for mesh-based II. MODEL, GEOMETRY AND CALCULATION
simulation technique is presented in this study. The
principles from creating the model to creating geometry, A. Partial Differential Equations
mesh generation, calculation, and result analysis (post- In numerical studies, a problem is represented in form of
processing) were highlighted. Some of the results picked differential equations (partial differential equation). The
from previous works that employed the mesh-based Partial differential equation (PDE) is an equation that relates
technique were presented and that demonstrates how a function of several variables to its partial derivatives. Many
robust this technique is. It is obvious that today the use of problems in engineering and sciences are presented in form
computer simulations, in general, is paramount and that PDE, e.g., wave equation, mass transfer equation, heart
with computer simulations, different solutions can be transfer equation, Schrödinger equation etc. Mostly, physical
evaluated numerically, and only promising designs are phenomena are modelled by equations that relate several
sent to the laboratory or production line for scale-up partial derivatives of physical quantities such as momentum,
production. velocity, forces, temperature, etc [4]. Equation 1 and 2 shows
the example of first and second order partial differential
Keywords:- Models; simulation; geometry; mesh; mesh equation in three dimensions (3D).
generation; Elmer.
𝜕𝑢 𝜕𝑢 𝜕𝑢 𝜕𝑢
= 𝜕𝑥 + 𝜕𝑦 + 𝜕𝑧 (1)
𝜕𝑡
I. INTRODUCTION
𝜕2𝑢 𝜕2𝑢 𝜕2𝑢 𝜕2𝑢
Traditionally, computer simulations are carried out over = 𝜕𝑥 2 + 𝜕𝑦2 + 𝜕𝑧 2 (2)
𝜕𝑡 2
system domains made of meshed (grid) surfaces. According
to [1], “traditional modelling approaches make use of The typical way to solve PDEs is to discretize them
parametric patches, implicit surface, or subdivision surfaces since they constitute a large sparse of matrix problem.
that have been well integrated into 2D or 3D software”. The However, there are many ways of discretizing PDEs and the
procedure for mesh-based simulation includes building a simplest is finite difference approximations for partial
geometry, meshing and solution of the model equations using operators. The finite element method replaces the original
a given software. The system is first translated into a function (overall equation of the global domain) with a
geometry which is latter discretized into mesh of a given size function (sub-equations) that has some degree of smoothness
and finally the model, which is normally a differential but is piecewise polynomial on simple cells such as rectangle,
equation, is solved. After building the geometry the operation squares, or triangles. These triangles or rectangles are called
is usually carried out in three stages (mesh generation, the grid or mesh in 2D or 3D.
solution and postprocessing) and this, sometimes, require
three independent software to do the job. For example, in With numerical PDEs, the conditions at one or both
computational study of mass transfer at surfaces with reactive extremes need to be specified in other to set limit or
nanocones [2] the geometry and meshing were done by Gmsh boundary. Therefore, initial value and boundary value
software, whereas solution and postprocessing were carried problems are included as constraints equations in the solution
out by Elmer and Paraview, respectively. Each of the stages of PDEs. Boundary conditions are practically essential for
mentioned above is as important as the other and the error in defining computational problems because the resultant
one stage will significantly lead to an error in the other. quality of computations can critically be decided on how
However, some software (e.g. COMSOL) were developed in those boundary conditions are numerically treated [5].
such a way that it can handle all the three operations.
Boundary value and initial value problems
When complex geometries were involved in a When a solution and derivatives value of a system of
quantitative study of a physical phenomenon, numerical differential equations (ordinary or partial) is specified at more
methods (such as finite element method) that discretize space than one point, it is said to be a boundary value problem
are often the best method [3]. The procedure for (BVP). The points at which these derivatives are specified are
discretization in Multiphysics is not much different with the called the boundaries, which they occur at the extreme. Since
numerical simulation that is based on partial differential differential equation represent problems in engineering, it is
equation discretization. very important to know the boundary condition for such
problems so as to proffer solutions. For instance, in mass
transfer problems on the surface of a block [2] , the initial
concentration at surface ‘A’ and the final concentration at the
Elmer
Elmer is an open-source finite element multiphysical
simulation software. The software has a graphical user
interface (ElmerGUI) which is capable of importing finite
Fig. 4: Para View application window
element mesh files in various formats [11]. It can also set up
PDE systems for solution and export the model data and In this work, ParaView 5.9.1 version was used, and the
results for Elmer Solver. The stages in running the simulation application window is as shown in Fig. 4. The mass transfer
with Elmer are: contours, von Mises stresses and displacement were analysis
Model setup using ParaView. The files are in ‘vtu’ format for both
Add equation structured and unstructured grids. After uploading, then
Add material ‘apply’ button is pressed. Analysis of various properties of
Add body force the model is done using different filters. Details on how
Set initial conditions ParaView is used for visualization and post-processing can
Set boundary conditions be found in [14], [12].
To setup the model, the simulation type that is either III. RESULTS
steady-state or unsteady-state need to be specified. Maximum
iteration, maximum output level, and time-stepping method The numerical methodology for mesh-based simulation
also need to be specified. In addition to the simulation is used to solve a variety of problems in engineering and
parameters, some constants, e.g gravity, vacuum permittivity, sciences yielding promising and near-perfect results [2],
Stefan Boltzmann, and unit charge, are being specified. There [15]–[18].
are handful of equations to be used depending on the type of
For instance, in [2], the mesh-based simulation was
problem one has. In our case, ‘model PDE’ and ‘linear
used to compute a mass transfer on surfaces structured with
elasticity’ equations were used for mass transfer and linear
reactive nanocones where current densities were computed
elastic problem respectively.
on the surfaces of the conical electrodes, greatly advancing
The idea behind choosing a material in the material the field of electrochemistry. In that work, Gmsh software
library is to use the specific properties of the material in was used to build and mesh the geometry of the conical
question e.g density, heat capacity, specific heat capacity etc electrode surface. However, the simulation is done using
for accurate computation and results. Initial and boundary ELMER and then post-processed with ParaView. Some of
conditions are set, and the simulation is run after saving the the results were shown in Fig. 5 and Fig. 6.
model. The result file is then open with a post-processing
software ParaView in our case.
IV. CONCLUSION