mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Add a typed FILTER declaration to the ORIONEVENTS 2.0 grammar, e.g. FILTER POROPERM = "PORO > 0.4 AND PERMX > 100.0". A PERFORATION event references it with FILTER=POROPERM or supplies an inline quoted expression. When applied, each used filter is materialized as a case-level combined data filter (one property filter per term, one-sided inclusive bounds, AND/OR combine mode) and attached to the perforation. Unqualified result names are searched in STATIC_NATIVE, DYNAMIC_NATIVE then GENERATED results; a TYPE. qualifier restricts the search. Missing results raise before any event is applied. apply_orion_document gains an optional case= parameter defaulting to the project's first case. RimWellEventPerf carries a RimCellFilter ptr-field with scriptable AddFilter/cell_filter methods, and the filter is copied onto the RimPerforationInterval when the timeline materializes completions.