kappa_sdk.keg5.ModelParser#

class kappa_sdk.keg5.ModelParser(xml_string)[source]#

Parses XML from KEG5 KW document’s model

Methods

ModelParser.add_vectorial_objects(wells)

Will remove the existing wells from this keg5 and create new ones taking into account the parameters of each input

ModelParser.configure_datasets(wells)

Will remove the existing datasets from this keg5 and create new ones taking into account the parameters of each 'Keg5WellPropertyInputs', will only affect permeability, porosity and thickness.

ModelParser.configure_time_stepping(...)

ModelParser.export()

ModelParser.print_all()

ModelParser.write_in_file(file_name)

Parameters:

xml_string (str)

__init__(xml_string)[source]#
Parameters:

xml_string (str)

Return type:

None

write_in_file(file_name)[source]#
Parameters:

file_name (str)

Return type:

None

export()[source]#
Return type:

str

print_all()[source]#
Return type:

None

add_vectorial_objects(wells)[source]#

Will remove the existing wells from this keg5 and create new ones taking into account the parameters of each input

Parameters:

wells (list of all needed properties to create new wells)

Return type:

None

configure_datasets(wells)[source]#

Will remove the existing datasets from this keg5 and create new ones taking into account the parameters of each ‘Keg5WellPropertyInputs’, will only affect permeability, porosity and thickness. Will as well reset layers, horizons, zones and petrophysics (the analysis will be single layer, one unique region).

Parameters:

wells (list of properties containing petrophysics data)

Return type:

None

configure_time_stepping(start_date, end_date)[source]#
Parameters:
  • start_date (datetime)

  • end_date (datetime)

Return type:

None