FEMDocumentation`
FEMDocumentation`

DeployBoundaryConditions

DeployBoundaryConditions[{l,s},dbc]

modifies the vector l and the matrix s such that the discretized boundary conditions dbc take effect.

DeployBoundaryConditions[{l,s,d},dbc]

additionally modifies the matrix d.

DeployBoundaryConditions[{l,s,d,m},dbc]

additionally modifies the matrix m.

Details and OptionsDetails
  • DeployBoundaryConditions by default does not evaluate its first argument. The first argument should explicitly be a list with elements l, s, d, and m that are explicitly symbols that have assigned values corresponding to vectors and matrices. The values are modified in place according to the discretized boundary conditions so that on return from DeployBoundaryConditions, the symbols will evaluate to the new values.
  • The vector l and the matrices s, d, and m are system matrices and can be obtained from a DiscretizePDE object through the string property "All".
  • The DiscretizedBoundaryConditionData object dbc is generated by DiscretizeBoundaryConditions.
  • DeployBoundaryConditions has the following options:
  • "ConstraintMethod"Automaticwhich method to use to realize the constraints
  • The default constraint method keeps the dimensions of the vectors and matrices the same and modifies the values in them to enforce the constraints.
  • Examples

    Basic Examples  (1)

    Load the finite element package:

    In[1]:=
    Click for copyable input

    Set up a NumericalRegion:

    In[2]:=
    Click for copyable input
    Out[2]=

    Set up variable and solution data:

    In[3]:=
    Click for copyable input

    Initialize the coefficients and boundary conditions:

    In[4]:=
    Click for copyable input

    Initialize the method data:

    In[5]:=
    Click for copyable input

    Discretize the PDE and the boundary conditions:

    In[6]:=
    Click for copyable input

    Extract the system matrices:

    In[7]:=
    Click for copyable input

    Deploy the boundary conditions:

    In[8]:=
    Click for copyable input

    Solve the resulting system of equations:

    In[9]:=
    Click for copyable input

    See Also

    DiscretizedPDEData  DiscretizedBoundaryConditionData  LinearSolve

    Tutorials