• No results found

Boundary condition enforcement on Cartesian grid

In this section, we present a short overview of the immersed boundary methods usually used to enforce a boundary condition on an interface arbitrarily crossing the grid. Then, a Cartesian scheme is proposed to impose the new Euler-AP boundary condition at the desired order.

III.3.1 Immersed boundary methods

In a recent review by Mittal and Iaccarino [86], different methods to treat immersed boundaries are presented. Most of the methods presented have been successfully applied to Navier-Stokes and Euler equations. However, very few work has been done yet for kinetic models making this contribution of interest. We can distinguish three main classes of methods: the penalization methods, the conservative methods and the interpolation methods. In the penalization methods, the boundary condition is enforced at the continuous level. A term is added in the equation to simulate the presence of the boundary. The pioneer idea comes from Peskin for incompressible blood flows [96]. The membrane of the vessels moves under the action of the viscous blood flows and applies a force on the fluid. This force is integrated in the equation to simulate the presence of the boundaries. However, the impermeability condition was not clearly imposed and leaking of the fluid in the solid has been observed [116]. Another drawback is the accuracy of the method which is only first order. Moreover, the method is hardly applicable to rigid solids since the law for elastic bodies in the rigid limit is not well defined. Some issues were fixed by Leveque et al. [80], especially for the accuracy and the rigid limit, by incorporating jump conditions. Penalization methods are also enforcing the boundary condition at the continuum limit by considering the flow in a porous media with a variable porosity. It has been done successfully for Navier-Stokes equations for incompressible flows [5], [74] by adding a force F = K1u where K is 0 in the solid and infinity in the fluid. This force drives the velocity of the fluid to 0 in the solid and does not affect the equation for the fluid part. The same idea was applied to compressible flows [17], [81] by penalizing the momentum and the energy equations. However, as the porosity goes to zero, a stong restriction appears on the time step and an implicit scheme for the penalization term should be used.

The second class of immersed boundary methods are the conservative methods. The condi- tion is enforced at the discrete level by modifying the scheme in cells cut by the interface. They are usually referred to as Embedded Boundary methods or Cut-Cell methods [68], [117]. When a cell contains a solid part, it is cut along a straight line approximating the interface. A new numerical interface is created where the boundary condition is imposed through the flux. This method has the advantage of conserving mass, momentum and energy but cut-cells can be very small and thus, impose a strong restriction on the time step to keep stability. Several cures where proposed mostly based on merging the small cut-cell with an entirely fluid neighbour cell [67]. In [38] or in [104], some advantages of such methods are shown with respect to others thanks to the conservation property. However, it becomes particularly complex in 3D to treat all the possible geometrical configurations of a cut-cell.

Another approach has been proved to be efficient for compressible equation. It is based on interpolated states to impose the boundary condition in the vicinity of the boundaries. The pioneer works of Fedkiw [48], [47] introduced the Ghost-Fluid method for multi-materials flows. In [87], the technique is applied to rigid solids. A fictitious state is created in the neighbouring solid cell to compute the fluxes as usual. The state is created by interpolating the macroscopic quantities in the normal direction of the interface and by satisfying the boundary condition. It is locally non-conservative but the order of accuracy can be set a priori. This idea has been successfully applied for compressible Euler equations [61] or elliptic equations [34], [54]. In the following, we extend this idea to kinetic models and show how a first and second order accuracy

scheme based on extrapolation is obtained to enforce the boundary condition.

III.3.2 A Cartesian scheme

In this section we describe the scheme to impose the Euler-AP boundary condition of section III.2.2.2 to immersed boundaries on Cartesian grids for the BGK model. The scheme for the ES-BGK model is identical except that instead of using the Maxwellian distribution function Mf we uses the Gaussian distribution function Gf. The diffuse and the specular reflection

schemes are similar. Also, it should be noted that this technique can be easily applied to the case of body fitted grids.

In the case of a solid immersed in the flow, a fictitious state has to be created in the solid to compute the transport step numerically between a fluid cell and a cell containing the solid. The idea is first to compute the equivalent distribution function at the solid interface satisfying the imposed boundary condition and then create a fictitious state in the neighbour solid cell called ghost cell that respects the boundary value at a given approximation order. To do so, a few parameters on the boundary are needed. These parameters are presented in figure III.1.

Figure III.1: Immersed interface on a Cartesian mesh.

In each grid point, the shortest distance to the boundary φ is known through the levelset function (eq.III.2). One can also compute the normal n to the boundary in each grid point thanks to (III.3). In the following, we distinguish the interface between two cells and the interface between the fluid and the solid. The first interface will be called numerical interface (where the numerical fluxes are computed) while the latter will be called the physical interface (where the boundary condition is imposed).

The problem reduces to detemine a Maxwellian distribution function on the boundary and extrapolate or interpolate it to the numerical interface.

The point A will be used to compute the interpolation at the interface i + 1/2, j1. The fluxes at interface i1, j − 1/2 will be computed by calculating the wall Maxwellian on point B. Since the same scheme is used on points A and B, the method will be explained on point A.

III.3.2.1 First order Euler-AP scheme

