Skip to main content

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 .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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vcti_dataspace_nastran_h5-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file vcti_dataspace_nastran_h5-1.0.0.tar.gz.

File metadata

File hashes

Hashes for vcti_dataspace_nastran_h5-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e87db5870d60cf702b3b1cb04341b89d51f1044628d82b4e7248a6e8c7e6e2f
MD5 6f77426b460792fe0cb3756f38793b8e
BLAKE2b-256 ecdf6bcdb4c304818c18d227b701134303593e87e05f4d3343be6c5024086b49

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vcti_dataspace_nastran_h5-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e271e79152dcbd438e1366dc6cc24bdc8662356f7c33723ac16423028c070707
MD5 7d463036cbfe9eba4574b86255f72ee6
BLAKE2b-256 ca920a38f4629f2abce1c5ff37f19556291516eb3c3274df53c2fbfc8eab54b4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page