Commit Graph

80 Commits

Author SHA1 Message Date
Arne Morten Kvarving
2a3b3e3e73 remove accessors in WellSegments added for external serialization 2020-03-19 09:34:12 +01:00
Arne Morten Kvarving
815526a4a8 add serialization template to WellSegments 2020-03-19 09:34:12 +01:00
Arne Morten Kvarving
7c298d0891 remove accessors in Segment added for external serialization 2020-03-19 09:34:12 +01:00
Arne Morten Kvarving
117682d211 add serialization template to Segment 2020-03-19 09:34:12 +01:00
Arne Morten Kvarving
a6f546a87a add serialization template to Valve 2020-03-19 09:34:12 +01:00
Arne Morten Kvarving
335eb8c5e1 add serialization template to SpiralICD 2020-03-19 09:34:12 +01:00
Joakim Hove
d27f537097 Add method WellSegments::topSegment() 2020-03-17 12:41:34 +01:00
Joakim Hove
37a37d2f12 Add begin() and end() iterators to WellSegments class 2020-03-16 17:28:08 +01:00
Joakim Hove
b46b50ed5f Add explicit to one argument constructor 2020-03-09 15:14:23 +01:00
Joakim Hove
815969a7d1 Simplify WellSegments serialization construction 2020-02-22 10:57:57 +01:00
Atgeirr Flø Rasmussen
f35529d7ff Silence warnings.
- One class vs struct declaration.
 - Unused variables in a test.
2020-02-21 10:49:41 +01:00
Joakim Hove
412909fa3a Use std::size_t instead of int for size 2020-02-20 11:54:40 +01:00
Joakim Hove
7da79ae532 Convert rst quantities to SI units 2020-02-14 06:43:25 +01:00
Kai Bao
8ddf71a67f Merge pull request #1460 from joakim-hove/wellsegments-state
Wellsegments state
2020-02-13 14:39:29 +01:00
Joakim Hove
ac2cac9f16 Remove member multiphase model from WellSegments 2020-02-13 11:03:14 +01:00
Joakim Hove
121386914b WellSegments - remove member length_depth 2020-02-13 11:03:14 +01:00
Joakim Hove
8657d59696 Remove name member from WellSegments class 2020-02-13 11:03:14 +01:00
Joakim Hove
b5d3af49e9 Remove variables: depth, length and volume from WellSegmentSet 2020-02-13 11:03:14 +01:00
Joakim Hove
185c715cff Remove WellSegments::operator<<() 2020-02-13 11:03:14 +01:00
Joakim Hove
bd688edfde Wellsegments are created with constructor 2020-02-13 11:03:14 +01:00
Joakim Hove
cac1dac893 Remove unused bool flag 2020-02-13 11:03:14 +01:00
Joakim Hove
b3d306482c Use const ref argument 2020-02-13 11:03:14 +01:00
Joakim Hove
ade0a78a06 Remove mutable accessors to set volume, depth and length 2020-02-13 11:03:14 +01:00
Joakim Hove
dd49f359f5 Grouped mutable accessors 2020-02-13 11:03:14 +01:00
Joakim Hove
b0fbb794d2 Remove WellSegments::operator<< 2020-02-13 09:23:33 +01:00
Joakim Hove
0525ea52a9 White space reformatting 2020-02-13 09:23:33 +01:00
Joakim Hove
9bed25f035 Use common ICDStatus class for both Valve and SpiralICD 2020-02-12 15:09:26 +01:00
Joakim Hove
e2b58cecda Inetrnalize segment type in proper enum 2020-02-12 14:18:24 +01:00
Joakim Hove
f80160e6c0 Add icd file with status enum common to SpiralICD and Valve 2020-02-12 14:15:13 +01:00
Joakim Hove
963387da56 Removed invalid_value as member variable 2020-02-12 10:01:45 +01:00
Joakim Hove
cd990599b4 The type of a segment must be explicitly initialized 2020-02-12 10:00:31 +01:00
Arne Morten Kvarving
d1d2414f4e make WellSegments constructible from variables
also add accessors and equality operator
2020-01-02 08:31:22 +01:00
Arne Morten Kvarving
8b33a0e36a allow constructing Segment from variables 2020-01-02 08:22:42 +01:00
Arne Morten Kvarving
7f570d1404 make Valve constructible from variables
also make it default constructible and equality operator
2020-01-02 08:19:31 +01:00
Arne Morten Kvarving
a4f97e84b6 allow constructing SpiralICD from variables
also make it default constructible and add equality operator
2020-01-02 08:17:36 +01:00
Bård Skaflestad
ebfa768fd2 Segment: Make Type Predicates Free Functions
That way, we won't have to pollute the Segment API when adding new
segment types.  While here, also reduce header file coupling by
forward-declaring SpiralICD and Valve in Segment.hpp.
2019-12-17 09:14:17 +01:00
Bård Skaflestad
40e0f83b7b Segment: Add Means of Identifing Valve Devices
This commit adds a simple predicate, Segment::isValve(), that lets
client code query whether or not a particular segment represents a
valve--created through the WSEGVALV keyword.

If so, the client can also request the valve itself to inspect the
pertinent valve properties.
2019-12-17 09:14:17 +01:00
Kai Bao
aff2baf9f2 adding test for WSEGVALV 2019-12-11 14:38:43 +01:00
Kai Bao
6be5e104b0 addressing the reviewing comments from PR#1257 2019-12-11 13:00:34 +01:00
Kai Bao
46bcd7a499 adding a few segment summary keywords to SEGMENT_PROBE
to it can run the WSEGVALV case in opm-tests without modifying the deck.
2019-12-11 13:00:34 +01:00
Kai Bao
80159c4374 adding support for WSEGVALV 2019-12-11 13:00:34 +01:00
Bård Skaflestad
953abdc496 Segment: Add Means of Identifying SICDs
This commit adds a simple predicate, Segment::isSpiralICD(), that
lets client code query whether or not a particular segment
represents a spiral ICD.  These are created through the WSEGSICD
input keyword.
2019-12-10 14:27:03 +01:00
Arne Morten Kvarving
3b66c03d31 fixed: this should be an int, not a double 2019-12-10 11:56:18 +01:00
Kai Bao
254cee34bd addingress reviewing comments for PR#1251 2019-12-05 11:48:59 +01:00
Kai Bao
973fe9823b adapting and fix the code after rebasing for WSEGSICD 2019-12-05 11:48:59 +01:00
Kai Bao
fea4c4c8fa adding support for WSEGSICD 2019-12-05 11:48:59 +01:00
Joakim Hove
8553bbf326 Remove ScheduleEnum files 2019-09-04 14:49:12 +02:00
Joakim Hove
9690588dd4 Refactor enums for Segments 2019-09-04 14:49:12 +02:00
Kai Bao
d11d26a2f1 adding test WrongDistanceCOMPSEGS 2019-05-24 10:19:50 +02:00
Kai Bao
584defebe0 ParseContext is used to handle the exceptions when parsing COMPSEGS 2019-05-24 10:19:50 +02:00