GridSetBoundary

his function sets Dirchlet boundary conditions on the linear problem arising from the underlying grid.

Synopsis

#include "grid.h" 
#include "gvec.h" 
int GridSetBoundary(int bd, int field, PetscScalar diag, PointFunction f, GMat A, GVec b, void *ctx)
Collective on Grid

Input Parameters

bd - The marker for the boundary to apply conditions along
field - The field to which the conditions apply
diag - The scalar to be placed on the diagonal
f - The function which defines the boundary condition
ctx - The user-supplied context

Output Parameters

A - The system matrix
b - The Rhs vector

Keywords

boundary conditions, finite element

See Also

MeshGetBoundaryStart

Level:intermediate
Location:
src/grid/interface/gridBC.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages