Navigation

Operators and Keywords

Function List:

C++ API

Function File: [A], [b], [x(Optional)] = assemble_system (form_a, form_L, DirichletBC)

Construct the discretization of a system and apply essential BC. The input arguments are

  • form_a which is the BilinearForm to assemble.
  • form_L which is the LinearForm to assemble.
  • DirichletBC represents the optional BC applied to the system.

The output A is a matrix representing the form_a while b represents form_L. If boundary conditions have to be applied to a vector for a nonlinear problem then it should be provided as third argument and it will be given back as the third output argument. For an example of this situation, please refer to the HyperElasticity example.

See also: BilinearForm, LinearForm, ResidualForm, JacobianForm, Functional.

Package: fem-fenics