polyfoammesh.commercial.mosaic
Polyhedral conversion via cfMesh polyDualMesh.
Runs cfMesh’s polyDualMesh over the whole hex-dominant mesh,
converting every cell to an arbitrary polyhedron (a dual-mesh
operation). Despite the historical “Mosaic” name, this is NOT a
Star-CCM+ Mosaic-style mesher: there is no hex core, no conformal
polyhedral transition cap layer and no interface detection — the
entire mesh is converted in place.
- Pipeline:
Count hex cells before conversion
polyDualMesh 90 -overwrite over the whole mesh
Count poly cells after conversion
Estimate a volume-ratio proxy (checkMesh max/min volume, else heuristic)
Classes
|
PolyDualMesh conversion engine (historically named "Mosaic"). |
|
Parameters controlling the polyDualMesh conversion. |
|
- class polyfoammesh.commercial.mosaic.MosaicParams(n_smoothing_iterations=3, volume_ratio_target=8.0, preserve_original=True, poly_dual_aggregation=True)[source]
Bases:
objectParameters controlling the polyDualMesh conversion.
- Parameters:
- class polyfoammesh.commercial.mosaic.MosaicResult(success=False, case_dir='', hex_cells=0, poly_cells=0, cell_reduction_pct=0.0, volume_ratio=0.0, warnings=<factory>, errors=<factory>, wall_time_seconds=0.0)[source]
Bases:
object- Parameters:
- class polyfoammesh.commercial.mosaic.MosaicEngine(of_config=None)[source]
Bases:
objectPolyDualMesh conversion engine (historically named “Mosaic”).
Converts the whole hex-dominant mesh to polyhedral via cfMesh’s polyDualMesh. The “Mosaic” name is historical — this is not a Star-CCM+ Mosaic-style mesher.
Usage:
me = MosaicEngine(of_config) me.set_case_dir("path/to/case") result = me.run()
- Parameters:
of_config (OFConfig | None)
- set_params(params)[source]
- Return type:
- Parameters:
params (MosaicParams)