HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Slip-wall boundary conditions for shallow water equations. More...
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <boundaryconditions.h>
#include <physicalmodels/shallowwater1d.h>
#include <physicalmodels/shallowwater2d.h>
Go to the source code of this file.
Functions | |
int | BCSWSlipWallU (void *b, void *m, int ndims, int nvars, int *size, int ghosts, double *phi, double waqt) |
Slip-wall boundary conditions for shallow water equations.
Definition in file BCSWSlipWall.c.
int BCSWSlipWallU | ( | void * | b, |
void * | m, | ||
int | ndims, | ||
int | nvars, | ||
int * | size, | ||
int | ghosts, | ||
double * | phi, | ||
double | waqt | ||
) |
Applies the slip-wall boundary condition: This is specific to the one and two dimenstional shallow water equations (ShallowWater1D, ShallowWater2D). It is used for simulating inviscid walls or symmetric boundaries. The height, and tangential velocity at the ghost points are extrapolated from the interior, while the normal velocity at the ghost points is set such that the interpolated value at the boundary face is equal to the specified wall velocity.
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 21 of file BCSWSlipWall.c.