# nomiez321000/ansys_scripts architecture

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

- Interactive diagram: https://gitdiagram.com/nomiez321000/ansys_scripts
- Repository: https://github.com/nomiez321000/ansys_scripts

## Overview

This repository is an APDL-based workflow for parametrically modeling and verifying ATR 42-600 horizontal-tailplane structures, with MATLAB preprocessing to reconstruct and map flight loads. The documented main path runs from load reconstruction and model generation through configuration setup and verification; the README also identifies static stress, buckling, and sizing optimization as extensions. The available source material contains no excerpts, so relationships below are limited to those stated in the README; implementation-level calls and data transfers are not inferred.

Main entry points: [`modal_analysis/VERIFY_MODAL.mac`](https://github.com/nomiez321000/ansys_scripts/blob/main/modal_analysis/VERIFY_MODAL.mac) (Model Verification), [`load_sfbm`](https://github.com/nomiez321000/ansys_scripts/tree/main/load_sfbm) (Flight Data), [`load_sfbm/matlab/vn_diagram.m`](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/vn_diagram.m) (V-n Analysis), [`load_sfbm/matlab/tail_load.m`](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/tail_load.m) (Tail Loads)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_loads["Flight Loads"]
  node_flight_inputs["Flight Data"]
  node_vn["V-n Analysis<br/>[vn_diagram.m]"]
  node_tail_load["Tail Loads<br/>[tail_load.m]"]
  node_sfbm["SFBM Preprocessing<br/>[htp_sfbm.m]"]
  node_nodal_mapping["Nodal Force Mapping<br/>[htp_nodal_forces.m]"]
  node_load_cards["APDL Load Cards"]
end

subgraph group_model["Parametric Model"]
  node_parametric_model["Parametric HTP Model<br/>[HTP_PARAMETRIC.mac]"]
  node_configurations["Layout Configurations<br/>[HTP_PARAMETRIC.mac]"]
end

subgraph group_analysis["Verification Analysis"]
  node_verification["Model Verification<br/>[VERIFY_MODAL.mac]"]
  node_verification_results["Verification Results"]
  node_load_visualization["Load Visualization"]
end

subgraph group_extensions["Design Extensions"]
  node_static_buckling["Static and Buckling"]
  node_sizing["Sensitivity and Sizing"]
  node_design_results["Design Results"]
end

node_engineer(("Project Engineer"))
node_ansys["ANSYS MAPDL"]

node_engineer -->|"provides data"| node_flight_inputs
node_flight_inputs -->|"supports reconstruction"| node_vn
node_vn -->|"informs load case"| node_tail_load
node_tail_load -->|"feeds preprocessing"| node_sfbm
node_sfbm -->|"maps loads"| node_nodal_mapping
node_nodal_mapping -->|"produces force cards"| node_load_cards
node_engineer -->|"runs model"| node_parametric_model
node_parametric_model -->|"generates layouts"| node_configurations
node_configurations -->|"solves model"| node_ansys
node_ansys -->|"enables verification"| node_verification
node_verification -->|"reports gates"| node_verification_results
node_load_cards -->|"applies flight loads"| node_ansys
node_engineer -->|"inspects loads"| node_load_visualization
node_verification -.->|"extends to analysis"| node_static_buckling
node_static_buckling -.->|"guides optimization"| node_sizing
node_sizing -.->|"records results"| node_design_results

click node_flight_inputs "https://github.com/nomiez321000/ansys_scripts/tree/main/load_sfbm"
click node_vn "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/vn_diagram.m"
click node_tail_load "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/tail_load.m"
click node_sfbm "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/htp_sfbm.m"
click node_nodal_mapping "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/htp_nodal_forces.m"
click node_load_cards "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/htp_loads_D_fwd_cfg1.inp"
click node_parametric_model "https://github.com/nomiez321000/ansys_scripts/blob/main/HTP_PARAMETRIC.mac"
click node_configurations "https://github.com/nomiez321000/ansys_scripts/blob/main/HTP_PARAMETRIC.mac"
click node_verification "https://github.com/nomiez321000/ansys_scripts/blob/main/modal_analysis/VERIFY_MODAL.mac"
click node_verification_results "https://github.com/nomiez321000/ansys_scripts/blob/main/modal_analysis/result/STAGE3B_VERIFICATION_SUMMARY.txt"
click node_load_visualization "https://github.com/nomiez321000/ansys_scripts/blob/main/RENDER_STATIC_LOADS.mac"
click node_static_buckling "https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/RUN_STAGE3C_BASELINE_MATRIX.mac"
click node_sizing "https://github.com/nomiez321000/ansys_scripts/blob/main/optimization/RUN_STAGE3D_SIZING_OPT.mac"
click node_design_results "https://github.com/nomiez321000/ansys_scripts/blob/main/optimization/result/STAGE3D_FINAL_COMPARISON_TABLE.csv"

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_flight_inputs,node_vn,node_tail_load,node_sfbm,node_nodal_mapping,node_load_cards toneBlue
class node_parametric_model,node_configurations toneAmber
class node_verification,node_verification_results,node_load_visualization toneMint
class node_static_buckling,node_sizing,node_design_results toneRose
class node_engineer,node_ansys toneIndigo
```

## Components

### Flight Loads

- [Flight Data](https://github.com/nomiez321000/ansys_scripts/tree/main/load_sfbm): `load_sfbm`
- [V-n Analysis](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/vn_diagram.m): `load_sfbm/matlab/vn_diagram.m`
- [Tail Loads](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/tail_load.m): `load_sfbm/matlab/tail_load.m`
- [SFBM Preprocessing](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/htp_sfbm.m): `load_sfbm/matlab/htp_sfbm.m`
- [Nodal Force Mapping](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/matlab/htp_nodal_forces.m): `load_sfbm/matlab/htp_nodal_forces.m`
- [APDL Load Cards](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/htp_loads_D_fwd_cfg1.inp): `load_sfbm/htp_loads_D_fwd_cfg1.inp`

### Parametric Model

- [Parametric HTP Model](https://github.com/nomiez321000/ansys_scripts/blob/main/HTP_PARAMETRIC.mac): `HTP_PARAMETRIC.mac`
- [Layout Configurations](https://github.com/nomiez321000/ansys_scripts/blob/main/HTP_PARAMETRIC.mac): `HTP_PARAMETRIC.mac`

### Verification Analysis

- [Model Verification](https://github.com/nomiez321000/ansys_scripts/blob/main/modal_analysis/VERIFY_MODAL.mac): `modal_analysis/VERIFY_MODAL.mac`
- [Verification Results](https://github.com/nomiez321000/ansys_scripts/blob/main/modal_analysis/result/STAGE3B_VERIFICATION_SUMMARY.txt): `modal_analysis/result/STAGE3B_VERIFICATION_SUMMARY.txt`
- [Load Visualization](https://github.com/nomiez321000/ansys_scripts/blob/main/RENDER_STATIC_LOADS.mac): `RENDER_STATIC_LOADS.mac`

### Design Extensions

- [Static and Buckling](https://github.com/nomiez321000/ansys_scripts/blob/main/load_sfbm/RUN_STAGE3C_BASELINE_MATRIX.mac): `load_sfbm/RUN_STAGE3C_BASELINE_MATRIX.mac`
- [Sensitivity and Sizing](https://github.com/nomiez321000/ansys_scripts/blob/main/optimization/RUN_STAGE3D_SIZING_OPT.mac): `optimization/RUN_STAGE3D_SIZING_OPT.mac`
- [Design Results](https://github.com/nomiez321000/ansys_scripts/blob/main/optimization/result/STAGE3D_FINAL_COMPARISON_TABLE.csv): `optimization/result/STAGE3D_FINAL_COMPARISON_TABLE.csv`

### Other components

- **Project Engineer**
- **ANSYS MAPDL**

## Connections

- Project Engineer → Flight Data: provides data (evidence: `README.md`)
- Flight Data → V-n Analysis: supports reconstruction (evidence: `README.md`)
- V-n Analysis → Tail Loads: informs load case (evidence: `README.md`)
- Tail Loads → SFBM Preprocessing: feeds preprocessing (evidence: `README.md`)
- SFBM Preprocessing → Nodal Force Mapping: maps loads (evidence: `README.md`)
- Nodal Force Mapping → APDL Load Cards: produces force cards (evidence: `README.md`)
- Project Engineer → Parametric HTP Model: runs model (evidence: `README.md`)
- Parametric HTP Model → Layout Configurations: generates layouts (evidence: `README.md`)
- Layout Configurations → ANSYS MAPDL: solves model (evidence: `README.md`)
- ANSYS MAPDL → Model Verification: enables verification (evidence: `README.md`)
- Model Verification → Verification Results: reports gates (evidence: `README.md`)
- APDL Load Cards → ANSYS MAPDL: applies flight loads (evidence: `README.md`)
- Project Engineer → Load Visualization: inspects loads (evidence: `README.md`)
- Model Verification → Static and Buckling: extends to analysis (evidence: `README.md`)
- Static and Buckling → Sensitivity and Sizing: guides optimization (evidence: `README.md`)
- Sensitivity and Sizing → Design Results: records results (evidence: `README.md`)