To compute the fictitious state at first order, the Maxwellian distribution function at the wall is built as presented previously in III.2.1 with the tangential velocity UA· τi,j1 and temperature

TAtaken from the fluid cell and a zero relative normal velocity (UA− Uw) · ni,j1:

     TA= Ti,j1

(UA− Uw) · τi,j1 = (Ui,j1− Uw) · τi,j1

(UA− Uw) · ni,j1= 0

The density ρA is calculated thanks to the distribution function in cell (i, j1) invoking mass

conservation through the wall as in (III.7). The Maxwellian built with ρA, UA, TAis then simply

imposed as the state in the first solid cell (i + 1, j1). The part of the boundary condition fs

corresponding to the specular reflection and fdcorresponding to the diffuse boundary condition

can be also easily computed from fi,j1 and imposed velocity and temperature. Thus, fb is fully

constructed.

In the case of the ES-BGK model it is necessary to know the opposite stress tensor ΘA in

A. As for the other macroscopic quantities it is set equal to Θi+1,j1.

III.3.2.2 Second order Euler-AP scheme

The main idea is now to impose the boundary condition on the physical interface and reconstruct the conditions at the numerical interface with second-order accuracy.

The impermeability boundary condition is applied at the physical interface by imposing a Maxwellian distribution function. This distribution function depends on the temperature, the velocity and the distribution function in the fluid. All these information are extrapolated from the fluid. To find the position of the wall, the levelset function is used and the distance dA

between the cell center and the wall is known as: dA=

∆x|φi,j1|

i,j1| + |φi+1,j1|

where φi,j1(respectively φi+1,j1) is the distance between the point (i, j1) (respectively (i+1, j1))

and the boundary and ∆x is the space grid step. The normal can also be computed by nA= ni,j1+

dA

∆x(ni+1,j1− ni,j1)

where ni,j1 (respectively ni+1,j1) is the normal to the boundary in point (i, j1) (respectively

(i + 1, j1)).

The temperature and the velocity now can be extrapolated with a second order polynomial using Ti,j1, Ti−1,j1, Ti−2,j1 and Ui,j1, Ui−1,j1, Ui−2,j1. The wall temperature Text is the result

of the extrapolation while the wall velocity Uext is only equal to the tangential part of the

extrapolated velocity such that the impermeability condition ((UA− Uw).nA= 0) is enforced:

(

TA= Text

UA= Uext− ((Uext− Uw) · nA) nA

Again, the opposite stress tensor, ΘAhas to be extrapolated in the same way as the temperature

To extrapolate the distribution function at the boundary in order to compute the density, an upwind reconstruction is used. For each microscopic velocity ξ such that (ξ − Uw) · nA< 0

fA(ξ) is set as: fA(ξ) = fn,m(ξ) such that xA− xn,m ||xA− xn,m|| · ξ ||ξ|| =(k,l)∈Υmaxi,j1 ( xA− xk,l ||xA− xk,l|| · ξ ||ξ||) (III.14) with xA the position of the boundary (xA = xi,j1 + dA) and Υi,j1 containing all the fluid

neighbours of cell (i, j1). A graphic illustration is given in figure III.2. In this example, the velocity grid has 8 grid points in 2D. The third dimension in velocity is eliminated with the reduced model, which, we recall, is exact (see section ??). The distribution function is required in A for ξ1, ξ6, ξ7, ξ8. Here Υi,j is represented in blue. One can create fAfor (ξ − Uw) · nA< 0

as :          fA(ξ1) = fi,j(ξ1) fA(ξ6) = fi+1,j+1(ξ6) fA(ξ7) = fi+1,j+1(ξ7) fA(ξ8) = fi,j+1(ξ8)

Figure III.2: Graphic illustration of the reconstruction for a 8 velocities grid.

It is worth to remark that this reconstruction avoids interpolation but is not formally second- order accurate. A MUSCL-type reconstruction could be applied instead but an upwind recon- struction has the advantage of taking into account the main direction of the flux. Indeed, a reconstruction with slopes chosen as in (II.13) does not prevent the possibility of selecting a downwind reconstruction which might lead to high extrapolation errors.

The part of f for (ξ − Uw) · nA> 0 corresponds to microscopic velocities coming from the

wall and is not required for the computation of the wall Maxwellian fMA.

Finally, the distribution function used as boundary condition can be computed as follows: fAP =

(

fA for (ξ − Uw) · nA< 0

fMA for (ξ − Uw) · nA> 0

Similarly, fsand fdcan be built in A from the reconstructed distribution function fA. Thus,

the boundary condition fb is known in A.

Once the distribution for the boundary condition is known at the wall, it has to be in- terpolated or extrapolated to the numerical interface with a linear reconstruction to preserve second order. One can use the same slope as in the fluid cell and the exact distance between the numerical (between cells) and physical interface (dAon figure III.1):

fi+1/2,j1,r = fAP +

dA

∆xMinMod(fi,j1− fi−1,j1, fi−1,j1− fi−2,j1) (III.16) The fluxes at the numerical interface can be now computed as usual.

Related documents