<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">EPE</journal-id><journal-title-group><journal-title>Energy and Power Engineering</journal-title></journal-title-group><issn pub-type="epub">1949-243X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/epe.2017.92007</article-id><article-id pub-id-type="publisher-id">EPE-74207</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Application of the Hierarchical Functions Expansion Method for the Solution of the Two Dimensional Navier-Stokes Equations for Compressible Fluids in High Velocity
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Thadeu</surname><given-names>das Neves Conti</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Eduardo</surname><given-names>Lobo Lustosa Cabral</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Gaianê</surname><given-names>Sabundjian</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Escola Polit&amp;amp;eacute;cnica da Universidade de S&amp;amp;atilde;o Paulo (USP), S&amp;amp;atilde;o Paulo, Brazil</addr-line></aff><aff id="aff1"><addr-line>Instituto de Pesquisas Energ&amp;amp;eacute;ticas e Nucleares (IPEN), S&amp;amp;atilde;o Paulo, Brazil</addr-line></aff><pub-date pub-type="epub"><day>10</day><month>02</month><year>2017</year></pub-date><volume>09</volume><issue>02</issue><fpage>86</fpage><lpage>99</lpage><history><date date-type="received"><day>December</day>	<month>12,</month>	<year>2016</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>February</month>	<year>14,</year>	</date><date date-type="accepted"><day>February</day>	<month>17,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  This work presents a new application for the Hierarchical Function Expansion Method for the solution of the Navier-Stokes equations for compressible fluids in two dimensions and in high velocity. This method is based on the finite elements method using the Petrov-Galerkin formulation, know as SUPG (Streamline Upwind Petrov-Galerkin), applied with the expansion of the variables into hierarchical functions. To test and validate the numerical method proposed as well as the computational program developed simulations are performed for some cases whose theoretical solutions are known. These cases are the following: continuity test, stability and convergence test, temperature step problem, and several oblique shocks. The objective of the last cases is basically to verify the capture of the shock wave by the method developed. The results obtained in the simulations with the proposed method were good both qualitatively and quantitatively when compared with the theoretical solutions. This allows concluding that the objectives of this work are reached.
 
