pofff.utils.mapproperties module
Utility functions for grid generation and spatial indexing in geological FluidFlower-style models.
- pofff.utils.mapproperties.classify_boxes(cfg, x, z, flux)
Assign box-specific FIP numbers based on spatial regions.
- pofff.utils.mapproperties.corner(cfg, points)
Build corner-point grid coordinates and compute cell centroids.
- pofff.utils.mapproperties.corner_point_handling_fluidflower(cfg, xyz, polygons)
Assign facies, boxes, sensors, and wells for corner-point grids.
- pofff.utils.mapproperties.get_cellmaps(cfg, simxcent, simzcent)
Construct mapping from structured grid to reference grid.
- pofff.utils.mapproperties.get_lines(cfg, points)
Read geological horizon lines.
- pofff.utils.mapproperties.getpolygons(cfg)
Read geological polygons and facies definitions.
- pofff.utils.mapproperties.grid_and_properties(cfg)
Dispatch grid generation and spatial property assignment based on the selected grid type.
- pofff.utils.mapproperties.handle_thickness_map(cfg)
Load and normalize thickness map and corresponding multipliers.
- pofff.utils.mapproperties.positions(cfg, polygons, xcent=None, zcent=None, xyz=None)
Dispatch spatial indexing for either grid type.
- pofff.utils.mapproperties.refinement_z(xci, zci, ncz, znr)
Refine grid vertically according to znr refinement factors.
- pofff.utils.mapproperties.sensors_corner_point(cfg, x, ztop)
Determine corner-point sensor indices.
- pofff.utils.mapproperties.sensors_structured(cfg, xcent, zcent)
Determine structured-grid sensor indices.
- pofff.utils.mapproperties.structured_handling_fluidflower(cfg, xcent, zcent, polygons)
Assign facies, boxes, sensors, and wells on structured grids.
- pofff.utils.mapproperties.wells_corner_point(cfg, x, ztop)
Determine corner-point well indices.
- pofff.utils.mapproperties.wells_structured(cfg, xcent, zcent)
Determine structured-grid well indices.