Skip to main content

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-vol CLI)

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


Download files

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

Source Distribution

cubit_mesh_export-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

cubit_mesh_export-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cubit_mesh_export-0.1.0.tar.gz.

File metadata

  • Download URL: cubit_mesh_export-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cubit_mesh_export-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0993f20629ef364d413a485de82c29116a2b63c81ac0ce73653ba4c9e33923a
MD5 fceb975a14602152aaed5b054abcbd33
BLAKE2b-256 9909eb16c273c3e2a41b02f26121209c4dc6301f352a1e8899b0d1098cbbe80e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cubit_mesh_export-0.1.0.tar.gz:

Publisher: release-cubit-mesh-export.yml on ksugahar/Radia

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

File details

Details for the file cubit_mesh_export-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubit_mesh_export-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0481f2327fc9fb8e39096f354aa1b73e243108aff1a9fea42e69ebacca533350
MD5 187fc9a8b9bf756e5471848de6260710
BLAKE2b-256 2fa1f7c2e6e596bf05023317e251cb299d98ff08c4041da3bb69815752df651c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cubit_mesh_export-0.1.0-py3-none-any.whl:

Publisher: release-cubit-mesh-export.yml on ksugahar/Radia

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