Class Mesh

java.lang.Object
org.episteme.core.mathematics.analysis.fem.Mesh

public class Mesh extends Object
Represents a finite element mesh.

A mesh consists of a collection of nodes and elements.

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

    • Mesh

      public Mesh()
      Creates an empty mesh.
  • Method Details

    • addNode

      public void addNode(Node node)
      Adds a node to the mesh.
      Parameters:
      node - the node to add
    • addElement

      public void addElement(Element element)
      Adds an element to the mesh.
      Parameters:
      element - the element to add
    • getNodes

      public List<Node> getNodes()
      Returns the list of nodes in the mesh.
      Returns:
      an unmodifiable list of nodes
    • getElements

      public List<Element> getElements()
      Returns the list of elements in the mesh.
      Returns:
      an unmodifiable list of elements
    • indexNodes

      public void indexNodes()
      Assigns global indices to nodes for system assembly. This simple implementation assigns indices sequentially.