The Open FUSION Toolkit 26.9
An open-source framework for fusion and plasma science and engineering
Loading...
Searching...
No Matches
OpenFUSIONToolkit._cubit_cli Namespace Reference

Detailed Description

Python cli for Cubit to native Open FUSION Toolkit mesh conversion.

See OFT_convert_cubit: Cubit to native Open FUSION Toolkit mesh conversion

Authors
Chris Hansen
Date
July 2026

Functions

 convert_cubit_to_native (in_file, out_file=None, periodic_nodeset=None, ignore_attr=False)
 Convert Cubit (exodus) mesh to native Open FUSION Toolkit mesh.
 read_mesh (filename, ignore_attrs)
 script_entry ()
 Command line interface for Cubit (exodus) to native Open FUSION Toolkit mesh conversion.

Variables

dict element_type_map
 hex_ed_map
 hex_face_map
 quad_ed_map
 tet_ed_map
 tri_ed_map

Function Documentation

◆ convert_cubit_to_native()

convert_cubit_to_native ( in_file,
out_file = None,
periodic_nodeset = None,
ignore_attr = False )

Convert Cubit (exodus) mesh to native Open FUSION Toolkit mesh.

Parameters
in_fileInput mesh file
out_fileOutput mesh file (optional, default is in_file with .h5 extension)
periodic_nodesetIndex of periodic nodeset (optional)
ignore_attrIgnore block attributes (optional)

◆ read_mesh()

read_mesh ( filename,
ignore_attrs )

◆ script_entry()

script_entry ( )

Command line interface for Cubit (exodus) to native Open FUSION Toolkit mesh conversion.

See OFT_convert_cubit: Cubit to native Open FUSION Toolkit mesh conversion

Variable Documentation

◆ element_type_map

dict element_type_map
Initial value:
= {
'TRI3': {'dim': 2, 'ncp': 3, 'ncp_lin': 3, 'type': 'TRI_p1', 'ed_map': tri_ed_map},
'TRI6': {'dim': 2, 'ncp': 6, 'ncp_lin': 3, 'type': 'TRI_p2', 'ed_map': tri_ed_map},
'QUAD4': {'dim': 2, 'ncp': 4, 'ncp_lin': 4, 'type': 'QUAD_p1', 'ed_map': quad_ed_map},
'QUAD9': {'dim': 2, 'ncp': 9, 'ncp_lin': 4, 'type': 'QUAD_p2', 'ed_map': quad_ed_map, 'cellpoint': True},
'TETRA4': {'dim': 3, 'ncp': 4, 'ncp_lin': 4, 'type': 'TET_p1', 'ed_map': tet_ed_map},
'TETRA10': {'dim': 3, 'ncp': 10, 'ncp_lin': 4, 'type': 'TET_p2', 'ed_map': tet_ed_map},
'HEX8': {'dim': 3, 'ncp': 8, 'ncp_lin': 8, 'type': 'HEX_p1', 'ed_map': hex_ed_map, 'face_map': hex_face_map},
'HEX27': {'dim': 3, 'ncp': 27, 'ncp_lin': 8, 'type': 'HEX_p2', 'ed_map': hex_ed_map, 'face_map': hex_face_map, 'cellpoint': True}
}

◆ hex_ed_map

hex_ed_map

◆ hex_face_map

hex_face_map
Initial value:
= np.array([
[0,1,2,3],
[4,5,6,7],
[0,3,7,4],
[1,2,6,5],
[0,1,5,4],
[2,3,7,6]
])

◆ quad_ed_map

quad_ed_map
Initial value:
= np.array([
[0,1],
[1,2],
[2,3],
[3,0]
])

◆ tet_ed_map

tet_ed_map
Initial value:
= np.array([
[0,1],
[1,2],
[0,2],
[0,3],
[1,3],
[2,3]
])

◆ tri_ed_map

tri_ed_map
Initial value:
= np.array([
[0,1],
[1,2],
[2,0]
])