HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Apply physical boundary conditions to domain. More...
#include <stdio.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mpivars.h>
#include <boundaryconditions.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ApplyBoundaryConditions (void *s, void *m, double *x, double *xref, double waqt) |
Applies the boundary conditions specified for each boundary zone. More... | |
Apply physical boundary conditions to domain.
Definition in file ApplyBoundaryConditions.c.
int ApplyBoundaryConditions | ( | void * | s, |
void * | m, | ||
double * | x, | ||
double * | xref, | ||
double | waqt | ||
) |
Applies the boundary conditions specified for each boundary zone.
The solver object (of type HyPar) contains an oject of type DomainBoundary that contains all the boundary information (dimension, extent, face, type, etc). This function iterates through each of the boundary zones (HyPar::boundary[HyPar::nBoundaryZones]) and calls the corresponding boundary condition function.
The variable flag indicates if the array x is the solution, or a delta-solution (from implicit time-integration methods).
s | Object of type HyPar containing solver-related variables |
m | Object of type MPIVariables containing MPI-related variables |
x | The solution vector on which the boundary conditions are to be applied |
xref | Reference solution vector, if needed |
waqt | Current simulation time |
Definition at line 28 of file ApplyBoundaryConditions.c.