Converge to USD Model
Converge CFD post files to the VCollab USD model stage: streams as component groups and slabs, boundary surfaces triangulated as atoms, parcels as a point component, cell and parcel variables as fields under a selectable averaging rule, and one frame per file on the time or crank-angle axis the run records
Overview
A Converge run leaves one HDF5 post file per output step, each holding
polyhedral streams with named boundaries, cell-centered variables and
parcels. The VCollab model stage is the USD stage the server builds for
one model and projects into the viewer protocol: renderer-ready surfaces,
fields with one value per point, and result frames. This package is the
converter between the two. It reads the run through
vcti-reader-converge-h5, decides how each Converge thing becomes a
model thing, writes the stage with the authoring helpers of
vcti-usd-schema-model, and checks the result with that package's
validator before returning.
What the stage holds, for a run with streams 00 and 01:
| Converge | Model |
|---|---|
Stream 00 |
Assembly hierarchy/Stream_00 |
| Its boundaries | Occurrence Stream_00/Boundaries, one VctComponent per boundary, one atom each |
| Its parcels | Occurrence Stream_00/Parcels, one component, present only when some file has parcels |
| Boundary faces | Triangles and lines on one slab, vertices compacted per boundary, normals computed |
| A cell variable | A VctField with vct:sourceAssociation = cell and the mapping rule used |
| A parcel variable | A VctField named Parcel_…, values as read |
| A post file | A VctFrame under frames/steps with its OUTPUT_TIME as physical time or crank angle |
| A mesh change | Another member of the occurrence's VctMeshSequence; unchanged files reuse the member |
| Every array | Bytes in buffers/ beside the stage, located through VctBufferAPI |
Installation
pip install vcti-usd-model-converge-h5
In requirements.txt
vcti-usd-model-converge-h5>=0.2.0
In pyproject.toml dependencies
dependencies = [
"vcti-usd-model-converge-h5>=0.2.0",
]
Quick Start
The snippets below use the synthetic post file the reader package ships, laid out as a real one is. Replace the glob with real files and nothing else changes.
Convert a run
from vcti.reader.converge.h5 import write_synthetic
from vcti.usd.model.converge.h5 import convert
for step, time in ((1, 1.0e-3), (2, 2.0e-3), (3, 3.0e-3)):
write_synthetic(f"post{step:06d}.h5", output_time=time)
path = convert("post*.h5", "stage/model.usda", mapping="averagedAll")
print(path)
The files are found, probed and ordered by the output time each records.
The stage is validated before convert returns; a stage that fails is a
bug, and the failures come back in the exception's message.
Look at what was written
from vcti.usd.schema.model import open_stage
stage = open_stage(path)
for assembly in stage.GetPrimAtPath("/Model/hierarchy").GetChildren():
for occurrence in assembly.GetChildren():
group = occurrence.GetChildren()[0]
print(assembly.GetName(), occurrence.GetName(), [c.GetName() for c in group.GetChildren()])
for frame in stage.GetPrimAtPath("/Model/frames/steps").GetChildren():
print(frame.GetName(), frame.GetAttribute("vct:physicalTime").Get())
print([f.GetName() for f in stage.GetPrimAtPath("/Model/fields").GetChildren()])
A boundary called walls (ID = 1) becomes the component walls_ID_1; its
original name and Converge id are on the component as attr:name and
attr:boundaryId.
Choose how cell values reach the points
from vcti.usd.model.converge.h5 import MAPPINGS
print(MAPPINGS)
convert("post*.h5", "flat/model.usda", mapping="unaveraged")
mapping |
One value per point is | Points |
|---|---|---|
averagedAll (default) |
the mean of every cell touching the point's stream vertex, through interior faces too | one per boundary and vertex |
averagedWithinComponent |
the mean of the cells behind the point's own boundary's faces at that vertex | one per boundary and vertex |
unaveraged |
the cell behind the face; every face corner is its own point, so faces shade flat | one per face corner |
Vertices on two boundaries are duplicated under every rule, because each boundary is an atom and the schema wants one atom per point. The rule only decides what each copy carries. The token is recorded on every field and in its provenance.
Name the quantities
Post files carry no units. A table keyed by variable name supplies the quantity and units; the default covers pressure, velocity, temperature, density and a few more, and yours extends or overrides it.
convert(
"post*.h5",
"bar/model.usda",
quantities={"PRESSURE": ("pressure", "bar"), "IDREG": ("regionId", "1")},
)
The pieces on their own
from vcti.reader.converge.h5 import ConvergeH5Reader
from vcti.usd.model.converge.h5 import CellToPoint, extract_surface
with ConvergeH5Reader("post000001.h5") as post:
stream = post.stream("00")
surface = extract_surface(stream)
rule = CellToPoint("averagedAll", surface, stream)
pressure = rule.apply(stream.cell_values("PRESSURE"))
print(surface.num_points, surface.triangles.shape, pressure.shape)
Key API
| Name | Role |
|---|---|
convert(sources, output, *, mapping, quantities, parcels, check) |
The whole run to a validated stage; returns the root layer path |
MAPPINGS, AVERAGED_ALL, AVERAGED_WITHIN_COMPONENT, UNAVERAGED |
The cell-to-point rules |
extract_surface(stream, per_face) → Surface |
A stream's boundary faces as points, normals, atom ids, triangles and lines |
CellToPoint(rule, surface, stream).apply(values) |
A rule prepared once per mesh version, applied per variable |
field_spec(variable, family, association, mapping, quantities) |
What a variable becomes as a field; DEFAULT_QUANTITIES is the built-in table |
StageWriter |
The authoring layer: assemblies, occurrences, versions, frames, fields, located arrays |
prim_name, unique_names, stream_name |
Converge labels as prim names |
Performance
A real file with thirteen million faces converts in about forty seconds per step on a laptop: a third extracting the surface, a third preparing the averaging incidence, a third mapping some twenty variables. Buffers for such a step are about half a gigabyte. Everything is numpy; nothing is compiled.
Dependencies
numpyvcti-reader-converge-h5, which finds and opens the post files.vcti-usd-schema-model, which defines the stage this package writes, provides the authoring helpers, and validates the result. It bringsusd-core.
Documentation
| If you want to… | Read |
|---|---|
| Get started using the package | Quick Start above |
| Understand why the stage looks the way it does | docs/design.md |
| Find your way around the source | docs/source-guide.md |
| See what changed | CHANGELOG.md |
Metadata
Release files for vcti-usd-model-converge-h5 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vcti_usd_model_converge_h5-0.2.0.tar.gz | 37.2 kB | With provenance | Details for vcti_usd_model_converge_h5-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vcti_usd_model_converge_h5-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for vcti_usd_model_converge_h5-0.2.0-py3-none-any.whl |
Total release size: 60.9 kB
Release files / vcti_usd_model_converge_h5-0.2.0.tar.gz
| Download URL | vcti_usd_model_converge_h5-0.2.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ab5548ecd054085b18b43e7d3ef789a58c7ea91800edffbb4ea765e4c96713e
|
|
BLAKE2b-256 checksum How to use checksums |
bf1804b3e52c5c4556cff95f0313d696ca370481019a6b58772544b493f7cdbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logRelease files / vcti_usd_model_converge_h5-0.2.0-py3-none-any.whl
| Download URL | vcti_usd_model_converge_h5-0.2.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89fd863032d8d19ec27fe7285fec0e26c07718d63eeade0a679cfe2144a4faa4
|
|
BLAKE2b-256 checksum How to use checksums |
8c104873488a26608d6c93733a4c26c618fb1e3776f9cc2676beab74abba96c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 15, 2026.
Transparency logSecurity for vcti-usd-model-converge-h5 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vcti_usd_model_converge_h5-0.2.0.tar.gz
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 Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.