</p></abstract><kwd-group><kwd>Computational Fluid Mechanics</kwd><kwd> Compressible Flow</kwd><kwd> Finite Elements Method</kwd><kwd> Navier-Stokes Equations</kwd><kwd> Shock Waves</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The solution of complex problems in fluid mechanics and heat transfer with the use of numerical techniques, known as Computational Fluid Dynamics (CFD), is today a reality due to the development of computers with high velocity and with large capacity of data storage. The use of computer codes in some areas of engineering is today a reality and it has been received much attention by numerical researches [<xref ref-type="bibr" rid="scirp.74207-ref1">1</xref>] . The solution of turbulent flow on wings using high capacity computer in 1960 would consume years of processing with a coast of millions of dollars. Today, the solution of this kind of problem using modern computers would consume only few minutes of CPU with a coast of hundred dollars.</p><p>This work develops an application of the hierarchical function expansion method, elaborated by [<xref ref-type="bibr" rid="scirp.74207-ref2">2</xref>] , for the solution of Navier-Stokes equations in two dimensions for high velocity compressible flows. This method consists on the use of the finite element method with a Petrov-Galerkin formulation and the expansion of the variables in hierarchical functions. The use of hierarchical expansion allows changing the degree of the adjustment polynomial of the variables during the calculation process without restarting the simulation. Moreover, the numerical method developed has the great advantage of being able to adapt the degree of polynomial until the necessary value, instead of using extremely refined meshes.</p><p>In a general way, the classical method of the weighted residuals (Galerkin) is used to get the equations for calculating the coefficients of the expansion functions. However, it is observed that in problems of convective-diffusive transport with convection predominant the Galerkin method fails. Thus, normally for these problems, it is used the Petrov-Galerkin formulation [<xref ref-type="bibr" rid="scirp.74207-ref3">3</xref>] where the weighting functions are different from the expansion functions.</p><p>The Petrov-Galerkin formulation consists on the method known as SUPG (Streamline Upwind Petrov-Galerkin) developed by [<xref ref-type="bibr" rid="scirp.74207-ref3">3</xref>] . In this method, the wei- ghting functions are building by adding a perturbation term in the weighting functions used in the Galerkin formulation. This perturbation acts only in the direction of the fluid flow [<xref ref-type="bibr" rid="scirp.74207-ref2">2</xref>] . Note that the SUPG method presents stability and very accurate results. The expansion functions used in the method developed in this work are formed by Legendre Polynomials which are adjusted in the elements in order to define corner, side and area functions. The main reason to use in this work the Legendre Polynomials instead of orthogonal functions such as sine, cosine and exponential, is because only a few functions are necessary to adjust to the shapes of complex solutions. This happens because a polynomial is much more complex than others functions like sine and exponential and comparatively it has a higher capacity of curve fitting. It is observed, however, that smaller is the number of functions used for the expansion of the variables simpler the numerical method becomes.</p></sec><sec id="s2"><title>2. Theoretical Development</title><p>As mentioned the numerical method proposed in this work consist on the application of the hierarchical functions expansion method for the solution of pro- blems for compressible fluid flow at high velocities in two dimensions. The method proposed in this work uses the Continuity, Momentum and Energy conservation Equations together with the Mass Velocity and State Equations. These equations are all in two dimensions, x and z directions. These equations are the commonly used and are the following:</p><p>Continuity Equation:</p><disp-formula id="scirp.74207-formula5"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x2.png"  xlink:type="simple"/></disp-formula><p>Momentum Equations:</p><disp-formula id="scirp.74207-formula6"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x3.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula7"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x4.png"  xlink:type="simple"/></disp-formula><p>Energy Equation:</p><disp-formula id="scirp.74207-formula8"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x5.png"  xlink:type="simple"/></disp-formula><p>Mass velocity Equations:</p><disp-formula id="scirp.74207-formula9"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x6.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula10"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x7.png"  xlink:type="simple"/></disp-formula><p>State Equation:</p><disp-formula id="scirp.74207-formula11"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x8.png"  xlink:type="simple"/></disp-formula><p>Total energy Equation:</p><disp-formula id="scirp.74207-formula12"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x9.png"  xlink:type="simple"/></disp-formula><p>For the flow solution the physical domain is divided into a mesh of several elements. These elements can have an arbitrary shape. However, in this work rectangular elements are used.</p><p>For each elements i, j of the solution domain the variables<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x10.png" xlink:type="simple"/></inline-formula>, u, w, G<sub>x</sub>, G<sub>z</sub><sub>,</sub>, E, p and T are described by a function expansion as follows:</p><disp-formula id="scirp.74207-formula13"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x11.png"  xlink:type="simple"/></disp-formula><p>where M is the total number of expansion functions used for describing each variables, N<sub>m</sub> is m<sup>th</sup> expansion function for the element i, j and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x12.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x13.png" xlink:type="simple"/></inline-formula> are respectively the coefficients of the variables<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x14.png" xlink:type="simple"/></inline-formula>, u, w, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x15.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x16.png" xlink:type="simple"/></inline-formula>, E, p e T correspondent to the m<sup>th</sup> expansion function for the element ij of the mesh. It is emphasized that depending on the degree of the expansion, or of the number of expansion functions used the solution, the accuracy of the solution can be adjusted.</p><p>The solution of the conservation Equations is easier if a local (element) coordinate system is used. This local coordinate system also allows easily modifying the method to use irregular geometries without great modifications. The local space coordinates are denoted by ξ and η. The correspondence of the coordinates ξ and η with the Cartesian coordinates, x and z, for the element i, j of the mesh is given by:</p><disp-formula id="scirp.74207-formula14"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x17.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula15"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x18.png"  xlink:type="simple"/></disp-formula><p>It is observed that both ξ and η change from −1 to +1 inside each element. Asmentioned the coordinates ξ and η are local coordinates of each element. The derivatives of ξ and η with respect to the x and z coordinates are given by:</p><disp-formula id="scirp.74207-formula16"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x19.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula17"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x20.png"  xlink:type="simple"/></disp-formula><p>The weighting functions (P<sub>m</sub>) follow the consistent Petrov-Galerkin formulation given by [<xref ref-type="bibr" rid="scirp.74207-ref3">3</xref>] . Thus for each element i,j of the mesh the weighting functions are given by:</p><disp-formula id="scirp.74207-formula18"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x21.png"  xlink:type="simple"/></disp-formula><p>Equations (1) to (8) are manipulated using several steps. 1) First the variables are substitute by the expansions given by Equation (9). 2) The equations are weighted and integrated inside each element of computational domain. 3) The time derivatives of the variables are approximation by a backward difference. 4) The Green’s Theorem is used to transform the diffusion terms of the momentum and energy equations into first order terms. 5) The equations are written in matricial form for each element i,j of the solution domain. After this process the final equations are given by Equations (15) to (22) presented next.</p><p>Continuity Equation:</p><disp-formula id="scirp.74207-formula19"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x22.png"  xlink:type="simple"/></disp-formula><p>Momentum Equation in the x direction:</p><disp-formula id="scirp.74207-formula20"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x23.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula21"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x24.png"  xlink:type="simple"/></disp-formula><p>Momentum Equation in the z direction:</p><disp-formula id="scirp.74207-formula22"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x25.png"  xlink:type="simple"/></disp-formula><p>Energy Equation:</p><disp-formula id="scirp.74207-formula23"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x26.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula24"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x27.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula25"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x28.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula26"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x29.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74207-formula27"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x30.png"  xlink:type="simple"/></disp-formula><p>Mass velocity Equation in the x direction:</p><disp-formula id="scirp.74207-formula28"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x31.png"  xlink:type="simple"/></disp-formula><p>Mass velocity Equation in the z direction:</p><disp-formula id="scirp.74207-formula29"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x32.png"  xlink:type="simple"/></disp-formula><p>State Equation:</p><disp-formula id="scirp.74207-formula30"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x33.png"  xlink:type="simple"/></disp-formula><p>Total energy Equation:</p><disp-formula id="scirp.74207-formula31"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-6201996x34.png"  xlink:type="simple"/></disp-formula><p>The hierarchical expansion functions used in this work are based on the Legendre Polynomials adjusted in the rectangular elements in a very convenient form. The association of the expansion functions to the elements is performed in such a way to define corner, side and area functions. The expansion functions associate with the sides and the area of the elements can have the necessary or the desired degree. In this work the expansion functions are prepared to use degrees from one to six. The Gauss-Quadrature method is used to calculate the integrals involved in Equations (15) to (22). It is emphasized that even so the maximum degree of the expansion functions adopted in this work is limited to six it is possible to increased the expansion degree. This may be necessary for problems that demand fine solution details.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref> presents a typical rectangular element and the parameters associated with the corners (1, 2, 3, 4), sides (L<sub>x</sub> e L<sub>z</sub>), and area (A<sub>n</sub>) functions.</p><p>Note that for Equations (15) to (22) be used to solve a flow problem it is necessary that the Equations for neighbor elements are put together to have only one equation for each variable of the solution domain. In [<xref ref-type="bibr" rid="scirp.74207-ref4">4</xref>] gave the details concerning this agglutination process.</p></sec><sec id="s3"><title>3. Results</title><p>For the application of the numerical method proposed a computer code was developed to simulate flow problems. With the objective to apply and analyze the numerical method proposed in this work some known cases of the literature are simulated. These cases are the following: tests of consistency and stability, problem of the temperature step and problem of the oblique shock. The fluid used in these cases is air with the following the viscosity (μ = 2 &#215; 10<sup>-</sup><sup>5</sup> kg/ms) and the thermal conductivity (k = 2 &#215; 10<sup>-</sup><sup>2</sup> J/msK) are considered constants.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Two-dimension rectangular element and itsassociated parameters</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x35.png"/></fig><p>Consistency and stability test. The first case simulated consists on the verification of consistency and stability of the numerical method. This verification is performed with the simulation of a normal shock wave in supersonic flow. It is important to emphasize that in this test the shock wave is not dynamically capture. This means that the shock wave reproduced is only a reproduction of the boundary conditions used for the problem.</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> presents the computational domain for this problem. The boundary conditions for the lower left side, that characterize region 1, represent the flow conditions before the shock. The boundary conditions for the lower right side, that characterize region 2, represent the flow conditions after the shock. The dotted line represents the position of the normal shock that divides the domain in the two regions.</p><p>The boundary conditions for region 1 (before the shock) are: temperature, T<sub>1</sub> = 300 k; pressure, p<sub>1</sub> = 1 bar; velocity in the x direction, u<sub>1</sub> = 694 m/s (normal velocity with respect to the shock line); and velocity in the zdirection, w<sub>1</sub> = 0 m/s (tangential velocity with respect to the shock line). The boundary conditions for region 2 (after the shock) are: temperature, T<sub>2</sub> = 506.4 k; pressure, p<sub>2</sub> = 4.2 bar; velocity in x, u<sub>2</sub> = 260.2 m/s (normal velocity with respect to the shock line);and velocity in z, w<sub>2</sub> = 0 m/s (tangential velocity with respect to the shock line). The boundary conditions for the velocities, pressure and temperature for region 2 (after the shock) are obtained by the jump equations given by [<xref ref-type="bibr" rid="scirp.74207-ref5">5</xref>] . <xref ref-type="fig" rid="fig3">Figure 3</xref> presents the results calculated for the normal velocity with respect to the shock. The interface colors represent velocity ranges whose values can be seen in the scale of the graph.</p><p>This test was simulated with three different meshes. One mesh contains 100 cells, the other contains 400 cells, and the last mesh contains 1600 cells. The</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Computational domain (1.2 m &#215; 1.2 m) of the test of convergence and stability</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x36.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Result of the velocity normal to the shock for the normal shock problem. The computational meshused is composed of 1600 cells in the direction z to degree 2 of the expansion of polynomials</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x37.png"/></fig><p>result shown in <xref ref-type="fig" rid="fig3">Figure 3</xref> is obtained with the 1600 cells mesh. Note, as it was expected, that as the number of cells in the mesh increases the numerical solution approaches the correct solution, mainly near the interface between regions 1 and 2.</p><p>Temperature step problem. The second case analyzed verifies the problem of numerical diffusion, or false diffusion, that may artificially created by the numerical method. This case consists on the simulation of a temperature discontinuity (step) in a supersonic flow. The temperature step is formed by the boundary conditions imposed by problem. The problem of false diffusion is verified mainly in convection predominant problems. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows the computational domain used for this problem.</p><p>The boundary conditions imposed for this problem consists on specifying the flow conditions in the left and lower sides. For the left side, region 1, the boundary conditions are: temperature, T<sub>1</sub> = 310 k; pressure, p<sub>1</sub> = 1 bar; velocity in x, u<sub>1</sub> = 500 m/s; and velocity in z, w<sub>1</sub> = 500 m/s. For the lower side, region 2, the boundary conditions are given by: temperature, T<sub>2</sub> = 290 k; pressure, p<sub>2</sub> = 1bar; velocity in x, u<sub>2</sub> = 500 m/s; and velocity in z, w<sub>2</sub> = 500 m/s. Note that, with the purpose to generate the temperature step, the boundary condition for the temperature differs 20 k between the left and the lower sides.</p><p>The fluid properties used in this case are: non-viscous fluid, that is m = 0, and thermal conductivity, k = 0. Zero viscosity and zero thermal conductive eliminate the phenomena of diffusion both in the momentum and in the energy equations. Thus, any diffusion that may appear in the solution is caused by numerical problems. This makes easy to detect the problem of false diffusion.</p><p>The boundary condition used for the fluid velocity in the left and lower sides of the solution domain in this case is equal. Thus an interface at 45<sup>˚</sup> between the two temperature regions must appear in the solution. Note that the boundary conditions for the components of the velocity vector in the left and lower sides may be different. Using different velocity components in the left and lower sides changes the angle of the different fluid conditions with respect to the x direction</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Computational domain (2.0 m &#215; 2.0 m) for the step temperature problem</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x38.png"/></fig><p>and, therefore, the relative direction between the mesh and the fluid flow. The case analyzed in this section has an angle of 45˚, but [<xref ref-type="bibr" rid="scirp.74207-ref4">4</xref>] presents the results for other case with different angles.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the behavior of the temperature in regions 1 and 2 and the interface of the supersonic flow imposed by the boundary conditions. For this test a 100 cells mesh was used with different degrees of expansion. First, second, third and fourth order expansion degrees were used. As expected, the result obtained with the fourth order expansion is the one that better approximates the correct solution. The small fluctuation in the temperature of region 2 is due to difficult and slow convergence of the numerical method.</p><p>Oblique shock wave. This problem consists on a supersonic flow that hits on a body surface obliquely, forming an oblique shock wave. The objective of this problem is to dynamic capture a straight line oblique shock wave with non natural solution, or forced solution (intense shock). Other cases of oblique shock waves were simulated with the method developed, such as, the capture of a straight line oblique shock wave with natural solution (weak shock) and, the capture of a curve and dislocated shock wave resulting from the oblique shock of a fluid with and obstacle. In this paper only the intense shock wave is present, the other cases can be seen in [<xref ref-type="bibr" rid="scirp.74207-ref4">4</xref>] .</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> shows the solution domain used for this problem. The boundary condition for the left side and the first 2/3 of the lower side (region 1) of the solution domain is Mach number, M<sub>1</sub> = 2.9, and the direction of the flow with respect to the body surface forms an angle θ<sub>1</sub> = 11.3˚. The boundary conditions for the right side and the last 1/3 of lower side (region 2) of the solution domain is a pressure, p<sub>2</sub> = 9.6 bar.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Results for the temperature in the temperature step problem. The computa- tional mesh has 100 cellsin the x and z directions andthe variable expansion have fourth order degree</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x39.png"/></fig><p>Note that the natural solution for an oblique shock wave would be obtained by imposing only the flow velocity at the borders of region 1. Due to the imposition of the pressure at the borders of region 2 the forced solution (intense shock solution) is obtained. In the forced solution the angle of inclination of the formed shock wave is greater than that for the case of the natural solution.</p><p>The computational mesh used for this case is the same used in previous case, i.e., nine elements in both x and z directions, with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x40.png" xlink:type="simple"/></inline-formula>x = <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x41.png" xlink:type="simple"/></inline-formula>z = 0.33 m. The steady state solution is obtained running a false transient with a time step, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x42.png" xlink:type="simple"/></inline-formula>t = 10<sup>−5</sup> s. A second degree expansion is used for the problem variables.</p><p>According to [<xref ref-type="bibr" rid="scirp.74207-ref6">6</xref>] (table of oblique shock, appendix D), with M<sub>1</sub> = 2.9, θ<sub>1</sub> = 11.3˚ and pressure p<sub>2</sub> = 9.6 bar, the resulting oblique shock wave has an angle of inclination with respect to the x direction, β, equals to 85˚. These conditions form the forced solution (intense shock solution) for an oblique shock problem. The objective of this test is then to verify if the method developed is capable of capturing the shock wave with the right inclination as given by the theoretical result presented by [<xref ref-type="bibr" rid="scirp.74207-ref6">6</xref>] . <xref ref-type="fig" rid="fig7">Figure 7</xref> shows the results of this test where the red color represents the region before the shock, the blue after the shock and the yellow the interface of the shock.</p><p>As expected the results of <xref ref-type="fig" rid="fig7">Figure 7</xref> show an oblique shock wave. The shock wave formed is not a perfect straight line, as expected from the theoretical solution, and its inclination angle is 79, 5˚ with respect to the x direction (the correct theoretical angle is 85˚). The error in the inclination angle is caused by the boundary condition imposed on the superior boundary located at z = 1 m, which has the conditions for the flow before the shock. Note that the curve formed in</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Computational domain (1.0 m &#215; 1.0 m) for the oblique shock problemwith for- ced solution</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x43.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Result of the flow velocity showing the capture oblique straight line shock wave (forced solution)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-6201996x44.png"/></fig><p>the shock wave near the superior boundary is also caused by this problem with the boundary conditions. The mesh used for this problem had 9 cells and the expansion degree was the second order.</p><p>As mentioned before, many others cases including consistency and stability tests and oblique and normal shocks were simulated with the method developed and they are presented in [<xref ref-type="bibr" rid="scirp.74207-ref4">4</xref>] .</p></sec><sec id="s4"><title>4. Conclusion</title><p>Simulations of supersonic flows, incident obliquely on a body, it was realized to verify the capacity of the numerical method developed in to simulate, adequately, compressible fluid flow in high velocity and to capture shock wave. Through the done analysis, in function of the results obtained in the simulations realized, it can be concluded that the objective of this work was reached in satisfactory way, because the results obtained with the numerical method developed in this work, it was qualitatively and quantitatively goods, when compared with the found theoretical results in literature.</p></sec><sec id="s5"><title>Cite this paper</title><p>das Neves Conti, T., Cabral, E.L.L. and Sabundjian, G. (2017) Application of the Hierarchical Functions Expansion Method for the Solution of the Two Dimensional Navier-Stokes Equations for Compressible Fluids in High Velocity. Energy and Power Engineering, 9, 86-99. https://doi.org/10.4236/epe.2017.92007</p></sec><sec id="s6"><title>Nomenclature</title><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x45.png" xlink:type="simple"/></inline-formula>, Expansion matrix,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x46.png" xlink:type="simple"/></inline-formula>, Vector,</p><p>cv, Specific heat at constant volume,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x47.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p>CFD, Computational Fluid Dynamics,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x48.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p>e, Specific internal energy,</p><p>f<sub>x</sub>, f<sub>y</sub> e f<sub>z</sub>, Field forces,</p><p>i, Position of elements in x,</p><p>j, Position of elements in z,</p><p>K, Thermal conductivity,</p><p>L<sub>x</sub>, Length of element in x,</p><p>L<sub>z</sub>, Length of element in z,</p><p>N<sub>m</sub>, Expansion function,</p><p>p, pression,</p><p>P<sub>m</sub>, Weighting function,</p><p>Q, Generation of internal energy,</p><p>R, Gas constant,</p><p>SUPG, Streamline Upwind Petrov-Galerkin,</p><p>t, Time,</p><p>T, Temperature,</p><p>u, Velocity in x,</p><p>u<sub>1</sub>, Velocity in x before shock,</p><p>u<sub>2</sub>, Velocity in x after shock,</p><p>v, Velocity in y,</p><p>V, Volume,</p><p>x, y e z, Spatial coordinates,</p><p>w, Velocity in z.</p></sec><sec id="s7"><title>Greek Symbols</title><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x49.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x50.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x51.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p>Δ, Difference operator,</p><p>&#182;, Differential operator,</p><p>Φ, Dissipation function,</p><p>μ, Dynamic viscosity,</p><p><sub><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula>xx</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><sub>xy</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><sub>xz</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><sub>yx</sub> , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x56.png" xlink:type="simple"/></inline-formula><sub>yy</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x57.png" xlink:type="simple"/></inline-formula><sub>yz</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x58.png" xlink:type="simple"/></inline-formula><sub>zx</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x59.png" xlink:type="simple"/></inline-formula><sub>zy</sub>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x52.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x60.png" xlink:type="simple"/></inline-formula><sub>zz</sub>, Shear stress,</p><p>ρ, Specific mass of fluid,</p><p>ξ, Coordinate,</p><p>η, Coordinate,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x61.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x62.png" xlink:type="simple"/></inline-formula>, Integral of volume,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-6201996x63.png" xlink:type="simple"/></inline-formula>, Integral of volume.</p><disp-formula id="scirp.74207-formula32"><graphic  xlink:href="http://html.scirp.org/file/2-6201996x64.png"  xlink:type="simple"/></disp-formula><p>Submit or recommend next manuscript to SCIRP and we will provide best service for you:</p><p>Accepting pre-submission inquiries through Email, Facebook, LinkedIn, Twitter, etc.</p><p>A wide selection of journals (inclusive of 9 subjects, more than 200 journals)</p><p>Providing 24-hour high-quality service</p><p>User-friendly online submission system</p><p>Fair and swift peer-review system</p><p>Efficient typesetting and proofreading procedure</p><p>Display of the result of downloads and visits, as well as the number of cited articles</p><p>Maximum dissemination of your research work</p><p>Submit your manuscript at: http://papersubmission.scirp.org/</p><p>Or contact epe@scirp.org</p></sec></body><back><ref-list><title>References</title><ref id="scirp.74207-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Maliska, C.R. (1995) Transfer&amp;ecirc;ncia de Calor e Mec&amp;acirc;nica dos Fluidos Computacional. LTC-Livros T&amp;eacute;cnicos e Cient&amp;iacute;ficos Editora S.A., Rio de Janeiro.</mixed-citation></ref><ref id="scirp.74207-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Zienkiewicz, O.C. and Morgan, K. (1983) Finite Elements and Approximation. University of Wales, Swansea, New York.</mixed-citation></ref><ref id="scirp.74207-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Brooks, A.N. and Hughes, T.J.R. (1982) Streamline Upwind Petrov-Galerkin Formulation for Convection-Dominated Flows with Particular Emphasis on the Incompressible Navier-Stokes Equations. Computer Methods in Applied Mechanics and Engineering, 32, 199-259. https://doi.org/10.1016/0045-7825(82)90071-8</mixed-citation></ref><ref id="scirp.74207-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Conti, T.N. (2006) Application of Hierarchical Functions Expansion Method for the Solution of the Two Dimensional Navier-Stokes Equations for Compressible Fluids in High Velocity. Ph.D. Thesis, Mechanical Engineering Department, University of S&amp;atilde;o Paulo, S&amp;atilde;o Paulo.</mixed-citation></ref><ref id="scirp.74207-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Sim&amp;otilde;es-Moreira, J.R. (2002) Teoria do Escoamento Compress&amp;iacute;vel. Apostila da disciplina Escoamento Compress&amp;iacute;vel, Departamento de Engenharia Mec&amp;acirc;nica, Escola Polit&amp;eacute;cnica da Universidade de S&amp;atilde;o Paulo.</mixed-citation></ref><ref id="scirp.74207-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Thompson, P.A. (1972) Compressible Fluid-Dynamics. McGraw-Hill, USA.</mixed-citation></ref></ref-list></back></article>