How this-is-kb/nanofem works
NanoFEM is a phase-0 research finite-element framework for nanoscale mechanics: its repository defines a layered architecture and APIs, but the README explicitly says finite-element mathematics is not implemented yet. The intended workflow is model and mesh setup, theory/material/element definition, analysis, then result recovery or export. The graph shows that architecture and the sampled static-analysis orchestration; several subsystem connections are omitted because their source was not sampled.
Main entry points: static.py Static analysis · handler.py Constraints · recovery.py Field recovery · factory.py Element factory
Components 24
Model definition
- Mesh topology
src/nanofem/mesh/mesh.py - Model
src/nanofem/core/model.py - DOF numbering
src/nanofem/core/dof_handler.py - Constraints
src/nanofem/constraints/handler.py - Materials
src/nanofem/materials/material.py - Geometry
src/nanofem/geometry/base.py
Numerical foundations
- Numerical toolkit
src/nanofem/numerics - Reference cells
src/nanofem/numerics/reference/element.py - Quadrature rules
src/nanofem/numerics/quadrature/rules.py - Shape functions
src/nanofem/numerics/interpolation/shape_functions.py - Geometric mapping
src/nanofem/numerics/mapping/base.py
Physics and elements
- Physical theories
src/nanofem/physics/base.py - Element factory
src/nanofem/elements/factory.py - Element kernels
src/nanofem/kernels
Analysis and results
- Analysis base
src/nanofem/analysis/base.py - Static analysis
src/nanofem/analysis/static.py - Transient analysis
src/nanofem/analysis/transient.py - Modal analysis
src/nanofem/analysis/modal.py - Buckling analysis
src/nanofem/analysis/buckling.py - Global assembly
src/nanofem/numerics/assembly/assembler.py - Linear solver
src/nanofem/numerics/linalg/linear.py - Field recovery
src/nanofem/postprocess/recovery.py - Result output
src/nanofem/postprocess/export.py
Other components
- Engineer
Connections 9
- Engineer → Model: defines model
- Static analysis → Element factory: builds elements
- Static analysis → Global assembly: assembles system
- Static analysis → Constraints: partitions DOFs
- Static analysis → Linear solver: solves system
- Mesh topology → Constraints: resolves regions
- DOF numbering → Constraints: maps DOFs
- Field recovery → Element factory: queries response
- Field recovery → Physical theories: uses constitutive law