pycopm.utils.transformation module#
Transform corner-point grid coordinates and rewrite associated properties.
- transform_grid(dck)[source]#
Apply the configured transformation to the corner-point grid.
Supported specifications are
translate [x,y,z],scale [x,y,z], androtatexy,rotatexz, orrotateyzfollowed by an angle in degrees. Rotations are performed about the coordinate-system origin.- Parameters:
- dck
Deck configuration containing
grid_transformationand source geometry.
- Parameters:
dck (ConfigViaDeck)
- Return type:
None
- transform_properties(dck, modified_deck)[source]#
Rewrite reservoir properties for a transformed grid.
Property values are unchanged because transformations modify only geometry.
- Parameters:
- dck
Deck configuration containing source properties and output dimensions.
- modified_deck
Deck lines updated with generated property includes.
- Returns:
- generated_files
Names of the written include files.
- Parameters:
dck (ConfigViaDeck)
modified_deck (list[str])
- Return type:
list[str]