HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Thermal slip-wall boundary conditions. More...
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <boundaryconditions.h>
#include <mpivars.h>
#include <physicalmodels/euler1d.h>
#include <physicalmodels/euler2d.h>
#include <physicalmodels/navierstokes3d.h>
Go to the source code of this file.
Functions | |
int | BCThermalSlipWallU (void *b, void *m, int ndims, int nvars, int *size, int ghosts, double *phi, double waqt) |
Thermal slip-wall boundary conditions.
Definition in file BCThermalSlipWall.c.
int BCThermalSlipWallU | ( | void * | b, |
void * | m, | ||
int | ndims, | ||
int | nvars, | ||
int * | size, | ||
int | ghosts, | ||
double * | phi, | ||
double | waqt | ||
) |
Applies the thermal slip-wall boundary condition: This is specific to the 3D Navier-Stokes system (NavierStokes3D). It is used for simulating inviscid walls or symmetric boundaries, where the temperature is specified. The density and the tangential velocity at the ghost points are extrapolated for the interior. The normal velocity at the ghost points is set such that the interpolated velocity at the boundary face is the specified wall velocity. The pressure at the ghost points is set by multiplying the extrapolated density by the specified temperature.
Note: It is assumed that the temperature already contains the gas constant factor, i.e., \( T = P/\rho\).
b | Boundary object of type DomainBoundary |
m | MPI object of type MPIVariables |
ndims | Number of spatial dimensions |
nvars | Number of variables/DoFs per grid point |
size | Integer array with the number of grid points in each spatial dimension |
ghosts | Number of ghost points |
phi | The solution array on which to apply the boundary condition |
waqt | Current solution time |
Definition at line 27 of file BCThermalSlipWall.c.