Downloads · 30 days
0
scraed/LinearHydrodynamicClosure
LinearHydrodynamicClosure is a machine learning model from scraed. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as other.
Code for generating spectral and time-evolution comparisons used in the paper Learning the Optimal Linear Hydrodynamic Closure. The main entry point is Run.py.
Downloads · 30 days
0
Access
Public
Updated Mar 18, 2026
Repo size
9.1 GB
Likes
0
Public
Click a slice to open those files.
.npz9 GB · 99%
From the Hugging Face model README
Code for generating spectral and time-evolution comparisons used in the paper Learning the Optimal Linear Hydrodynamic Closure. The main entry point is Run.py.
DSMC3ModelsExp/DSMC3LearnModelFull6.ptspectraV1_225_50_50_250000_5e_06_0_005_1_0_1_0.npz and Boltzmann3_macro_values_Adapt_FullExp.pkl.Create a fresh environment and install the dependencies:
conda create -n nc-code python=3.11
conda activate nc-code
pip install -r requirements.txt
If you prefer, you can use venv instead of Conda.
Before running Run.py, make sure these files are present:
spectraV1_225_50_50_250000_5e_06_0_005_1_0_1_0.npzBoltzmann3_macro_values_Adapt_FullExp.pklDSMC3ModelsExp/DSMC3LearnModelFull6.ptRun from the repository root:
python Run.py
The script loads the precomputed data and trained model, then writes:
spectra.pngdynamics.pngRun.py uses relative paths, so run it from the repository root.jax and torch may need platform-specific installation steps on some systems.