Skip to main content

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 .h5 file for direct dataset, group, and attribute access by HDF5 path.
  • NastranSolutionFolder — scans a directory for .h5 files 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

Metadata

Release files for vcti-dataspace-nastran-h5 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vcti-dataspace-nastran-h5 1.0.0
File Size Uploaded
vcti_dataspace_nastran_h5-1.0.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vcti-dataspace-nastran-h5 1.0.0
File Interpreter ABI Platform
vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / vcti_dataspace_nastran_h5-1.0.0.tar.gz

Download URL vcti_dataspace_nastran_h5-1.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0e87db5870d60cf702b3b1cb04341b89d51f1044628d82b4e7248a6e8c7e6e2f
BLAKE2b-256 checksum
How to use checksums
ecdf6bcdb4c304818c18d227b701134303593e87e05f4d3343be6c5024086b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2026.

Transparency log

Release files / vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl

Download URL vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e271e79152dcbd438e1366dc6cc24bdc8662356f7c33723ac16423028c070707
BLAKE2b-256 checksum
How to use checksums
ca920a38f4629f2abce1c5ff37f19556291516eb3c3274df53c2fbfc8eab54b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page