deri_constraint

module opensg.utils.shell

opensg.utils.shell.deri_constraint(dv, v_, x, V, mesh, penalty)

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