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
- Cubit plugin:
radia_export netgen/gmsh/nastran/vtkAPREPRO commands + Export Mesh GUI - 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
cubit-plugin-install
The second command deploys the plugin binaries (.ccm, .ccl, .pyd) to your Coreform Cubit installation.
Upgrade
pip install --upgrade cubit-mesh-export
cubit-plugin-install
Always run cubit-plugin-install after upgrading to deploy the new binaries.
Usage
Cubit commands (recommended)
After installation, these commands are available in Cubit:
radia_export netgen "model.vol" order 3 overwrite # NGSolve FEM (.vol)
radia_export gmsh "model.msh" order 2 version 2 overwrite # GMSH v2.2
radia_export gmsh "model.msh" order 2 version 4 overwrite # GMSH v4.1
radia_export nastran "model.bdf" order 2 overwrite # Nastran BDF
radia_export vtk "model.vtk" order 2 overwrite # VTK Legacy
Or use the Export Mesh menu in the Cubit GUI.
Python API (for scripting / verification)
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 # basic check
check-vol model.vol --json model.vol.json # compare vs CAD values
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.5.5-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cubit_mesh_export-0.5.5-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 535.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fae2fe6f7d0a49b233d614de1a612528df425028bce961fbc70a8bd13837f7e
|
|
| MD5 |
e50605dc26cbe5a1483ffa03fe564d29
|
|
| BLAKE2b-256 |
1e44921303193fa3ed4fc6f2eff3f88407c24f75c355898015f8de0523dd98fd
|
Provenance
The following attestation bundles were made for cubit_mesh_export-0.5.5-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.5.5-cp312-cp312-win_amd64.whl -
Subject digest:
2fae2fe6f7d0a49b233d614de1a612528df425028bce961fbc70a8bd13837f7e - Sigstore transparency entry: 1293571786
- Sigstore integration time:
-
Permalink:
ksugahar/Radia@e39ab50ff951dd19b9c6cfd2f89bbac026537b56 -
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@e39ab50ff951dd19b9c6cfd2f89bbac026537b56 -
Trigger Event:
workflow_run
-
Statement type: