Nastran HDF5 data space — solution file navigation, modal data extraction, and result access for MSC.Nastran H5 output files
Project description
DataSpace Nastran H5
Nastran HDF5 data space — solution file navigation, modal data extraction, and result access for MSC.Nastran H5 output files.
Overview
MSC.Nastran writes simulation results (eigenvalues, modal participation factors,
displacements, etc.) into HDF5 (.h5) output files with a standard hierarchical
structure rooted at NASTRAN/RESULT/. This library provides read-only access to
those files, wrapping h5py to navigate the Nastran HDF5 hierarchy and extract
datasets as NumPy arrays.
Two main classes cover different levels of access:
- NastranH5File — opens a single
.h5file for direct dataset, group, and attribute access by HDF5 path. - NastranSolutionFolder — scans a directory for
.h5files and provides dataset retrieval by logical type (e.g.,{"type": "modes"}).
Installation
pip install vcti-dataspace-nastran-h5>=1.0.0
Quick Start
from pathlib import Path
from vcti.dataspace_nastran_h5 import NastranH5File, NastranSolutionFolder
# Direct H5 file access
with NastranH5File(Path("sol103.h5")) as h5:
tables = h5.get_modal_tables()
mpf = h5.get_modal_participation_factors()
eigenvalues = h5.get_dataset("NASTRAN/RESULT/MODAL/EIGENVALUE")
# Solution folder access
with NastranSolutionFolder(Path("sol103_results/")) as folder:
data = folder.get_dataset({"type": "modes"})
Core API
NastranH5File
| Method | Description |
|---|---|
get_modal_tables() |
List modal tables under NASTRAN/RESULT/MODAL |
get_modal_participation_factors() |
Get modal participation factor data |
get_dataset(path) |
Get any dataset by HDF5 path |
get_group_keys(path) |
List keys in an HDF5 group |
get_attributes(path) |
Get HDF5 attributes |
is_valid |
Check if file is open |
close() |
Close the file |
NastranSolutionFolder
| Method | Description |
|---|---|
get_dataset(dsattr) |
Get dataset by type (e.g., {"type": "modes"}) |
get_modal_tables() |
List modal tables from H5 file |
list_h5_files() |
List all H5 files in the folder |
h5_file |
The active NastranH5File (read-only property) |
is_valid |
Check if folder has a valid H5 file |
close() |
Close the H5 file |
Both classes support context managers (with statement).
Dependencies
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 vcti_dataspace_nastran_h5-1.0.0.tar.gz.
File metadata
- Download URL: vcti_dataspace_nastran_h5-1.0.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e87db5870d60cf702b3b1cb04341b89d51f1044628d82b4e7248a6e8c7e6e2f
|
|
| MD5 |
6f77426b460792fe0cb3756f38793b8e
|
|
| BLAKE2b-256 |
ecdf6bcdb4c304818c18d227b701134303593e87e05f4d3343be6c5024086b49
|
Provenance
The following attestation bundles were made for vcti_dataspace_nastran_h5-1.0.0.tar.gz:
Publisher:
publish.yml on vcollab/vcti-python-dataspace-nastran-h5
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcti_dataspace_nastran_h5-1.0.0.tar.gz -
Subject digest:
0e87db5870d60cf702b3b1cb04341b89d51f1044628d82b4e7248a6e8c7e6e2f - Sigstore transparency entry: 1194099138
- Sigstore integration time:
-
Permalink:
vcollab/vcti-python-dataspace-nastran-h5@9e1211d4288f27c742a029b51d63b86101ae2ae7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vcollab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e1211d4288f27c742a029b51d63b86101ae2ae7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e271e79152dcbd438e1366dc6cc24bdc8662356f7c33723ac16423028c070707
|
|
| MD5 |
7d463036cbfe9eba4574b86255f72ee6
|
|
| BLAKE2b-256 |
ca920a38f4629f2abce1c5ff37f19556291516eb3c3274df53c2fbfc8eab54b4
|
Provenance
The following attestation bundles were made for vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on vcollab/vcti-python-dataspace-nastran-h5
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl -
Subject digest:
e271e79152dcbd438e1366dc6cc24bdc8662356f7c33723ac16423028c070707 - Sigstore transparency entry: 1194099168
- Sigstore integration time:
-
Permalink:
vcollab/vcti-python-dataspace-nastran-h5@9e1211d4288f27c742a029b51d63b86101ae2ae7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vcollab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e1211d4288f27c742a029b51d63b86101ae2ae7 -
Trigger Event:
workflow_dispatch
-
Statement type: