plopm.utils.write_vtk module
Utiliy methods to write the vtks
- plopm.utils.write_vtk.check_integer_conversion(quan: ndarray[tuple[Any, ...], dtype[_ScalarT]], var: str, vtkformat: str, target_dtype: type, warning_keys: set[tuple[str, str, str]]) None
Warn about risky integer conversions
- plopm.utils.write_vtk.format_data_array(quan: ndarray[tuple[Any, ...], dtype[_ScalarT]], target_dtype: type) str
Format values for an ascii VTK DataArray
- plopm.utils.write_vtk.get_flags() tuple[str, str]
Load the flags to remove all vtk properties and perform a minimal run
- plopm.utils.write_vtk.make_dry_deck(dname: str) None
Create a deck for the dry run
- plopm.utils.write_vtk.make_vtks(flow: str, names: list, output: str, save: list, restart: list, vrs: list, vtkformat_list: list, vtknames: list, gif: bool, vtk: bool, filters: list, skl: list[str], mass: list[str], mass_all: list[str], caprock: list[str], stress: float, filterss: list[str]) None
Use OPM Flow to generate the vtk grid to populate with the given variables
- plopm.utils.write_vtk.opmtovtk(case: str, read: ReadData, output: str, dname: str, save: list, restart, vrs: list, vtkformat_list: list, vtknames: list, k: int, skl: list[str], mass: list[str], mass_all: list[str], caprock: list[str], stress: float, filterss: str) None
Generate the vtks
- plopm.utils.write_vtk.warn_once(warning_keys: set, warning_key, message: str) None
Print a warning once
- plopm.utils.write_vtk.writepvd(save: list, dname: str, restart: list, tnrst: list, output: str, k: int) None
Generate the pvd file