# matnoel/easyfea architecture

> Architecture diagram of the GitHub repository matnoel/easyfea, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matnoel/easyfea
- Repository: https://github.com/matnoel/easyfea

## Overview

EasyFEA is a Python finite-element analysis library. The documented workflow is to create a geometry and mesh, choose a material model, configure boundary conditions, solve a simulation, then visualize results. The graph preserves the README’s major simulation families, plus mesh optimization, DIC, and file I/O. Relationships are based on the README and SOURCE INDEX references; unsampled implementations are represented by their existing directories, and unverified links are omitted.

Main entry points: [`EasyFEA/Simulations/_simu.py`](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_simu.py) (Simulation setup), [`EasyFEA/FEM/_mesh.py`](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_mesh.py) (Mesh operations), [`EasyFEA/FEM/_group_elem.py`](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_group_elem.py) (Element groups), [`EasyFEA/IO`](https://github.com/matnoel/easyfea/tree/main/EasyFEA/IO) (Mesh and result I/O)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_geometry["Geometry and meshes"]
  node_geometry_api["Geometry builders"]
  node_mesher["Mesh generation<br/>[_mesher.py]"]
  node_mesh["Mesh operations<br/>[_mesh.py]"]
end

subgraph group_fem["Finite element core"]
  node_elements["Element groups<br/>[_group_elem.py]"]
  node_element_types["Element formulations"]
  node_fem_operators["FEM operators"]
  node_fem_foundation["FEM numerics<br/>[_linalg.py]"]
end

subgraph group_models["Material and physics"]
  node_elastic_model["Elastic materials<br/>[_laws.py]"]
  node_hyperelastic_model["Hyperelastic materials<br/>[_laws.py]"]
  node_inelastic_model["Inelastic behavior<br/>[_behavior.py]"]
  node_beam_model["Beam materials<br/>[_beam.py]"]
  node_additional_models["Thermal and weak forms"]
  node_phasefield_model["Phase-field model<br/>[_phasefield.py]"]
end

subgraph group_simulation["Simulation and solving"]
  node_simulation_core["Simulation setup<br/>[_simu.py]"]
  node_elastic_sim["Elastic simulation<br/>[_elastic.py]"]
  node_hyperelastic_sim["Hyperelastic simulation<br/>[_hyperelastic.py]"]
  node_inelastic_sim["Inelastic simulation<br/>[_inelastic.py]"]
  node_beam_sim["Beam simulation<br/>[_beam.py]"]
  node_thermal_sim["Thermal simulation<br/>[_thermal.py]"]
  node_phasefield_sim["Phase-field simulation<br/>[_phasefield.py]"]
  node_dic_sim["DIC analysis<br/>[_dic.py]"]
  node_solvers["Nonlinear and time solvers<br/>[Solvers.py]"]
end

subgraph group_results["Results and exchange"]
  node_visualization["Result visualization"]
  node_file_io["Mesh and result I/O"]
end

node_user(("Analyst"))

node_user -->|"defines geometry"| node_geometry_api
node_geometry_api -->|"requests meshing"| node_mesher
node_mesher -->|"creates mesh"| node_mesh
node_mesh -->|"holds element groups"| node_elements
node_elements -->|"creates formulations"| node_element_types
node_elements -->|"uses linear algebra"| node_fem_foundation
node_user -->|"configures conditions"| node_simulation_core
node_mesh -->|"supplies mesh"| node_simulation_core
node_elastic_model -->|"provides material"| node_simulation_core
node_hyperelastic_model -->|"provides material"| node_simulation_core
node_inelastic_model -->|"provides behavior"| node_simulation_core
node_beam_model -->|"provides material"| node_simulation_core
node_additional_models -->|"provides physics"| node_simulation_core
node_phasefield_model -->|"provides phase field"| node_simulation_core
node_simulation_core -->|"dispatches solving"| node_solvers
node_solvers -->|"assembles equations"| node_fem_operators
node_fem_operators -->|"integrates elements"| node_elements
node_simulation_core -.->|"specializes as"| node_elastic_sim
node_simulation_core -.->|"specializes as"| node_hyperelastic_sim
node_simulation_core -.->|"specializes as"| node_inelastic_sim
node_simulation_core -.->|"specializes as"| node_beam_sim
node_simulation_core -.->|"specializes as"| node_thermal_sim
node_simulation_core -.->|"specializes as"| node_phasefield_sim
node_simulation_core -.->|"supports analysis"| node_dic_sim
node_user -->|"plots results"| node_visualization
node_simulation_core -->|"provides results"| node_visualization
node_user -.->|"exchanges files"| node_file_io
node_file_io -->|"reads mesh data"| node_mesh
node_file_io -->|"exports simulation data"| node_simulation_core
node_mesh -->|"optimizes mesh"| node_mesher

click node_geometry_api "https://github.com/matnoel/easyfea/tree/main/EasyFEA/Geoms"
click node_mesher "https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_mesher.py"
click node_mesh "https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_mesh.py"
click node_elements "https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_group_elem.py"
click node_element_types "https://github.com/matnoel/easyfea/tree/main/EasyFEA/FEM/Elems"
click node_fem_operators "https://github.com/matnoel/easyfea/tree/main/EasyFEA/FEM/Operators"
click node_fem_foundation "https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_linalg.py"
click node_elastic_model "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/Elastic/_laws.py"
click node_hyperelastic_model "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/HyperElastic/_laws.py"
click node_inelastic_model "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/InElastic/_behavior.py"
click node_beam_model "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/Beam/_beam.py"
click node_additional_models "https://github.com/matnoel/easyfea/tree/main/EasyFEA/Models"
click node_phasefield_model "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/_phasefield.py"
click node_simulation_core "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_simu.py"
click node_elastic_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_elastic.py"
click node_hyperelastic_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_hyperelastic.py"
click node_inelastic_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_inelastic.py"
click node_beam_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_beam.py"
click node_thermal_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_thermal.py"
click node_phasefield_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_phasefield.py"
click node_dic_sim "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_dic.py"
click node_solvers "https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/Solvers.py"
click node_visualization "https://github.com/matnoel/easyfea/tree/main/EasyFEA/Viz"
click node_file_io "https://github.com/matnoel/easyfea/tree/main/EasyFEA/IO"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_geometry_api,node_mesher,node_mesh toneBlue
class node_elements,node_element_types,node_fem_operators,node_fem_foundation toneAmber
class node_elastic_model,node_hyperelastic_model,node_inelastic_model,node_beam_model,node_additional_models,node_phasefield_model toneMint
class node_simulation_core,node_elastic_sim,node_hyperelastic_sim,node_inelastic_sim,node_beam_sim,node_thermal_sim,node_phasefield_sim,node_dic_sim,node_solvers toneRose
class node_visualization,node_file_io,node_user toneIndigo
```

## Components

### Geometry and meshes

- [Geometry builders](https://github.com/matnoel/easyfea/tree/main/EasyFEA/Geoms): `EasyFEA/Geoms`
- [Mesh generation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_mesher.py): `EasyFEA/FEM/_mesher.py`
- [Mesh operations](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_mesh.py): `EasyFEA/FEM/_mesh.py`

### Finite element core

- [Element groups](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_group_elem.py): `EasyFEA/FEM/_group_elem.py`
- [Element formulations](https://github.com/matnoel/easyfea/tree/main/EasyFEA/FEM/Elems): `EasyFEA/FEM/Elems`
- [FEM operators](https://github.com/matnoel/easyfea/tree/main/EasyFEA/FEM/Operators): `EasyFEA/FEM/Operators`
- [FEM numerics](https://github.com/matnoel/easyfea/blob/main/EasyFEA/FEM/_linalg.py): `EasyFEA/FEM/_linalg.py`

### Material and physics

- [Elastic materials](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/Elastic/_laws.py): `EasyFEA/Models/Elastic/_laws.py`
- [Hyperelastic materials](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/HyperElastic/_laws.py): `EasyFEA/Models/HyperElastic/_laws.py`
- [Inelastic behavior](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/InElastic/_behavior.py): `EasyFEA/Models/InElastic/_behavior.py`
- [Beam materials](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/Beam/_beam.py): `EasyFEA/Models/Beam/_beam.py`
- [Thermal and weak forms](https://github.com/matnoel/easyfea/tree/main/EasyFEA/Models): `EasyFEA/Models`
- [Phase-field model](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Models/_phasefield.py): `EasyFEA/Models/_phasefield.py`

### Simulation and solving

- [Simulation setup](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_simu.py): `EasyFEA/Simulations/_simu.py`
- [Elastic simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_elastic.py): `EasyFEA/Simulations/_elastic.py`
- [Hyperelastic simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_hyperelastic.py): `EasyFEA/Simulations/_hyperelastic.py`
- [Inelastic simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_inelastic.py): `EasyFEA/Simulations/_inelastic.py`
- [Beam simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_beam.py): `EasyFEA/Simulations/_beam.py`
- [Thermal simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_thermal.py): `EasyFEA/Simulations/_thermal.py`
- [Phase-field simulation](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_phasefield.py): `EasyFEA/Simulations/_phasefield.py`
- [DIC analysis](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/_dic.py): `EasyFEA/Simulations/_dic.py`
- [Nonlinear and time solvers](https://github.com/matnoel/easyfea/blob/main/EasyFEA/Simulations/Solvers.py): `EasyFEA/Simulations/Solvers.py`

### Results and exchange

- [Result visualization](https://github.com/matnoel/easyfea/tree/main/EasyFEA/Viz): `EasyFEA/Viz`
- [Mesh and result I/O](https://github.com/matnoel/easyfea/tree/main/EasyFEA/IO): `EasyFEA/IO`

### Other components

- **Analyst**

## Connections

- Analyst → Geometry builders: defines geometry
- Geometry builders → Mesh generation: requests meshing (evidence: `EasyFEA/Geoms/_geom.py`)
- Mesh generation → Mesh operations: creates mesh (evidence: `EasyFEA/FEM/_mesher.py`)
- Mesh operations → Element groups: holds element groups (evidence: `EasyFEA/FEM/_mesh.py`)
- Element groups → Element formulations: creates formulations (evidence: `EasyFEA/FEM/_group_elem.py`)
- Element groups → FEM numerics: uses linear algebra (evidence: `EasyFEA/FEM/_group_elem.py`)
- Analyst → Simulation setup: configures conditions
- Mesh operations → Simulation setup: supplies mesh (evidence: `EasyFEA/Simulations/_simu.py`)
- Elastic materials → Simulation setup: provides material (evidence: `EasyFEA/Simulations/_simu.py`)
- Hyperelastic materials → Simulation setup: provides material (evidence: `EasyFEA/Simulations/_simu.py`)
- Inelastic behavior → Simulation setup: provides behavior (evidence: `EasyFEA/Simulations/_simu.py`)
- Beam materials → Simulation setup: provides material (evidence: `EasyFEA/Models/Beam/_beam.py`)
- Thermal and weak forms → Simulation setup: provides physics (evidence: `EasyFEA/Models/__init__.py`)
- Phase-field model → Simulation setup: provides phase field
- Simulation setup → Nonlinear and time solvers: dispatches solving (evidence: `EasyFEA/Simulations/_simu.py`)
- Nonlinear and time solvers → FEM operators: assembles equations (evidence: `EasyFEA/Simulations/Solvers.py`)
- FEM operators → Element groups: integrates elements (evidence: `EasyFEA/FEM/Operators/NonLinear.py`)
- Simulation setup → Elastic simulation: specializes as
- Simulation setup → Hyperelastic simulation: specializes as
- Simulation setup → Inelastic simulation: specializes as
- Simulation setup → Beam simulation: specializes as
- Simulation setup → Thermal simulation: specializes as
- Simulation setup → Phase-field simulation: specializes as (evidence: `EasyFEA/Simulations/_phasefield.py`)
- Simulation setup → DIC analysis: supports analysis
- Analyst → Result visualization: plots results
- Simulation setup → Result visualization: provides results (evidence: `EasyFEA/Viz/Matplotlib.py`)
- Analyst → Mesh and result I/O: exchanges files
- Mesh and result I/O → Mesh operations: reads mesh data (evidence: `EasyFEA/IO/Paraview.py`)
- Mesh and result I/O → Simulation setup: exports simulation data (evidence: `EasyFEA/IO/Paraview.py`)
- Mesh operations → Mesh generation: optimizes mesh (evidence: `EasyFEA/FEM/_mesh.py`)
