def __call__(self):
     stg = ''
     stg += '{} {} {}'.format(Kw.on_elapsed(), Wrd.time(),
                              ' '.join(list(map(str, self._condition))))
     if self._increment:
         stg += ' {} {}'.format(Kw.increment(), self._increment)
     if self._avrgtime:
         stg += ' {} {}'.format(Kw.avrgtime(), self._avrgtime)
     return stg
 def __call__(self):
     stg = ''
     stg += '{} {} {}'.format(Kw.on_ctrllump(), self._layerclump_name,
                              ' '.join(list(map(str, self._condition))))
     if self._increment:
         stg += ' {} {}'.format(Kw.increment(), self._increment)
     if self._avrgtime:
         stg += ' {} {}'.format(Kw.avrgtime(), self._avrgtime)
     return stg
Esempio n. 3
0
    def _repr_dual_mode(self):
        lst = []
        lst.append('{} {}'.format(Kw.layerclump(), self._name))

        for well_name, layer in self._lst:
            stg = '{} {} {}'.format(well_name, layer, Kw.mt())
            lst.append(stg)

            stg = '{} {} {}'.format(well_name, layer, Kw.fr())
            lst.append(stg)

        return '\n'.join(lst)
Esempio n. 4
0
    def _repr_dual_mode(self):
        lst = []
        suffixes = [
            '{}{}'.format(self._suffix, i + 1)
            for i in range(self._n_layerclumps)
        ]
        for suffix, layers in zip(suffixes, self._lst_lst):
            name = "'{}{}'".format(self._root_name.strip("'"), suffix)

            lst.append('{} {}'.format(Kw.layerclump(), name))

            for well_name, layer in layers:
                stg = '{} {} {}'.format(well_name, layer, Kw.mt())
                lst.append(stg)

                stg = '{} {} {}'.format(well_name, layer, Kw.fr())
                lst.append(stg)

        return '\n'.join(lst)
Esempio n. 5
0
    def __call__(self):
        stat = ' '.join([el() for el in self._stat])

        stg = ''
        stg += '{} {} {}'.format(Kw.trigger(), self._name, stat)
        if self._apply_times:
            stg += ' {} {}'.format(Kw.apply_times(), self._apply_times)
        if self._test_times:
            stg += ' {} {}'.format(Kw.test_times(), self._test_times)

        lst = []
        for el in self._act:
            if isinstance(el, str):
                el = '\n  '.join(el.split('\n'))
            else:
                el = '\n  '.join(el().split('\n'))
            lst.append('\n  {}'.format(el))
        act = ''.join(lst)

        stg += '{}'.format(act)

        stg += '\n{}'.format(Kw.end_trigger())
        return stg
Esempio n. 6
0
    def _repr_dual_mode(self):
        lst = []
        lst.append('{} {} {}'.format(Kw.perf(), ' '.join(self._index_keys),
                                     self._well_name))

        for idx, completion in enumerate(self._lst):
            stg = ''
            uba = '{:02d} {:02d} {:02d}'.format(*completion[0])
            stg += uba

            stg += ' {}'.format(Kw.mt())

            index_values = []
            for index_value in completion[1]:
                index_values.append('{:.4f}'.format(index_value))
            index_values = ' '.join(index_values)
            if index_values:
                stg += ' {}'.format(index_values)

            rel_perm = completion[2]
            if rel_perm != -1:
                stg += ' {:.4f}'.format(rel_perm)

            status = completion[3]
            if status:
                stg += ' {}'.format(status)

            connection = completion[4]
            if connection:
                stg += ' {}'.format(connection)

            if idx == 0:
                stg += ' {} {}'.format(Wd.surface(), Kw.reflayer())
                lst.append(stg)
                stg = stg.replace(Kw.mt(), Kw.fr())
                stg = stg.replace('{} {}'.format(Wd.surface(), Kw.reflayer()),
                                  '')
                lst.append(stg)
            else:
                stg += ' {:02d}'.format(idx)
                lst.append(stg)
                stg = stg.replace(Kw.mt(), Kw.fr())
                lst.append(stg)
        return '\n'.join(lst)
 def __call__(self):
     return '{} {} {}'.format(Kw.clumpsetting(), self._layerclump_name, self._value)
Esempio n. 8
0
 def __call__(self):
     stg = '{} {} {} {} {} {} {}'.format(Kw.geometry(), self._dir, self._rw,
                                         self._geofac, self._wfrac,
                                         self._skin, self._wdfac).strip()
     return stg
Esempio n. 9
0
 def __call__(self):
     return '{} {}'.format(Kw.open(), self._well_name)
Esempio n. 10
0
 def __call__(self):
     return '{} {} {} {}'.format(Kw.well(), self._name, Kw.attachto(),
                                 self._group)
Esempio n. 11
0
 def __call__(self):
     lst = []
     for el in self._lst:
         lst.append('{} {}'.format(Kw.operate(), ' '.join(map(str, el))))
     return '\n'.join(lst)
Esempio n. 12
0
 def __call__(self):
     return '{} {}'.format(Kw.producer(), self._name)
Esempio n. 13
0
 def __call__(self):
     return '{} {}\n{}'.format(Kw.on_time(), self._well_name, self._value)