This repository contains a MATLAB-based simulation framework for modeling the thermodynamic and mass transfer behavior of liquid hydrogen (LH₂) refueling processes. It supports bottom-fill, top-fill, and pump-based transfer methods with detailed physics including venting, heat transfer, and condensation dynamics.
- Modular and extensible 0D simulation framework
- Two-tank system (supply and receiver)
- Models wall-fluid and interface heat transfer
- Supports top-fill splash cooling and subcooled jet modeling
- Integrates CoolProp (via Python) for accurate hydrogen properties
- Results exportable to .txt/.xls format with automatic logging
- Generates plots for pressure, temperature, mass flow, venting
STM_Main.m: Main script to run simulationsSTM_Parameters_*.m: Define parameter sets (Pump, Top-fill, etc.)STM_Simulation_*.m: Simulation scripts for each configurationSTM_Plots.m: Visualization tool for key outputsSTM_Initialization.m: Initializes variables and vectorsSubcooledJet_ConvCoeff.m: Computes h for splash-cooling jetsVentFlow.m: Models venting flow rate
- Set up parameters in one of the
STM_Parameters_*.mfiles. - Run
STM_Main.m. - View plots and results in the output folder.
- MATLAB
- CoolProp (accessed via Python integration)
This project is licensed under the GPL-3.0 License.
- Albert Gil, University of California, Irvine (PhD Research)