# islamatef100/plazor-app architecture

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

- Interactive diagram: https://gitdiagram.com/islamatef100/plazor-app
- Repository: https://github.com/islamatef100/plazor-app

## Overview

AtIPT is an interactive Blazor application for importing well-test data, configuring fracture/model parameters, running Fortran-based analyses, and reviewing or saving results. Its principal workflow moves from data import and case setup through analysis and solver execution to result review/export. The supplied excerpts support the service-registration, analysis, and project-persistence links; several UI and result-handling links are inferred from the tree and are marked dashed with no evidence path.

Main entry points: [`AtIPT/Program.cs`](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Program.cs) (Blazor host), [`AtIPT/Application/Services/AnalysisService.cs`](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/AnalysisService.cs) (Analysis service), [`AtIPT/Domain/SimCase.cs`](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Domain/SimCase.cs) (Simulation case), [`AtIPT/Components/Pages/BestHistory.razor`](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/BestHistory.razor) (Result views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_app["Blazor host<br/>[Program.cs]"]
  node_import_page["Import data<br/>[ImportData.razor]"]
  node_setup_pages["Case setup"]
  node_analysis_pages["Analysis pages"]
  node_result_pages["Result views<br/>[BestHistory.razor]"]
  node_project_tree["Project navigation<br/>[ProjectTree.razor]"]
  node_theme["Theme settings<br/>[ThemeService.cs]"]
end

subgraph group_workflow["Analysis workflow"]
  node_case_model["Simulation case<br/>[SimCase.cs]"]
  node_analysis_service["Analysis service<br/>[AnalysisService.cs]"]
  node_validation["Parameter validation"]
  node_input_builder["Solver input builder"]
end

subgraph group_solver["Solver integration"]
  node_simulation_runner["Fortran process runner"]
  node_solver_bins["Fortran solver executables"]
  node_solver_files["Solver working files"]
  node_output_parser["Solver output parser"]
  node_history_parser["Best-history parser"]
end

subgraph group_state["Projects and state"]
  node_appstate["Application state<br/>[AppState.cs]"]
  node_repository[("Project repository")]
end

subgraph group_support["Import and export"]
  node_data_import["Text data import"]
  node_param_file["Parameter files"]
  node_excel_export["Excel export"]
  node_export_builder["Export builder<br/>[ExportBuilder.cs]"]
  node_license["Licensing"]
end

node_user(("Analyst"))
node_browser_storage[("Browser local storage")]

node_user -->|"uses"| node_app
node_app -.->|"hosts"| node_import_page
node_app -.->|"hosts"| node_setup_pages
node_app -.->|"hosts"| node_analysis_pages
node_app -.->|"hosts"| node_result_pages
node_import_page -.->|"imports data"| node_data_import
node_data_import -->|"produces variables"| node_case_model
node_setup_pages -.->|"configures"| node_case_model
node_analysis_pages -.->|"requests analysis"| node_analysis_service
node_analysis_service -->|"builds input"| node_input_builder
node_analysis_service -->|"validates bounds"| node_validation
node_analysis_service -->|"runs solver"| node_simulation_runner
node_simulation_runner -.->|"launches executable"| node_solver_bins
node_analysis_service -->|"reads case"| node_case_model
node_app -->|"registers runner"| node_simulation_runner
node_app -->|"registers service"| node_solver_files
node_app -->|"registers service"| node_analysis_service
node_appstate -->|"uses projects"| node_repository
node_repository -->|"stores cases"| node_case_model
node_setup_pages -.->|"loads parameters"| node_param_file
node_app -->|"registers service"| node_param_file
node_analysis_service -.->|"parses results"| node_output_parser
node_result_pages -.->|"reads history"| node_history_parser
node_result_pages -.->|"exports results"| node_excel_export
node_excel_export -.->|"builds export data"| node_export_builder
node_app -->|"registers service"| node_excel_export
node_project_tree -.->|"browses projects"| node_appstate
node_app -->|"registers repository"| node_repository
node_app -->|"registers service"| node_data_import
node_app -->|"registers service"| node_license
node_app -.->|"registers service"| node_theme
node_theme -->|"persists theme"| node_browser_storage
node_result_pages -.->|"reviews results"| node_case_model

click node_app "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Program.cs"
click node_import_page "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/ImportData.razor"
click node_setup_pages "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/SimulationSetup.razor"
click node_analysis_pages "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/AutoRunSolutions.razor"
click node_result_pages "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/BestHistory.razor"
click node_appstate "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Services/AppState.cs"
click node_case_model "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Domain/SimCase.cs"
click node_data_import "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Import/TextFileImportService.cs"
click node_param_file "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Persistence/ParameterFileService.cs"
click node_analysis_service "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/AnalysisService.cs"
click node_validation "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/ParameterValidationService.cs"
click node_input_builder "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/SolverInputBuilder.cs"
click node_simulation_runner "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/FortranProcessRunner.cs"
click node_solver_bins "https://github.com/islamatef100/plazor-app/tree/master/AtIPT/EXE"
click node_solver_files "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/SolverFileService.cs"
click node_output_parser "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/SolverOutputParser.cs"
click node_history_parser "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/BestHistoryParser.cs"
click node_repository "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Persistence/ProjectRepository.cs"
click node_project_tree "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Shared/ProjectTree.razor"
click node_excel_export "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Excel/ClosedXmlExcelExportService.cs"
click node_export_builder "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/ExportBuilder.cs"
click node_theme "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Services/ThemeService.cs"
click node_license "https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Licensing/LicensingService.cs"

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_app,node_import_page,node_setup_pages,node_analysis_pages,node_result_pages,node_project_tree,node_theme toneBlue
class node_case_model,node_analysis_service,node_validation,node_input_builder,node_browser_storage toneAmber
class node_simulation_runner,node_solver_bins,node_solver_files,node_output_parser,node_history_parser toneMint
class node_appstate,node_repository toneRose
class node_data_import,node_param_file,node_excel_export,node_export_builder,node_license,node_user toneIndigo
```

## Components

### User interface

- [Blazor host](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Program.cs): `AtIPT/Program.cs`
- [Import data](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/ImportData.razor): `AtIPT/Components/Pages/ImportData.razor`
- [Case setup](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/SimulationSetup.razor): `AtIPT/Components/Pages/SimulationSetup.razor`
- [Analysis pages](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/AutoRunSolutions.razor): `AtIPT/Components/Pages/AutoRunSolutions.razor`
- [Result views](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Pages/BestHistory.razor): `AtIPT/Components/Pages/BestHistory.razor`
- [Project navigation](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Components/Shared/ProjectTree.razor): `AtIPT/Components/Shared/ProjectTree.razor`
- [Theme settings](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Services/ThemeService.cs): `AtIPT/Services/ThemeService.cs`

### Analysis workflow

- [Simulation case](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Domain/SimCase.cs): `AtIPT/Domain/SimCase.cs`
- [Analysis service](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/AnalysisService.cs): `AtIPT/Application/Services/AnalysisService.cs`
- [Parameter validation](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/ParameterValidationService.cs): `AtIPT/Application/Services/ParameterValidationService.cs`
- [Solver input builder](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/SolverInputBuilder.cs): `AtIPT/Application/Services/SolverInputBuilder.cs`

### Solver integration

- [Fortran process runner](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/FortranProcessRunner.cs): `AtIPT/Infrastructure/Simulation/FortranProcessRunner.cs`
- [Fortran solver executables](https://github.com/islamatef100/plazor-app/tree/master/AtIPT/EXE): `AtIPT/EXE`
- [Solver working files](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/SolverFileService.cs): `AtIPT/Infrastructure/Simulation/SolverFileService.cs`
- [Solver output parser](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/SolverOutputParser.cs): `AtIPT/Infrastructure/Simulation/SolverOutputParser.cs`
- [Best-history parser](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Simulation/BestHistoryParser.cs): `AtIPT/Infrastructure/Simulation/BestHistoryParser.cs`

### Projects and state

- [Application state](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Services/AppState.cs): `AtIPT/Services/AppState.cs`
- [Project repository](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Persistence/ProjectRepository.cs): `AtIPT/Infrastructure/Persistence/ProjectRepository.cs`

### Import and export

- [Text data import](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Import/TextFileImportService.cs): `AtIPT/Infrastructure/Import/TextFileImportService.cs`
- [Parameter files](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Persistence/ParameterFileService.cs): `AtIPT/Infrastructure/Persistence/ParameterFileService.cs`
- [Excel export](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Excel/ClosedXmlExcelExportService.cs): `AtIPT/Infrastructure/Excel/ClosedXmlExcelExportService.cs`
- [Export builder](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Application/Services/ExportBuilder.cs): `AtIPT/Application/Services/ExportBuilder.cs`
- [Licensing](https://github.com/islamatef100/plazor-app/blob/master/AtIPT/Infrastructure/Licensing/LicensingService.cs): `AtIPT/Infrastructure/Licensing/LicensingService.cs`

### Other components

- **Analyst**
- **Browser local storage**

## Connections

- Analyst → Blazor host: uses
- Blazor host → Import data: hosts
- Blazor host → Case setup: hosts
- Blazor host → Analysis pages: hosts
- Blazor host → Result views: hosts
- Import data → Text data import: imports data
- Text data import → Simulation case: produces variables (evidence: `AtIPT/Infrastructure/Import/TextFileImportService.cs`)
- Case setup → Simulation case: configures
- Analysis pages → Analysis service: requests analysis
- Analysis service → Solver input builder: builds input (evidence: `AtIPT/Application/Services/AnalysisService.cs`)
- Analysis service → Parameter validation: validates bounds (evidence: `AtIPT/Application/Services/AnalysisService.cs`)
- Analysis service → Fortran process runner: runs solver (evidence: `AtIPT/Application/Services/AnalysisService.cs`)
- Fortran process runner → Fortran solver executables: launches executable
- Analysis service → Simulation case: reads case (evidence: `AtIPT/Application/Services/AnalysisService.cs`)
- Blazor host → Fortran process runner: registers runner (evidence: `AtIPT/Program.cs`)
- Blazor host → Solver working files: registers service (evidence: `AtIPT/Program.cs`)
- Blazor host → Analysis service: registers service (evidence: `AtIPT/Program.cs`)
- Application state → Project repository: uses projects (evidence: `AtIPT/Services/AppState.cs`)
- Project repository → Simulation case: stores cases (evidence: `AtIPT/Infrastructure/Persistence/ProjectRepository.cs`)
- Case setup → Parameter files: loads parameters
- Blazor host → Parameter files: registers service (evidence: `AtIPT/Program.cs`)
- Analysis service → Solver output parser: parses results
- Result views → Best-history parser: reads history
- Result views → Excel export: exports results
- Excel export → Export builder: builds export data
- Blazor host → Excel export: registers service (evidence: `AtIPT/Program.cs`)
- Project navigation → Application state: browses projects
- Blazor host → Project repository: registers repository (evidence: `AtIPT/Program.cs`)
- Blazor host → Text data import: registers service (evidence: `AtIPT/Program.cs`)
- Blazor host → Licensing: registers service (evidence: `AtIPT/Program.cs`)
- Blazor host → Theme settings: registers service (evidence: `AtIPT/Program.cs`)
- Theme settings → Browser local storage: persists theme (evidence: `AtIPT/Services/ThemeService.cs`)
- Result views → Simulation case: reviews results
