FEATool  v1.7
Finite Element Analysis Toolbox
 All Files Functions Pages
bdrsetd.m File Reference

Description

BDRSETD Set Dirichlet boundary conditions.

[ AMAT, F, T ] = BDRSETD( AMAT, F, PROB, ISYMM, SET_NULL, SOLCOMP ) Sets Dirichlet boundary conditions in the global matrix AMAT and right hand side/load vector F with the information in the finite element problem struct PROB. The optional flag ISYMM symmetrizes the boundary conditions. SET_NULL prescibes zeros instead of the expression specified in the prob.bdr.d field.

Input       Value/(Size)           Description
-----------------------------------------------------------------------------------
amat        (n_a,n_a)              System matrix (sparse or triplet format)
f           (neq,1)                Right hand side/load vector
prob        struct                 Finite element problem struct
isymm       scalar/{0}             Symmetrize BCs if applicable
set_null    scalar/{0}             Set zeros in f vector
solcomp     {all dvars/subd}       Dependent variables/subdomains to assemble for
                                                                                  .
Output      Value/(Size)           Description
-----------------------------------------------------------------------------------
amat        (n_a,n_a)              Modified system matrix
f           (neq,1)                Modified right hand side/load vector
t           scalar                 Time spent in function
Required fields of prob:
Required fields of amat: