resqpy.well.add_blocked_wells_from_wellspec

resqpy.well.add_blocked_wells_from_wellspec(model, grid, wellspec_file, usa_date_format=False)

Add a blocked well for each well in a Nexus WELLSPEC file.

Parameters
  • model (model.Model object) – model to which blocked wells are added

  • grid (grid.Grid object) – grid against which wellspec data will be interpreted

  • wellspec_file (string) – path of ascii file holding Nexus WELLSPEC keyword and data

  • usa_date_format (bool) – mm/dd/yyyy (True) vs. dd/mm/yyyy (False)

Returns

int – count of number of blocked wells created

Notes

this function appends to the hdf5 file and creates xml for the blocked wells (but does not store epc); ‘simulation’ trajectory and measured depth datum objects will also be created