High-order curved mesh export from Coreform Cubit to NGSolve/Netgen
Project description
cubit-mesh-export
High-order curved mesh export from Coreform Cubit to NGSolve/Netgen.
Features
- Arbitrary-order curving (order 1-5) via ACIS geometry projection
- Label preservation: material (block), boundary (sideset), edge (BBND)
- Companion JSON: CAD reference values for Volume/Area/Length consistency checking
- Standalone checker: verify mesh quality without Cubit (
check-volCLI)
Install
pip install cubit-mesh-export
Usage
Export (requires Cubit)
import netgen # must import before cubit
import ngsolve
import cubit
cubit.init(['cubit', '-nojournal', '-batch'])
cubit.cmd('open "model.cub5"')
from cubit_mesh_export import extract_curved_mesh
ng_mesh = extract_curved_mesh(cubit, order=3)
ng_mesh.Save("model.vol")
Check (does NOT require Cubit)
check-vol model.vol
from cubit_mesh_export.check import check_consistency
results = check_consistency("model.vol")
Part of the Radia project
Source: github.com/ksugahar/Radia
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 Distributions
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 cubit_mesh_export-0.3.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cubit_mesh_export-0.3.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 470.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5a80c2c986cca5a50ace96578a1d06b3cd918d916f5af53cec110caefc0e8db
|
|
| MD5 |
ee8483d9813215f029f9ad8aa1365a70
|
|
| BLAKE2b-256 |
3eb1f13593b0aad5e659918e5a54a8c8ad878f0c88d187d5672dab2876c72a4f
|
Provenance
The following attestation bundles were made for cubit_mesh_export-0.3.0-cp312-cp312-win_amd64.whl:
Publisher:
release-cubit-mesh-export.yml on ksugahar/Radia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cubit_mesh_export-0.3.0-cp312-cp312-win_amd64.whl -
Subject digest:
b5a80c2c986cca5a50ace96578a1d06b3cd918d916f5af53cec110caefc0e8db - Sigstore transparency entry: 1244702782
- Sigstore integration time:
-
Permalink:
ksugahar/Radia@5c6465b9705e51460b4aa6b21aaeba48725c398e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ksugahar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-cubit-mesh-export.yml@5c6465b9705e51460b4aa6b21aaeba48725c398e -
Trigger Event:
workflow_run
-
Statement type: