splinepy.helpme.integrate.FieldIntegrator.apply_dirichlet_boundary_conditions#

FieldIntegrator.apply_dirichlet_boundary_conditions(function, return_values=False, all_boundaries=True, north=False, east=False, south=False, west=False)[source]#

Applies Dirichlet boundary conditions via L2-projection.

Firstly, the function is L2-projected on the whole domain, but only the DoFs corresponding to the boundaries are taken into account.

Parameters:
  • function (callable) – Function to apply. Input are points, output is scalar

  • return_values (bool) – If True, computed values and the corresponding DoF indices will be returned and not applied to global system matrix or the global rhs. If False, values will be applied to system matrix and rhs and nothing will be returned

  • all_boundaries (bool) – If True, get indices of all boundary dofs and ignores values for north, south, east and west

  • north (bool) – If True, sets homogeneous Dirichlet condition on north boundary

  • east (bool)

  • south (bool)

  • west (bool)