def main(): deck = Parser().parse('../tests/spe3/SPE3CASE1.DATA') es = EclipseState(deck) sc = Schedule(deck, es) wp = sc.get_wells(0)[0] # producer wi = sc.get_wells(0)[1] # injector print('state: %s' % es) print('schedule: %s' % sc) print('prod well: %s' % wp) print('inj well: %s' % wi) for i in range(len(sc.timesteps)): if not sc.get_wells(i)[0].isproducer() or sc.get_wells(i)[0].isinjector(): print('wp is not producer in step %s' % sc.timesteps[i]) if not sc.get_wells(i)[1].isinjector() or sc.get_wells(i)[1].isproducer(): print('wi is not injector in step %s' % sc.timesteps[i])
def main(): deck = parse(join(opmdatadir(), 'norne/NORNE_ATW2013.DATA')) es = EclipseState(deck) sc = Schedule(deck, es) wp = sc.get_wells(100)[20] wi = sc.get_wells(100)[19] fn = es.faultNames() f0 = fn[0] fl = es.faultFaces(f0) print('state: %s' % es) print('schedule: %s' % sc) print('the grid: %s' % es.grid()) print('at timestep 100 (%s)' % sc.timesteps[100]) print('prod well: %s' % wp) print('inj well: %s' % wi) print('pos: %s' % list(wp.pos())) print('fault: %s' % f0) print(' comprised of %d cells' % len(fl)) swof_krw(es)