fedoo.constraint.SurfaceForce.operator_apply

SurfaceForce.operator_apply(wf, nodal_vector, use_local_dof=False)

Apply a discrete nodal vector to the trial space of a bilinear operator.

This function performs a contraction of a bilinear form a(v, u*) with a known field ‘v’. It replaces the trial function (v) with the interpolated field defined by the nodal_vector, while keeping the virtual/test field (u*) symbolic.

Parameters:
  • Args

  • wf (DiffOp) – A bilinear opearator associated with a weakform that may be used to build a global matrix (e.g., stiffness or mass matrix).

  • nodal_vector (array_like) – The discrete values (Degrees of Freedom) used to instantiate the trial field. By default, the vector is interpreted in the global nodal basis.

  • use_local_dof (bool, default: False) – If True, nodal_vector is interpreted as local element dofs, ordered by variable blocks with n_elements * n_elm_nodes values each.

  • Return

    DiffOpAn operator containing only the virtual (test) operator,

    ready for vector assembly.