# Space Thermal Analysis with Ansys APDL — script pack

All models use a coherent **m–kg–s–K–W** unit system and are intended for
Mechanical APDL 2024 R1 or later. Run each file from a clean working directory.

| File | Purpose |
|---|---|
| `00_first_run.mac` | Minimal 3D conduction model and first verified run |
| `05_steady_conduction.mac` | PCB–pad–chassis model with perfect interfaces |
| `07_thermal_contact.mac` | Pure thermal `CONTA174/TARGE170` pairs and `TCC` |
| `08_shell_pcb.mac` | `SHELL131`, `SECTYPE`, `SECDATA` and `SECNUM` |
| `09_space_radiation.mac` | `SURF152` radiation to a deep-space node |
| `10_transient.mac` | Power step and time-step sensitivity scaffold |
| `11_master_model.mac` | Integrated steady and transient course project |

The M05, M07, M10 and M11 scripts also export publication-ready PNG evidence.
Regenerate every plot and revalidate all seven models from the repository root:

```powershell
powershell -ExecutionPolicy Bypass -File scripts\generate-thermal-apdl-space-plots.ps1
```

The scripts are educational reference models, not qualification models. Review
material data, optical properties, contact conductance, orbital loads and
boundary conditions for every real application.

## Batch validation on Windows

From the repository root, run:

```powershell
powershell -ExecutionPolicy Bypass -File scripts\validate-thermal-apdl-space.ps1
```

If auto-detection does not find the Student executable, pass it explicitly:

```powershell
powershell -ExecutionPolicy Bypass -File scripts\validate-thermal-apdl-space.ps1 `
  -AnsysExe "C:\Program Files\ANSYS Inc\ANSYS Student\v261\ansys\bin\winx64\ANSYS261.exe"
```

The runner creates `.tmp\thermal-apdl-space-validation\validation-summary.csv`
and one isolated directory per model. Publication requires seven passing rows;
warnings still require engineering review even when a case passes.
