GridSetBoundaryRectangular

his function sets Dirchlet boundary conditions on the linear problem arising from the underlying grid, and the default variable ordering can be overridden.

Synopsis

#include "grid.h" 
#include "gvec.h" 
int GridSetBoundaryRectangular(int bd, int field, PetscScalar diag, PointFunction f, VarOrdering order, 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
order - The test variable ordering
ctx - The user-supplied context

Output Parameters

A - The system matrix
b - The Rhs vector

Keywords

boundary conditions, finite element

See Also

MeshGetBoundaryStart

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