Professional Documents
Culture Documents
Meshing Considerations For Automotive Shape DesignOptimization
Meshing Considerations For Automotive Shape DesignOptimization
Meshing Considerations For Automotive Shape DesignOptimization
Travis Carrigan
Pointwise, Inc.
Mark Landon
Optimal Solutions Software LLC
Claudio Pita
Pointwise, Inc.
CITATION: Carrigan, T., Landon, M., and Pita, C., "Meshing Considerations for Automotive Shape Design Optimization," SAE
Technical Paper 2016-01-1389, 2016, doi:10.4271/2016-01-1389.
Copyright © 2016 SAE International
Abstract Introduction
High quality mesh generation technology coupled with a robust shape The traditional computational design optimization process is a loop.
deformation technique enables large design space exploration for The designer begins by defining parameters and constraints for the
optimization without the need to remesh the geometry. To geometry. The minimal number of design parameters are chosen to
demonstrate this, we present a collection of best practices for reduce the number of experiments performed. The geometry and
cleaning complex analytic CAD data that together with a robust grid computational domain are then discretized. The computational
generation algorithm enable the automatic generation of high quality domain could be the fluid, for computational fluid dynamics (CFD)
boundary layer resolved grids that retain their quality when morphed simulations, or the solid, for finite element analysis (FEA)
during the optimization process. simulations. The grid is then sent to a solver that numerically solves
the set of equations governing the desired physics. The simulation
The case study for this work is the DrivAer model developed by the results are subsequently used to compute the value of an objective
Institute of Aerodynamics and Fluid Mechanics at the Technische function that when fed to an optimization routine suggest changes to
Universität München. the design parameters to effectively minimize or maximize the
aforementioned function. The updated design parameters are used to
The first step in the proposed automated optimization framework is to appropriately modify the geometry. At this point the geometry needs
use a technique called Solid Meshing to heal faults in the provided to be remeshed and both the solver and the optimization routines need
geometry and recover its original engineering intent. The to be called again. This process continues until either the convergence
aforementioned technique coupled with Pointwise’s anisotropic or stop criteria are met.
tetrahedral extrusion algorithm (T-Rex), enables automated, high
quality volumetric grid generation. While the traditional design optimization process is robust and can be
automated with little effort for simple geometry [1], a geometry that
A technology called Arbitrary Shape Deformation (ASD) is then used is complex not only in terms of the overall shape, but also in terms of
to smoothly morph the DrivAer volume grid using a small set of the number of curves, surfaces, and solids poses a challenge for
shape change parameters. The robustness of this morphing optimization. Parameterizing a complex analytic computer aided
technology enables the achievement of large grid deformations while design (CAD) model and enforcing design constraints for each
maintaining cell quality and surface boundary layer thickness and parameter is a difficult task because the effect of the parameterization
orientation. plays a critical role in the grid generation process. Under constraining
a design can wreak havoc on a grid generator, whereas over
As mentioned, the proposed design optimization framework constraining it can shrink the overall optimization design space.
eliminates the need to regenerate the grid after every volumetric
deformation. This, in turn, minimizes the effect of changes to the
characteristics of the grid on the simulation results.
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
The parameterization of the CAD model and the enforcement of the Methodology
design constraints must be done in conjunction with the grid
The methodology for this work involves decoupling geometry
generation process. The quality of the resulting grid is therefore a
generation and parameterization, as well as grid generation from the
direct result of both the underlying numerics of the grid generation
main shape deformation and optimization routine. An overview of
tool itself and the representation of the complex geometry.
this process can be seen in Figure 1.
This paper will focus on the strategies and technologies that enable Applications within the open source CFD package OpenFOAM are
the creation of high quality grids for complex analytic CAD models used to numerically solve the Reynolds-Averaged Navier-Stokes
and a shape deformation technique that retains cell quality. The (RANS) equations. Simulations are performed for each design
geometry used for this study is the DrivAer model proposed by the proposed by Sculptor and the coefficient of drag computed and
Institute of Aerodynamics and Fluid Mechanics at the Technische stored. Once all the designs have been evaluated, the case that results
Universität München [14]. The DrivAer body represents a realistic in minimum drag is selected as the improved design.
external automotive geometry that was developed in cooperation with
Audi AG and the BMW Group. Pointwise® is used to generate the
computational grid while Sculptor® is used to perform the mesh Grid Generation
deformation and optimization, and OpenFOAM® used to run the CFD Grid generation is the act of discretizing the computational domain
calculation and compute the coefficient of drag, the objective into a collection of elements. When working with complex geometry,
function value used in this study. such as the DrivAer model, coupled with a mesh morphing utility,
grid generation and in particular the quality of the resulting grid
become critical to the success of the optimization. A robust meshing
technique that can generate high quality grids enables the exploration
of a much larger design space without the need to remesh. This
section focuses on the technologies and techniques that enable
automated high quality meshing for complex geometry.
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
Solid Modeling but reduce surface mesh complexity and isolate regions where more
For this study we used the DrivAer vehicle with the smooth control over the mesh would be desirable such as corners, areas of
underbody, mirrors, and wheels (F_S_wM_wW). Both STEP and high surface curvature, or small features.
IGES formats were available. Each part was imported and placed into
a unique layer for organization within Pointwise. The final geometry The 3,217 surfaces were each assigned a quilt and through a series of
consisted of 3,217 individual surfaces shown in Figure 2. Solid assembly operations, the quilts were constructed for the DrivAer that
Modeling was used to reduce the topological complexity of the isolated engineering features such as the hood, windshield, roof,
geometry for meshing. windows, bumper, and other features on the vehicle. A total of 434
quilts were used to represent the DrivAer model and are each
rendered using different colors in Figure 4.
A model is a watertight collection of underlying CAD surfaces and Figure 4. Only 434 quilts, or logical meshing regions, remained after the Solid
can be used to heal over gaps using an assembly tolerance. The Modeling procedure, reducing the surface topology of the DrivAer.
DrivAer was relatively clean, so a tight assembly tolerance was used
during model assembly. The underlying geometry remained Surface Meshing
untouched as the models were assembled. A model is simply
With the logical meshing regions defined using quilts, the next step
topology, or a meshing construct that relates underlying surfaces to
was surface meshing to discretize the geometry. While fewer quilts
one another and enables automated surface meshing. Seven models
are required to represent the model than surfaces, this does not imply
were assembled to represent the entire geometry and can be seen in
a reduction in geometric fidelity. The same underlying geometry is
Figure 3.
used to constrain the surface mesh, but the topology is simplified
through the use of quilts.
Volume Meshing
The volume meshing algorithm in Pointwise used in this study is
called T-Rex (anisotropic tetrahedral extrusion) and automatically
generates viscous hybrid grids for CFD [17]. Once the surface mesh
Figure 7. Stacks of right-angled anisotropic tetrahedra and isotropic tetrahedra
had been defined for the DrivAer and the farfield surface grids
away from the surface.
constructed, a closed volumetric region called a block was created
with the same dimensions described in [14]. The DrivAer was placed Upon export, anisotropic tetrahedra can be combined to form prisms
2 body lengths downstream from the inlet and the domain was 10x if advanced from triangular surface elements and hexahedra if
the body length with a height 8x the body height and width 11x the advanced from quadrilateral surface elements [19]. Pyramid elements
body width. The block represented the computational domain where are formed to transition from exposed quad faces for seamless
volumetric elements were to be generated. integration with an isotropic tetrahedral farfield. Figure 8 shows the
different elements created during combination. The element
T-Rex begins with a watertight front of triangular and/or quadrilateral advancement and combination procedures are automatic and result in
elements. Given an initial grid spacing, growth rate, and number of thick stacks of boundary layer elements and massive cell count
target layers, vertices are advanced orthogonal to the surface and reductions.
form anisotropic tetrahedra through a series of deformation,
refinement and decimation steps. Figure 6 illustrates the advancement
of a vertex forming a fan of five anisotropic tetrahedra. As vertices
are advanced, the cells formed can be rejected if any quality criteria
are violated [18], if the front of advancing cells is in close proximity
to an opposing front, or if the cells have reached an isotropic state. If
a cell must stop advancing, neighboring cells can continue their
advancement if the above mentioned criteria are not violated. The
result is an unstructured front of anisotropic tetrahedra that do not
have to form contiguous layers. The front is then passed to an
isotropic tetrahedral mesher to fill the remaining block. Anisotropic
tetrahedra advanced from a surface mesh integrated with an isotropic
tetrahedral farfield can be seen in the Figure 7.
Figure 8. Cells are combined to form hexahedra and prisms near the wall as
well as pyramids to transition from quad faces to isotropic tetrahedra in the
farfield.
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
To further reduce the cell count and improve boundary layer mesh
quality and alignment, the right-angled anisotropic tetrahedral cells
were combined on export to form prisms. Three right-angled
tetrahedra can form a single prism, and therefore the theoretical
maximum cell count reduction is 66.7%. However, the grid also
consisted of isotropic tetrahedra in the farfield that were not
combined. The final cell count after combination was 6,738,704, a
cell count reduction of 49.9%. A breakdown of element counts can be
seen in Table 1.
Table 1. The final element counts for the hybrid DrivAer mesh created using
Pointwise.
Figure 10. Prism elements generated using T-Rex around the mirror of the
DrivAer.
Closer inspection of the mesh revealed thick stacks of prismatic
elements off the DrivAer body and smooth volumetric transitions. Additional volumetric refinement may be desired in some instances
Figure 9 shows a slice of the volume mesh down the symmetry plane. and can be accomplished by modifying the face definition of an
The cells are colored by cell volume to clearly highlight the different unstructured block within Pointwise. For the DrivAer, properly
regions of the mesh. The effect of the area ratio on the surface can be capturing the wake can positively affect the drag prediction. A refined
seen into the volume as cells transition to isotropy differently around block consisting of tetrahedral elements smaller than the original
the vehicle. The smaller cells used to capture features on and around background spacing downstream of the vehicle allowed for precise
the front fascia transition to isotropy faster than the larger cells along cell volume control and can be seen in Figure 11. The wake block
the hood of the vehicle. Conscious use of the area ratio as a guide extended two car body lengths downstream.
during surface mesh generation helped to reduce the overall cell
count and improve volume mesh quality.
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
Figure 12. A top-down view of the computational domain with flow moving
from left to right.
Mesh Morphing Technique Similarly, for the DrivAer grid model, Figure 15 shows the ASD
Arbitrary Shape Deformation (ASD) [23] in Sculptor provides a volume defined for this study. The green points are the near-body
method to define the shape change parameters. ASD is a trivariate control points that will control how the body is morphed. Far-field
NURBS volume(s) defined by a number of control points placed at control points (not show) are placed a distance away from the car
judicious locations around the geometry that is to be deformed surface to help define the necessary smooth deformation out into the
(morphed). The smooth volumetric morphing is controlled by moving flow domain, thus maintaining the quality of the cells during the
selected control points. Grouping selected control points, and deformation.
constraining them to move together, the desired shape change
parameters are defined (translation, rotation, or scaling). Each shape
change design variable is a group of control points that is controlled
by a single parameter. All design variables and their limits (min/max)
define the design space wherein the optimization algorithm(s) search
to find the optimal design/shape.
Figure 15. The control points (green points) of the ASD volume for the
parameterization of the DrivAer grid model.
Figure 16. The control points near the base of the windshield are grouped to
variably change the windshield rake.
Figure 14. A sphere is embedded in an ASD volume. Control points are moved
and the volume is deformed which causes the sphere to deform.
Table 2. The shape change variables values for the baseline case plus 28
experiments of the optimal Latin hypercube DOE.
Figure 18. A close-up view of the rear spoiler boundary layer cells before (top)
and after (bottom) a deformation of 15 centimeters, showing that the cell
quality is maintained. The boundary layer’s thickness and orientation is
preserved.
Results
Once the DOE was defined, all 28 experiment were exported to disk
in the form of separate OpenFOAM models ready to be solved. File
handling was coordinated with Sculptor’s OCC returning the results
to the GUI for further investigation of the design space. After all
designs were solved, the design functions were returned to OCC. In
this case, the coefficient of drag was returned. To save some
computation time, it was noticed that there was a clear indication of
the sensitivity of the coefficient of drag results early in the
convergence history of the CFD solution. Even though the baseline
case was run to 1.0 seconds using the transient solver pimpleFOAM,
we only needed to run the 28 experiments out to 0.1 seconds to see
the relative sensitivities. Figure 19 shows a plot of the first nine
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
experiments and clearly highlights experiment 8 as being the retained cell quality even for the most severe deformations. The result
improved design. The improved design resulted in a 4.4% decrease in was an improved DrivAer design that reduced the drag by 4.4% over
drag, a significant improvement over the baseline DrivAer model. the baseline model.
References
1. Carrigan, T. J., Dennis, B. H., Han, Z. X., and Wang, B. P.,
“Aerodynamic Shape Optimization of a Vertical-Axis Wind
Turbine Using Differential Evolution,” ISRN Renewable
Energy, vol. 2012, Article ID 528418, 16 pages, 2012.
doi:10.5402/2012/528418.
2. Rhoads, J., Carrigan, T. J., “How Grid Quality Affects Solution
Accuracy,” Presentation, 9th Annual OpenFOAM Workshop.
3. Katz, A., Sankaran, V., "High aspect ratio grid effects on the
accuracy of Navier-Stokes solutions on unstructured meshes,"
Sixth International Conference on Computational Fluid
Figure 19. A clear sensitivity of the Cd to shape change is seen early on in Dynamics, Computers & Fluids, Volume 65, Pages 66-79, 30
time history. Experiment 8 had the lowest Cd of the 28 designs of the DOE.
July 2012.
4. Katz, A., Sankaran, V., "Mesh quality effects on the accuracy
Response Surface Model of CFD solutions on unstructured meshes," Journal of
The results of the DOE are fit with a response surface within the OCC Computational Physics, Volume 230, Issue 20, Pages 7670-
Response Surface tool. Response Surface Models use low order 7686, 20 August 2011.
polynomials to approximate the response of an analysis with very
5. Batdorf, M., Freitag, L., and Ollivier-Gooch, C., "Computational
little computational overhead. Figure 20 shows a nested Radial Basis
study of the effect of unstructured mesh quality on solution
Response Surface of the four dimensional design space. This shows
efficiency," 13th Computational Fluid Dynamics Conference,
the relationship of the 28 experiments with each other. Care must be
AIAA, 1997.
taken not to trust the extrapolated portions of the response surface.
One could add experiments at all of the extremes and avoid 6. Diskin, B., Thomas, J. L., "Effects of Mesh Irregularities on
extrapolation. However, this is a good plot to help understand the Accuracy of Finite-Volume Discretization Schemes," 50th AIAA
relationship of the best experiment thus far (experiment 8), and find Aerospace Sciences Meeting and Exhibit, Paper 2012-0609,
areas that might show promise of an even better design. 9-12 January 2012, Nashville, TN.
7. Anderson, W. and Bonhaus, D., “Aerodynamic design on
unstructured grids for turbulent flows,” Tech. Rep. 112867,
National Aeronautics and Space Administration Langley
Research Center, Hampton, Va, USA, 1997.
8. Anderson, W. and Venkatakrishnan, V., "Aerodynamic Design
Optimization on Unstructured Grids with a Continuous Adjoint
Formulation," AIAA Paper No. 97-0643, 1997.
9. Elliott, J. and Peraire, J., “Practical three-dimensional
aerodynamic design and optimization using unstructured
meshes,” AIAA Journal, vol. 35, no. 9, pp. 1479-1485, 1997.
10. Giles, M., “Aerodynamic design optimisation for complex
geometries using unstructured grids,” Tech. Rep. 97/08, Oxford
University Computing Laboratory Numerical Analysis Group,
Oxford, UK, 2000.
11. Nielsen, E. J. and Anderson, W. K., “Aerodynamic design
optimization on unstructured meshes using the Navier-Stokes
Figure 20. A nested Radial Basis Response Surface of the four dimensional equations,” AIAA Journal, 1998, AIAA-98-4809.
design space. The baseline and experiment 8 locations are highlighted.
12. Singh, R., "Automated Aerodynamic Design Optimization
Process for Automotive Vehicle," SAE Technical Paper 2003-
Summary/Conclusions 01-0993, 2003, doi:10.4271/2003-01-0993.
Decoupling CAD handling and grid generation from the optimization 13. Staten, M. L., Owen, S. J., Shontz, S. M., Salinger, A. G.,
routine minimizes the effect of changes to the characteristics of the et al., "A Comparison of Mesh Morphing Methods for 3D
grid on the final value of the coefficient of drag. The use of a mesh Shape Optimization," 20th International Meshing Roundtable,
morpher allowed for 28 design experiments to be investigated from a Springer-Verlag, pp.293-310, October 23-26 2011.
single grid. This was made possible by carefully constructing a high 14. Heft, A., Indinger, T., and Adams, N.: “Experimental and
quality grid and using a robust shape deformation technique that Numerical Investigation of the DrivAer Model”, ASME 2012,
July 8-12, 2012, Puerto Rico, USA, FEDSM2012-72272.
Downloaded from SAE International by Univ of California Berkeley, Saturday, August 04, 2018
The Engineering Meetings Board has approved this paper for publication. It has successfully completed SAE’s peer review process under the supervision of the session organizer. The process
requires a minimum of three (3) reviews by industry experts.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or
otherwise, without the prior written permission of SAE International.
Positions and opinions advanced in this paper are those of the author(s) and not necessarily those of SAE International. The author is solely responsible for the content of the paper.
ISSN 0148-7191
http://papers.sae.org/2016-01-1389