deri_constraint#

module opensg.utils.shared

opensg.utils.shared.deri_constraint(dvl, v_l, mesh, nh)#

Compute derivative constraints for boundary conditions.

This function computes constraints on derivatives that are needed for proper boundary condition enforcement.

Parameters:
  • dvl (ufl.Coefficient) – Trial function

  • v_l (ufl.Coefficient) – Test function

  • mesh (dolfinx.mesh.Mesh) – Mesh object

  • nh (float) – Constraint parameter

Returns:

ufl.Form – Form representing the derivative constraints