# vamseeachanta/digitalmodel architecture

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

- Interactive diagram: https://gitdiagram.com/vamseeachanta/digitalmodel
- Repository: https://github.com/vamseeachanta/digitalmodel

## Overview

digitalmodel is a library-first engineering calculation package for offshore, subsea, and marine assets. Its principal workflow accepts configuration, dispatches to a discipline calculation, and returns engineering results; reports provide a deterministic presentation layer. The README also highlights fitness-for-service, cathodic protection, pipeline pressure, hydrodynamics, and OrcaFlex capabilities. The supplied excerpts show the top-level engine dispatching to cathodic protection, but do not establish most other runtime connections, so those are left unlinked rather than inferred.

Main entry points: [`src/digitalmodel/engine.py`](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/engine.py) (Config dispatcher), [`src/digitalmodel/cathodic_protection/engine_adapter.py`](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/engine_adapter.py) (Cathodic protection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow orchestration"]
  node_engine["Config dispatcher<br/>[engine.py]"]
end

subgraph group_integrity["Asset integrity"]
  node_ffs_applicability["Method applicability<br/>[applicability.py]"]
  node_ffs_decision["FFS decision<br/>[ffs_decision.py]"]
  node_ffs_report["FFS reporting<br/>[ffs_report.py]"]
  node_ffs_level2["Level 2 assessment<br/>[level2_engine.py]"]
  node_measurement["Measurement sufficiency"]
  node_screening_report["Screening report"]
  node_corroded_pipe["Corroded pipe strength<br/>[corroded_pipe.py]"]
  node_defect_screen["Pipeline defect screen"]
end

subgraph group_engineering["Engineering disciplines"]
  node_cathodic_protection["Cathodic protection<br/>[engine_adapter.py]"]
  node_b401_tables[("B401 design tables<br/>[b401_tables.py]")]
  node_f103_tables[("F103 design tables<br/>[f103_tables.py]")]
  node_hydro_mesh["Diffraction mesh pipeline<br/>[mesh_pipeline.py]"]
  node_engineering_databases[("Engineering databases")]
  node_pipeline_cost["Pipeline cost model"]
  node_pipeline_pressure["Pipeline pressure checks"]
  node_orcaflex_engine["OrcaFlex analysis engine<br/>[analysis_engine.py]"]
end

subgraph group_results["Results and reporting"]
  node_report_engine["Report renderer<br/>[engine.py]"]
  node_report_spec["Report specification<br/>[spec.py]"]
  node_engineering_result["Engineering result schema"]
  node_web_results["Web result surface"]
end

node_user(("Engineering user"))

node_user -->|"submits config"| node_engine
node_engine -->|"dispatches config"| node_cathodic_protection

click node_engine "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/engine.py"
click node_ffs_applicability "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/applicability.py"
click node_ffs_decision "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/ffs_decision.py"
click node_ffs_report "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/ffs_report.py"
click node_ffs_level2 "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/level2_engine.py"
click node_measurement "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/measurement_sufficiency.py"
click node_screening_report "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/screening_report.py"
click node_corroded_pipe "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/corroded_pipe.py"
click node_defect_screen "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/pipeline_defect_screen.py"
click node_cathodic_protection "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/engine_adapter.py"
click node_b401_tables "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/b401_tables.py"
click node_f103_tables "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/f103_tables.py"
click node_hydro_mesh "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/hydrodynamics/diffraction/mesh_pipeline.py"
click node_engineering_databases "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/data_systems/engineering_databases.py"
click node_pipeline_cost "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/economics/pipeline_cost_model.py"
click node_pipeline_pressure "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/subsea/pipeline/pipeline_pressure.py"
click node_orcaflex_engine "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/solvers/orcaflex/core/analysis_engine.py"
click node_report_engine "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/reporting/engine.py"
click node_report_spec "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/reporting/spec.py"
click node_engineering_result "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/specs/engineering_result.py"
click node_web_results "https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/web/engineering_results.py"

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_engine,node_user toneBlue
class node_ffs_applicability,node_ffs_decision,node_ffs_report,node_ffs_level2,node_measurement,node_screening_report,node_corroded_pipe,node_defect_screen toneAmber
class node_cathodic_protection,node_b401_tables,node_f103_tables,node_hydro_mesh,node_engineering_databases,node_pipeline_cost,node_pipeline_pressure,node_orcaflex_engine toneMint
class node_report_engine,node_report_spec,node_engineering_result,node_web_results toneRose
```

## Components

### Workflow orchestration

- [Config dispatcher](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/engine.py): `src/digitalmodel/engine.py`

### Asset integrity

- [Method applicability](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/applicability.py): `src/digitalmodel/asset_integrity/applicability.py`
- [FFS decision](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/ffs_decision.py): `src/digitalmodel/asset_integrity/assessment/ffs_decision.py`
- [FFS reporting](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/ffs_report.py): `src/digitalmodel/asset_integrity/assessment/ffs_report.py`
- [Level 2 assessment](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/level2_engine.py): `src/digitalmodel/asset_integrity/assessment/level2_engine.py`
- [Measurement sufficiency](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/measurement_sufficiency.py): `src/digitalmodel/asset_integrity/assessment/measurement_sufficiency.py`
- [Screening report](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/assessment/screening_report.py): `src/digitalmodel/asset_integrity/assessment/screening_report.py`
- [Corroded pipe strength](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/corroded_pipe.py): `src/digitalmodel/asset_integrity/corroded_pipe.py`
- [Pipeline defect screen](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/asset_integrity/pipeline_defect_screen.py): `src/digitalmodel/asset_integrity/pipeline_defect_screen.py`

### Engineering disciplines

- [Cathodic protection](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/engine_adapter.py): `src/digitalmodel/cathodic_protection/engine_adapter.py`
- [B401 design tables](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/b401_tables.py): `src/digitalmodel/cathodic_protection/b401_tables.py`
- [F103 design tables](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/cathodic_protection/f103_tables.py): `src/digitalmodel/cathodic_protection/f103_tables.py`
- [Diffraction mesh pipeline](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/hydrodynamics/diffraction/mesh_pipeline.py): `src/digitalmodel/hydrodynamics/diffraction/mesh_pipeline.py`
- [Engineering databases](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/data_systems/engineering_databases.py): `src/digitalmodel/data_systems/engineering_databases.py`
- [Pipeline cost model](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/economics/pipeline_cost_model.py): `src/digitalmodel/economics/pipeline_cost_model.py`
- [Pipeline pressure checks](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/subsea/pipeline/pipeline_pressure.py): `src/digitalmodel/subsea/pipeline/pipeline_pressure.py`
- [OrcaFlex analysis engine](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/solvers/orcaflex/core/analysis_engine.py): `src/digitalmodel/solvers/orcaflex/core/analysis_engine.py`

### Results and reporting

- [Report renderer](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/reporting/engine.py): `src/digitalmodel/reporting/engine.py`
- [Report specification](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/reporting/spec.py): `src/digitalmodel/reporting/spec.py`
- [Engineering result schema](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/specs/engineering_result.py): `src/digitalmodel/specs/engineering_result.py`
- [Web result surface](https://github.com/vamseeachanta/digitalmodel/blob/main/src/digitalmodel/web/engineering_results.py): `src/digitalmodel/web/engineering_results.py`

### Other components

- **Engineering user**

## Connections

- Engineering user → Config dispatcher: submits config (evidence: `src/digitalmodel/engine.py`)
- Config dispatcher → Cathodic protection: dispatches config (evidence: `src/digitalmodel/engine.py`)
