it2Obs¶
- it2Obs.observations_delta_it2_filtered(input_dictionary, obs_info)[source]¶
It generates the drawdown observation section for the iTOUGH2 file
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the flowing enthalpy in kJ/kg, a reference date on datetime format and the name and path of the database a list of the wells for calibration. e.g. ‘IT2’:{P_DEV’:5}
include_pres (bool) – If True a special file is read: ‘../input/drawdown/p_res.csv’ which contains the long history of pressure fluctuation.
p_res_block (str) – Block name at which monitoring pressure data is recorded
- Returns
observations_dd.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_DD(input_dictionary)
- it2Obs.observations_to_it2(input_dictionary, include_pres=False, p_res_block=None)[source]¶
It generates the section OBSERVATION from iTOUGH2 input file with pressure, temperature, flowing enthalpy and drawdown data.
- Parameters
input_dictionary (dictionary) – A dictionary containing:the standard deviation allowed for the temperature (in C), pressure (in bar) and flowing enthalpy (in kJ/kg). The name and path of the database a list of the wells for calibration and finally the type of run (‘natural’ or ‘production’) e.g. input_dictionary={‘TYPE_RUN’:’production’,’IT2’:{‘T_DEV’:5,’P_DEV’:10,’h_DEV’:100}}
include_pres (bool) – If True a special file is read: ‘../input/drawdown/p_res.csv’ which contains the long history of pressure fluctuation.
p_res_block (str) – Block name at which monitoring pressure data is recorded
- Returns
file – observations_PT.dat: on ../model/it2 , assuming the model is run for on a steady state and transient starts on time 0, the observation are stablished at time zero.
file – observations_h.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
file – observations_dd.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
file – it2_ob_prod.dat : it compiles the information during the transient stage. This is when time is higher than zero
file – it2_ob_nat.dat : it compiles the information at time zero.
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2(input_dictionary)
- it2Obs.observations_to_it2_DD(input_dictionary, obs_info, include_pres=False, p_res_block=None, include_wells=True, dates_format=True, show_plot=False)[source]¶
It generates the drawdown observation section for the iTOUGH2 file
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the flowing enthalpy in kJ/kg, a reference date on datetime format and the name and path of the database a list of the wells for calibration. e.g. ‘IT2’:{P_DEV’:5}
include_pres (bool) – If True a special file is read: ‘../input/drawdown/p_res.csv’ which contains the long history of pressure fluctuation.
p_res_block (str) – Block name at which monitoring pressure data is recorded
obs_info (dictionary) – Includes well name as keyword and an array with [TVD, layer_correlative]
include_wells (bool) – If True includes well drawdown include on obs_info, default : True
dates_format (bool) – In case SECONDS are prefered on the DATA section, default : True
- Returns
observations_dd.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_DD(input_dictionary)
- it2Obs.observations_to_it2_PT(input_dictionary)[source]¶
It generates the observation section for the iTOUGH2 file, coming from formation temperature and pressure
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the temperature (in C) and pressure (in bar). The name and path of the database and a list of the wells for calibration. e.g. ‘IT2’:{‘T_DEV’:5,’P_DEV’:10}
- Returns
observations_PT.dat: on ../model/it2 , assuming the model is run for on a steady state and transient starts on time 0, the observation are stablished at time zero.
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_PT(input_dictionary)
- it2Obs.observations_to_it2_h(input_dictionary, dates_format=True)[source]¶
It generates the flowing enthalpy observation section for the iTOUGH2 file
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the flowing enthalpy in kJ/kg, a reference date on datetime format and the name and path of the database a list of the wells for calibration. e.g. ‘IT2’:{‘h_DEV’:100},
- Returns
observations_h.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_h(input_dictionary)
- it2Obs.observations_to_it2_quality(input_dictionary, dates_format=True)[source]¶
It generates the wellhead steam quality observation section for the iTOUGH2 file
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the flowing enthalpy in kJ/kg, a reference date on datetime format and the name and path of the database a list of the wells for calibration. e.g. ‘IT2’:{‘h_DEV’:100},
- Returns
observations_whp.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_whp(input_dictionary)
- it2Obs.observations_to_it2_whp(input_dictionary, dates_format=True)[source]¶
It generates the wellhead pressure observation section for the iTOUGH2 file
- Parameters
input_dictionary (dictionary) – A dictionary containing the standard deviation allowed for the flowing enthalpy in kJ/kg, a reference date on datetime format and the name and path of the database a list of the wells for calibration. e.g. ‘IT2’:{‘h_DEV’:100},
- Returns
observations_whp.dat: on ../model/it2 , the time for every observation is calculated by finding the difference in seconds from a defined reference time
- Return type
file
Attention
The input data comes from sqlite
Examples
>>> observations_to_it2_whp(input_dictionary)