GridSetMatBoundaryRectangular

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

Synopsis

#include "grid.h" 
#include "gvec.h" 
int GridSetMatBoundaryRectangular(int num, int *bd, int *field, PetscScalar diag, VarOrdering order, GMat A, void *ctx)
Collective on GMat

Input Parameters

num - The number of boundary conditions
bd - The markers for each boundary to apply conditions along
field - The fields to which the conditions apply
diag - The scalar to be placed on the diagonal
order - The test variable ordering
ctx - The user-supplied context

Output Parameter

A -The system matrix

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