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

Detailed Description

Python cli for ThinCurr hole construction using homology computations.

See thincurr_homology_tool

Authors
Chris Hansen
Date
July 2026

Classes

class  trimesh

Functions

 compute_greedy_homotopy_basis (face, vertex, bi, face_sweight=None)
 compute_homology (in_file, out_file=None, plot_final=False, plot_steps=False, show_omitted=False, show_covering=False, debug=False, ref_point=None, optimize_holes=False, verify_only=False)
 Compute holes and closures for ThinCurr meshes using a Greedy Homotopy approach.
 fixup_loop (cycle, mesh, boundary_cycles, debug)
 script_entry ()
 Command line interface for computing holes and closures for ThinCurr meshes using a Greedy Homotopy approach.
 update_svd_with_row (U, S, V_T, new_row)

Variables

str indent_level = ''
 tri_ed = np.asarray([[2,1], [0,2], [1,0]])

Function Documentation

◆ compute_greedy_homotopy_basis()

compute_greedy_homotopy_basis ( face,
vertex,
bi,
face_sweight = None )
Compute the single-point Homotopy basis using the greedy method
of Erickson and Whittlesey

◆ compute_homology()

compute_homology ( in_file,
out_file = None,
plot_final = False,
plot_steps = False,
show_omitted = False,
show_covering = False,
debug = False,
ref_point = None,
optimize_holes = False,
verify_only = False )

Compute holes and closures for ThinCurr meshes using a Greedy Homotopy approach.

Parameters
in_fileInput mesh file
out_fileOuput mesh file (default: Input file name with "-homology" appended)
plot_finalShow final homology basis?
plot_stepsShow intermediate bases for each distinct surface?
show_omittedShow boundary cycles that are omitted?
show_coveringShow covering triangles for boundary cycles (only used if plot_steps)?
debugPrint additional debug information?
ref_pointReference location for base point [x,y,z] (default: [0,0,0])
optimize_holesSample additional points to attempt to optimize holes?
verify_onlyVerify the correct number of holes and closures are found, but do not write output file?

◆ fixup_loop()

fixup_loop ( cycle,
mesh,
boundary_cycles,
debug )
 Fix up vertex chain by replacing paths that cross the boundary and performing some simplification

◆ script_entry()

script_entry ( )

Command line interface for computing holes and closures for ThinCurr meshes using a Greedy Homotopy approach.

See OFT_ThinCurr_holes: ThinCurr hole/closure script

◆ update_svd_with_row()

update_svd_with_row ( U,
S,
V_T,
new_row )
Updates SVD (U, S, V_T) when a new row is appended to the matrix.
Assumes matrix shape is (m, n) where rows are added.

Variable Documentation

◆ indent_level

str indent_level = ''

◆ tri_ed

tri_ed = np.asarray([[2,1], [0,2], [1,0]])