Professional Documents
Culture Documents
FEDSM2017
July 31-August 3, 2017, Waikoloa, Hawaii, USA
FEDSM2017-69174
NOMENCLATURE
a Channel height in Couette flow problem, [m]. INTRODUCTION
an Off-diagonal coefficients in momentum equation, [s−1 ]. Recent years have witnessed a significant proliferation of
a p Diagonal coefficients in momentum equation, [s−1 ]. numerical libraries being used in computational continuum me-
D Cavity depth, [m]. chanics [1–3]. While the appearance of open source codes in
i Cartesian index, i ∈ (x, y, z), [-]. general, is a positive development, the question of correct im-
x Distance in Cartesian x-direction, [m]. plementation of the various methods and solvers remains to be
y Distance in Cartesian y-direction, [m]. addressed. This question can be only answered by performing
K Spatial dimension, K ∈ (1, 2, 3), [-]. validation and verification exercises. In this work we focus on
λ Parameter in Kovasznay analytical solution, [-]. the verification and validation of Caelus [4], an open source li-
c f Skin friction coefficient, [-]. brary for computational continuum mechanics.
Rex Local Reynolds number, [-]. The Caelus library is a general purpose framework for the
L Length, [m]. solution of the continuum mechanics problems. The framework
is a derivative of the OpenFOAM R library with an emphasis
on improved accuracy and robustness. As such, Caelus is an
∗ Address all correspondence to this author.
1 Copyright c 2017 by ASME
open source library developed and distributed under the GPL li- which is substituted into the discrete continuity equation
cense agreement. One of the goals is to provide a framework
that is both verified and validated. This work concentrates on the
δi ui = 0, (5)
verification and validation of incompressible flow solvers. Both
analytical methods and experimental data were used in the veri-
fication and validation process. and yields the following modified continuity equation
A few known analytical solutions, such as Couette [5] and
Kovasznay flow [6], are used for verification of the incompress- !!
1
ible flow solver. The Kovasznay class of flow solutions are of δi uip = δi − ∑ ani uni − (δi p̂) p . (6)
particular interest as they represent viscous flow solutions behind ap n∈N(p)
an array of bluff bodies at a non-trivial Reynolds number.
Validation of Caelus’ incompressible solvers consists of Since the incompressibility constraint requires the resultant
computing solutions for a flat plate laminar boundary layer, flow velocity field to be divergence free, the same constraint is applied
through a tee-junction, and a triangular lid driven cavity and to the discrete form of the continuity equation resulting in the
comparing to known values for each case. following pressure equation
PREDICTOR-CORRECTOR ALGORITHM FOR STEADY- 1
δi (δi p̂) p = δi ũip , (7)
STEATE FLUID FLOW ap
The Navier-Stokes equations in steady-state form along with
the continuity equation in the divergence-free form: where ũi is defined as
∂i ui = 0, (2) Eq. (3) and Eq. (7) together with the corresponding boundary
conditions represent the system of linear algebraic equations that
where p̂ = p/ρ is the modified pressure normalised by the fluid can be solved using the predictor-corrector algorithm shown in
density. Both density and kinematic viscosity are taken to be Alg. (1)
constant and the time derivative term is omitted from Eq. (1) per
the steady assumption.
In order to define a well posed problem, Eq. (1) and Eq. (2) initialise p and ui fields;
are supplemented by an appropriate set of boundary conditions. set the boundary conditions;
Cell-centered finite volume scheme is used for the discretisation while convergence criterion is not satisfied do
of the momentum equation [7] resulting in the following discrete predictor step;
equation solve aip (uip )∗ = − ∑n∈N(p) ani uni − (δi p̂) p for the
predicted velocity field (uip )∗ ;
aip uip + ∑ ani uni = −(δi p̂) p , (3) use the predicted velocity to obtain the pressure field
δi a1p (δi p̂) p = δi (ũip )∗ ;
n∈N(p)
update fluxes;
where symbol δi represents the discrete form of the gradi- corrector step;
ent operator and N(p) denotes the neighbourhood of the point update the velocity uip = (ũip )∗ − a1p (δi p) p ;
“p”. Cell-centred finite volume discretisation practice leading to check the convergence criterion;
Eq. (3) is known to produce M-matrices [7]. By introducing the end
appropriate average of central coefficients a p = ∑Ki aip /K we can Algorithm 1: PREDICTOR-CORRECTOR ALGORITHM
formally solve Eq. (3) for the discrete velocity uip
a ν ∂x p̂
1.0 1.0 3.0
SOLVER VERIFICATION
The simpleSolver in Caelus is verified by utilising an-
alytical solutions for viscous flows. We consider two types of
viscous flows, namely Couette [5] and Kovaznay [6] flow. In
both cases analytical solution are available thus enabling the ver-
ification of the solver implementation.
Couette Flow
Couette flow [5] represents laminar fluid flow between two
plates driven by a pressure gradient or by the motion of one of
the plates. Due to its simplicity, Couette flow has an analytical
solution. A special case of stationary plates and non-zero pres- FIGURE 2. COMPARISON OF ANALYTICAL AND COMPUTA-
sure gradient has the following analytical solution for the veloc- TIONAL X-VELOCITY PROFILES COUETTE FLOW PROBLEM
ity field:
λ λx
a2 uy = e sin(2πy), (11)
y 2 y
ux = ∂x p̂ − . (9) 2π
2ν a a
0.644
cf ≈ √ , (13)
Rex
ux
Rex = , (14)
ν
Triangular Cavity
This validation study concerns the laminar, incompressible simulation is initialised with zero velocity and pressure fields.
flow inside a lid driven triangular cavity. Here, the top wall of The mesh in x − y plane is shown in Fig. 10. A hybrid mesh
the cavity moves at a constant velocity initiating a recirculating is employed for this case with a total of 5,538 cells. Up to a depth
motion within the cavity. Experiments on this configuration have of D = 1.35 m hexahedral elements are used while below that
been reported in [13] for a Reynolds number of 800. The main value triangular prisms are used. The triangular prisms are used
objective of this validation case was to compare the x velocity in the bottom portion because they resulted in better cell qual-
distribution against experimental data. ity. For the hexahedral region, 39 cells are distributed across the
A schematic of the triangular cavity is presented in Fig. 9 width of the cavity and 39 along the depth. The cavity walls in
where the depth of the cavity is D = 4 m and the width W = the prism region have 100 cells along each. The interface of the
2 m. The Reynolds number based on the cavity depth is 800 and two regions is node matched and has 39 cells across the width.
the wall velocity is u = 2 ms−1 . Using the Reynolds number, The mesh close to the cavity lid was refined to better capture the
u, and D, kinematic viscosity was calculated to be 0.01 m2 s−1 . shear layer. The flow characteristics in the cavity can be assumed
The side walls of the cavity have a no-slip boundary condition to be 2D and here it has been solved with the same assumption.
while the top wall, has a uniform velocity in the x-direction. The In Fig. 11, the x velocity distribution along the cavity centre-
REFERENCES
[1] Jasak, H., Jemcov, A., and Tuković, Ž., 2007. “Open-
FOAM: A C++ library for complex physics simulations”.
In International Workshop on Coupled Method in Numeri-
cal Dynamics, IUC Dubrovnik, Croatia.
[2] Popinet, A., 2017. Gerris Flow Solver [Software]. In-
stitut Jean le Rond d’Alambert. Available at URL
http://gfs.sourceforge.net.
[3] Palacois, F., Economon, T. D., Wendroff, A. D., and
FIGURE 11. COMPARISON OF EXPERIMENTAL AND COM-
Alonso, J. J., 2015. “Large-scale aircraft design using
PUTATIONAL X VELOCITY DISTRIBUTION ALONG THE CAV-
SU2”. In 53rd AIAA aerospace Sciences Meeting, AIAA.
ITY’S CENTRE-LINE.
AIAA Scitech.
[4] Applied CCM, 2016. Caelus: Computational Mechanics
line is compared with that of the experimental data [13]. The Library (Version 6.10) [Software]. Applied CCM. Avail-
y distance is normalised with the cavity depth (D) which gives able at URL http://www.caelus-cml.com.
y/d = 0 at the cavity lid and y/d = −1 at the bottom vertex. Sim- [5] Munson, B. R., Young, D. F., and Okiishi, T. H., 2002. Fun-
ilarly, the u velocity is normalised with the velocity of the cavity damentals of Fluid Mechanics. John Wiley and Sons.
lid (uL ). As seen in Fig. 11 the comparison with the experiment [6] Kovasznay, L. I. G., 1947. “Laminar flow behind a two-
is excellent. dimensional grid”. Proceeding of the Cambridge Philo-
sophical Society, 19(5), pp. 369–375.
[7] Ferziger, J. H., and Perić, M., 2002. Computational meth-
ods in fluid dynamics. Springer, Springer-Verlag Berlin
CONCLUSIONS Heidelberg.
A predictor-corrector based steady, incompressible solver in [8] Berger, M., Aftosmis, M. J., and Murman, S. M., 2005.
the open source Caelus library was verified and validated. The “Analysis of slope limiter on irregular grids”. In 43rd AIAA
focus of this work was on laminar flows. Analytical, experimen- Aerospace Sciences Meeting, AIAA. AIAA Paper-2005-
tal and numerical data were used in the verification and valida- 0490.
tion process. Analytical solutions for Couette and Kovaznay flow [9] Blasius, H., 1908. “Grenzschichten in Flüssigkeiten mit
problems were used to verify that the solver was implemented kleiner Reibung”. Z. Math. Phys, 56, pp. 1–37.
correctly. Agreement between computed and analytical solutions [10] http://www.grc.nasa.gov/WWW/wind/valid/fplam/fplam.html,
was excellent for both Couette and Kovaznay flows. In the vali- 2014.
dation part of the paper, Blasius laminar boundary, flow through [11] Pointwise Inc., 2014. Pointwise, Mesh Generation Software
a tee-junction, and the flow in the triangular cavity were used for CFD, Version 17.2R2. Pointwise Inc., Fort Worth, TX.
to confirm that physically correct solutions were obtained. Ex- See also URL http://www.pointwise.com/.
cellent agreement was obtained in all cases indicating that the [12] Hayes, R. E., Nandkumar, K., and Nasr-El-Din, H., 1989.
steady-state solver computed accurate solutions. “Steady Laminar Flow in a 90 Degree Planar Branch”.
Validation and verification performed in this work suggests Computers and Fluids, 17(4), pp. 537–553.
that the predictor-corrector solver implemented in Caelus under [13] Jyotsna, R., and Vanka, P., 1995. “Multigrid Calculation
the name simpleSolver was implemented correctly. While of Steady, Viscous Flow in a Triangular Cavity”. J. Comp.
this work does not concentrate on verification and validation of Phys., 122, pp. 107–117.
the components of the solver such as boundary conditions, con-
vective and diffusive terms discretisation, gradient computations
to name just a few, results however indicate that the core compo-
nents of the solver perform as expected.