Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix observation templates #391

Merged
merged 2 commits into from
Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- [#372](https://github.com/equinor/flownet/pull/372) Added option to let the additional flownodes initially be placed within the original volume rather than within the convex hull of the real wells. To do this set place_nodes_in_volume_reservoir to true.

### Fixes
- [#391](https://github.com/equinor/flownet/pull/391) Fixes bug in generation of yaml files for visualization in Webviz.
- [#372](https://github.com/equinor/flownet/pull/372) Fixes bug of hull_factor not actually being used for placing additional nodes outside the perforations.
- [#374](https://github.com/equinor/flownet/pull/374) Fix for memory leak in result plotting script.

Expand Down
2 changes: 1 addition & 1 deletion src/flownet/templates/observations.ertobs.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SUMMARY_OBSERVATION WWIR_{{ kw.well_name }}_{{ index_name }} { VALUE = {{ kw.rat
SUMMARY_OBSERVATION WGIT_{{ kw.well_name }}_{{ index_name }} { VALUE = {{ kw.total }}; ERROR = {{ [error_config.WGIT.rel_error * kw.total, error_config.WGIT.min_error] | max }}; DATE = {{ date_formatted }}; KEY = WGIT:{{ kw.well_name }}; };
{%- endif %}
{%- if not isnan(kw.total) and kw.inj_type == "WATER" and error_config.WWIT.rel_error is not none and error_config.WWIT.min_error is not none: %}
SUMMARY_OBSERVATION WWIR_{{ kw.well_name }}_{{ index_name }} { VALUE = {{ kw.total }}; ERROR = {{ [error_config.WWIT.rel_error * kw.total, error_config.WWIT.min_error] | max }}; DATE = {{ date_formatted }}; KEY = WWIT:{{ kw.well_name }}; };
SUMMARY_OBSERVATION WWIT_{{ kw.well_name }}_{{ index_name }} { VALUE = {{ kw.total }}; ERROR = {{ [error_config.WWIT.rel_error * kw.total, error_config.WWIT.min_error] | max }}; DATE = {{ date_formatted }}; KEY = WWIT:{{ kw.well_name }}; };
{%- endif %}

{% endfor %}
Expand Down
8 changes: 4 additions & 4 deletions src/flownet/templates/observations.yamlobs.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ smry:
{%- endfor %}
{%- endif -%}
{%- if (error_config.WGIR.rel_error is not none) and (error_config.WGIR.min_error is not none) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="thp", dates=dates[num_beginning_date:num_end_date]) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="rate", dates=dates[num_beginning_date:num_end_date]) if kw.inj_type == "GAS" -%}
{% if loop.first and not loop.last: %}
- key: WGIR:{{ well_name }}
observations:
Expand All @@ -191,7 +191,7 @@ smry:
{%- endfor %}
{%- endif -%}
{%- if (error_config.WWIR.rel_error is not none) and (error_config.WWIR.min_error is not none) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="thp", dates=dates[num_beginning_date:num_end_date]) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="rate", dates=dates[num_beginning_date:num_end_date]) if kw.inj_type == "WATER" -%}
{% if loop.first and not loop.last: %}
- key: WWIR:{{ well_name }}
observations:
Expand All @@ -208,7 +208,7 @@ smry:
{%- endfor %}
{%- endif -%}
{%- if (error_config.WGIT.rel_error is not none) and (error_config.WGIT.min_error is not none) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="thp", dates=dates[num_beginning_date:num_end_date]) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="total", dates=dates[num_beginning_date:num_end_date]) if kw.inj_type == "GAS" -%}
{% if loop.first and not loop.last: %}
- key: WGIT:{{ well_name }}
observations:
Expand All @@ -225,7 +225,7 @@ smry:
{%- endfor %}
{%- endif -%}
{%- if (error_config.WWIT.rel_error is not none) and (error_config.WWIT.min_error is not none) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="thp", dates=dates[num_beginning_date:num_end_date]) -%}
{%- for kw in schedule.get_keywords(kw_class="WCONINJH", well_name=well_name, ignore_nan="total", dates=dates[num_beginning_date:num_end_date]) if kw.inj_type == "WATER" -%}
{% if loop.first and not loop.last: %}
- key: WWIT:{{ well_name }}
observations:
Expand Down