Interface ShapeFunction


public interface ShapeFunction
Interface for finite element shape functions.

Shape functions (or basis functions) interpolate values within an element based on the values at the nodes.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(Vector<Real> localCoords)
    Evaluates the shape function at the given local coordinates.
    gradient(Vector<Real> localCoords)
    Computes the gradient of the shape function with respect to local coordinates.
  • Method Details

    • evaluate

      Real evaluate(Vector<Real> localCoords)
      Evaluates the shape function at the given local coordinates.
      Parameters:
      localCoords - the local coordinates within the element (e.g., xi, eta, zeta)
      Returns:
      the value of the shape function (N_i)
    • gradient

      Vector<Real> gradient(Vector<Real> localCoords)
      Computes the gradient of the shape function with respect to local coordinates.
      Parameters:
      localCoords - the local coordinates
      Returns:
      the gradient vector (dN_i/dxi, dN_i/deta, ...)