Lossless gzip compression for LS-DYNA d3plot binary result files
Project description
d3plot-compress
Lossless gzip compression for LS-DYNA d3plot binary result files.
Compressed files are read directly by BETA CAE META post-processor — no manual decompression needed before viewing animations.
Install
pip install d3plot-compress
Usage
Command line
# Compress all d3plot files in a folder (replaces originals with .gz)
d3plot-compress compress /path/to/results
# Compress but keep originals
d3plot-compress compress /path/to/results --keep-original
# Use maximum compression (slower but smallest size)
d3plot-compress compress /path/to/results --level 9
# Decompress (if you need raw files for a tool that doesn't support .gz)
d3plot-compress decompress /path/to/results
Python API
from d3plot_compress import compress_folder, decompress_folder
# Compress
compress_folder("/path/to/results")
# Decompress
decompress_folder("/path/to/results")
How it works
LS-DYNA writes results as a sequence of binary files:
d3plot ← header + first state
d3plot01 ← subsequent time steps
d3plot02
...
This tool compresses each file individually using gzip (lossless), producing:
d3plot.gz
d3plot01.gz
d3plot02.gz
...
BETA CAE META post-processor recognises the .gz extension and decompresses on-the-fly, so animations play exactly as with the original files.
Options
| Flag | Description |
|---|---|
--level 1-9 |
Compression level (1=fastest, 9=smallest, default=6) |
--keep-original |
Keep uncompressed files alongside .gz |
--keep-compressed |
(decompress) Keep .gz alongside restored files |
--quiet |
Suppress progress output |
Requirements
- Python 3.10+
- No external dependencies (uses Python's built-in
gzipmodule)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file d3plot_compress-0.1.0.tar.gz.
File metadata
- Download URL: d3plot_compress-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e722aeacc47d68b2156612455270f8e7e0bee96ef83b727d5aa74ad3d411553a
|
|
| MD5 |
ccd60f1d282eee44a374da4d2915c882
|
|
| BLAKE2b-256 |
3de5c2ad8b378bbf69b5aa021aa2d421c0f650a90f5dc1552fdd6702e5da3453
|
File details
Details for the file d3plot_compress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: d3plot_compress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8065522242a6852915e0b4629e4ef538f602fb64f6136ba7df22fdaba9788f1b
|
|
| MD5 |
25ed8e23e877281fffa81923b73cd1ec
|
|
| BLAKE2b-256 |
446b1dc45c4fdc811426302ef2c6c4bf519c3b9b02cd9d7def3bdf467e9db131
|