OpenFOAM 14 — Guida 12: Trasporto di specie, diffusione e miscelazione
OpenFOAM 14 — Guide 12: Species transport, diffusion and mixing
========================================================================

IT  Questo archivio contiene tutti gli script e i file di dati riportati o citati
    nell'articolo di giux-lab.it, con lo stesso contenuto pubblicato nei riquadri.
    scripts/, examples/, ... : file del pacchetto originale della guida;
    extra/                   : script e file aggiuntivi presentati nei riquadri di approfondimento.
    I file indicati come SYNTHETIC sono dati illustrativi, non risultati CFD.
EN  This archive contains every script and data file reproduced or cited in the
    giux-lab.it article, with the same content published in the boxes.
    scripts/, examples/, ... : files of the original guide package;
    extra/                   : additional scripts and files presented in the deep-dive boxes.
    Files marked SYNTHETIC are illustrative data, not CFD results.

IMPORTANTE: dopo prepare_campaign.py e PRIMA di run_campaign.sh eseguire
  python3 extra/add_foamfile_header.py "$HOME/cases/guide12_species_01"
senza intestazione FoamFile OpenFOAM 14 ignora system/functions e il campo C non viene calcolato.
Per eseguire la campagna usare extra/run_campaign_fixed.sh al posto di scripts/run_campaign.sh:
la versione originale scrive RUN_COMPLETED anche quando un comando fallisce.

IMPORTANT: after prepare_campaign.py and BEFORE run_campaign.sh run
  python3 extra/add_foamfile_header.py "$HOME/cases/guide12_species_01"
without a FoamFile header OpenFOAM 14 ignores system/functions and the C field is never solved.
Run the campaign with extra/run_campaign_fixed.sh instead of scripts/run_campaign.sh:
the original version writes RUN_COMPLETED even when a command fails.

Requisiti / Requirements: OpenFOAM Foundation 14 on Linux; Python 3 (standard library) unless stated in the script.
Line endings: LF. Se si modificano gli script su Windows, salvarli con fine riga LF (Notepad++: Modifica > Conversione fine riga).
Licenza / Licence: script GNU GPL v3 or later (COPYING_GPLv3.txt). I tutorial OpenFOAM non sono inclusi:
gli script li copiano dall'installazione locale. / OpenFOAM tutorials are not bundled: the scripts copy them from the local installation.

Contenuto / Contents
------------------------------------------------------------------------
extra/add_foamfile_header.py
    Add the FoamFile header to system/functions in the Guide 12 case copies.
extra/front_metrics.py
    Front metrics from ParaView Plot Over Line exports (columns arc_length, C).
extra/functions_guide12
    system/functions file for OpenFOAM 14 (with FoamFile header)
extra/linearity_check.py
    Quantitative linearity test between A_reference and D_half_inlet.
extra/ogata_banks.py
    Analytic 1D advection-diffusion front (Ogata & Banks, 1961) for verification.
extra/rtd_moments.py
    Step-response (F-curve) analysis of the flow-weighted outlet tracer.
extra/run_campaign_fixed.sh
    corrected run script: stops at the first failed command and writes the success marker only when every step succeeds
extra/tracer_balance.py
    Tracer inventory balance from OpenFOAM function-object .dat files.
extra/tracer_estimates.py
    Order-of-magnitude estimates for the Guide 12 passive-tracer campaign.
sample_exports_SYNTHETIC/A_reference.csv
    SYNTHETIC / illustrative data, not CFD results (102 lines)
sample_exports_SYNTHETIC/B_low_diffusivity.csv
    SYNTHETIC / illustrative data, not CFD results (102 lines)
sample_exports_SYNTHETIC/C_high_diffusivity.csv
    SYNTHETIC / illustrative data, not CFD results (102 lines)
sample_exports_SYNTHETIC/D_half_inlet.csv
    SYNTHETIC / illustrative data, not CFD results (102 lines)
scripts/compare_profiles.py
    Compare ParaView Plot Over Line CSV exports using only the Python standard library.
scripts/prepare_campaign.py
    Prepare independent OpenFOAM Foundation 14 passive-tracer cases.
scripts/run_campaign.sh
    Run prepared cases one at a time, with per-stage logs and no silent restarts.

SHA-256
------------------------------------------------------------------------
fddbe7f7209dad18445ec7849828936046d0ed6eb8f5194fd70acace4f362f48  extra/add_foamfile_header.py
340838c518b0035caf8d6fe01fac31d1845bb1b972f7e4c4aa328941f72fe461  extra/front_metrics.py
d6923a26ed569385f345c15ff526dc964307cd370fd683d064c15e22c9e3ec74  extra/functions_guide12
524362a5db9bcf377e7e474cc9256d9701199c563dbaa39450ca998a6d3b8248  extra/linearity_check.py
4233490767e24cc997a5e0a1f23977eb38b3184836f2b80922ebb151d8635343  extra/ogata_banks.py
638d7e1ae44e0ce5158c9420fd1eb3cf39a0466722d8da15067b3dfd0c88290f  extra/rtd_moments.py
65428c5b79a7199a9257e6d6846cf760fdff79d2e9ff69354e3003024e6ff39b  extra/run_campaign_fixed.sh
bfa33fc4c2611ecc37360c9f4a94e2620667d2eb68e01df6df3ced90b61b5395  extra/tracer_balance.py
8814f1fcf653567d64a5c3d6b194f9ad6a75cd588466149ac3e5e2b68cf1cab8  extra/tracer_estimates.py
6be5b530075f5dd176bf081b4d6d016df334b62544c2e3ac94c821f4fd1d4930  sample_exports_SYNTHETIC/A_reference.csv
78535b0a6ab15144231aa6f85526e9cf556534ab0d9e154d8304bf101f09a816  sample_exports_SYNTHETIC/B_low_diffusivity.csv
290f068c1bae84db2a81c3bf8f2e4191049eee7bff806dae2e892b4e8db5a85d  sample_exports_SYNTHETIC/C_high_diffusivity.csv
be3eba420e5f7b0b36ddc98dd174d4549ec95427059436db87e2e12bc7d0c01c  sample_exports_SYNTHETIC/D_half_inlet.csv
4cbb5a1db45c171048e0ec3369aee3493c24192bf6a7f62a8367c795bbc7d4cf  scripts/compare_profiles.py
ce72dc2f0a7c35cf0ec12a11ddcd7661a9fb3fa563eba4c93f434d13466bb7c9  scripts/prepare_campaign.py
5c72d30de3d8132a1ad056d5a0bfe9a2c9aeb7d21f304acb065e35f558e03030  scripts/run_campaign.sh
