phynexis.utils
Utility module providing helper classes and functions for console logging, string manipulation, time measurement, signed distance fields, mesh I/O, sampling, math, and more.
Import
import phynexis
# Access submodule directly
phynexis.utils.info("hello")
# Or bind locally
from phynexis import utils
utils.info("hello")
Module Overview
| Class / Function | Description |
|---|---|
| Config | Console output configuration |
| debug / info / warning / error / fatal / plain | Logging functions |
| set_level / set_verbose / set_color | Console control functions |
| to_string | Numeric to string conversion |
| get_time_micros | High-resolution timestamp |
| MiniMapIdx64 | Lightweight index map |
| SDFCalculator | Signed distance field calculator |
| LevelSetField | Level set field representation |
| STLModel / read / read_off / write_off | 3D triangle mesh and mesh I/O |
| SurfaceMesh | Surface mesh struct |
| DataIO | Tabular data I/O |
| SaveOptions / LoadOptions / FileFormat | File save/load options and format resolution |
| format_from_extension / format_from_path / join_path_file | File format and path utilities |
| Voronoi | Voronoi tessellation (Tessellation / Diagram) |
| Cork | Boolean mesh operations (CorkWrapper) |
| OpenMP / parallel | Thread control bindings |
| FPE Traps | Floating-point exception trap utilities |
| Vec2d/Vec2i/Vec3d/Vec3i/Vec4d/Vec4i/Vec6d | Fixed-size vectors |
| Mat2d/Mat3d | Fixed-size matrices |
| FlatHashMap | Flat hash map |
| Shape | Geometric shapes (Sphere, Cuboid, Ellipsoid, Cylinder, ...) |
| math | Math constants, vector ops, quaternion |
| sampling | Distribution, spatial, orientation, spherical sampling |
| vtk | VTK file I/O and conversion |
| wrappers | Cork, CGAL, Eigen, igl, TetGen wrappers with MPI utilities |
C++ Namespace
phynexis::utils
pybind Module
pyutils (lazy-loaded via phynexis.utils)
See also
- Manual home — installation, basic usage, CFD–DEM, visualization
- Python API overview — submodule map and coverage notes
- phynexis.fields — field types and layouts
- Deprecated flat references — legacy v0 pages