Commit Graph

207 Commits

Author SHA1 Message Date
Andreas Lauser
d83cd2b797 ebos: use the TEMPI keyword to set the temperatures of the cells
this allows to use a "pseudo thermal" simulator, i.e. each cell may
exhibit a different temperature, but energy is not conserved over
time...
2015-02-05 16:14:07 +01:00
Andreas Lauser
a320dd0fa7 adapt to the new PVT API of the black oil fluid system 2015-02-05 16:14:07 +01:00
Andreas Lauser
c7fe719825 adapt to the recent removal of Well::getRefDepthDefaulted() in opm-parser 2015-01-27 22:40:49 +01:00
Andreas Lauser
0e973f7108 ECL transmissibility: implement region multipliers
a.k.a. support the MULTREGT keyword. This has not really been tested
and may contain bugs...
2015-01-27 13:17:01 +01:00
Andreas Lauser
019c272a11 ECL grid manager: make the cartesianCellId() method take an integer and return one
the fact that this is implemented via a std::vector<int> is an
implementation detail which should not be visible to the outside of
this class.
2015-01-27 13:15:06 +01:00
Andreas Lauser
a720a322c3 Revert "rename {gil,gas}FormationVolumeFactor to \1FormationFactor"
This reverts commit 3e247b059f20b1d04f47bd832719a99df8b9ac26. After a
more thorough investigation, the cannonical name of these quantities
turned out to be "* formation volume factor"...
2015-01-26 11:55:37 +01:00
Andreas Lauser
43bf27e1a1 rename {gil,gas}FormationVolumeFactor to \1FormationFactor
this is the eWoms part of the rename...
2015-01-25 18:22:42 +01:00
Andreas Lauser
e09b026551 ECL output: use the same units as the input deck for ECL output
this makes it possible to compare ECL restart and summary files
produced by ebos directly with the ones stemming from Eclips. (But be
aware that VTK output files from ebos are still all-SI!)
2015-01-25 17:54:11 +01:00
Andreas Lauser
c651c2f4ce ebos: disable partial relinearization and linearization recycling by default
in particular, the partial relinearization seems to cause some _very_
weird effects. (the results differ very significantly for SPE1.) I
still have to investigate why, but I suspect that this is caused by
the fluid system being not continuously differentiable (it's piecewise
linear).
2015-01-21 15:56:09 +01:00
Andreas Lauser
597bd22b9a set the PVT region index inside the problem's initial() method
also, do not touch the region index in scalar assignments for black
oil primary variable objects. the first change is required by because
assignMassConservative() accesses the region index and the second
because scalar assignments should not modify the PVT region of the
primary variables. found by clang's ASAN.
2015-01-21 15:56:09 +01:00
Andreas Lauser
a4f1aa95cc ebos/black oil model: make the restart work
only the restart from ERS files, using ECL restart files (i.e.,
*.UNRST) is still unsupported (but should not be much work).
2015-01-21 15:56:08 +01:00
Andreas Lauser
c4f169e01e ECL peaceman well: use the grid to get an initial estimate of the BHP
more concretely, we now use the pressure of an arbitrary phase of an
arbitrary DOF contained in the well.
2015-01-21 15:56:08 +01:00
Andreas Lauser
be3772e351 black oil primary variables: add an assignMassConservative() method
and use it in ebos...
2015-01-21 15:56:08 +01:00
Andreas Lauser
0baa3f23a7 ECL peaceman well: reduce the epsilon value used to calculate the bottom hole pressure 2015-01-21 15:56:08 +01:00
Andreas Lauser
85af98dd95 ECL peaceman well: also use the replacement DOF variables to convert reservoir to surface rates 2015-01-21 15:56:08 +01:00
Andreas Lauser
3e46640b78 ECL problem: also set the gravity vector to zero if the "EnableGravity" parameter is false
although it worked for the reservoir itself, this has some effect on
the wells (which retrieve the gravity potential from the problem).
2015-01-21 15:56:08 +01:00
Andreas Lauser
5bbaba68f7 ECL problem: fix incorrect calculation of the initial gas mass fraction in oil
once uppon a time I had an incorrect definition of the Rs factor in
mind. this was an artifact from that time...
2015-01-21 15:56:08 +01:00
Andreas Lauser
e7a80216e8 ECL peaceman well: fix sign error in gravity correction 2015-01-21 15:56:08 +01:00
Andreas Lauser
1233e12e76 ECL peaceman well: use the reservoir cell's phase density for injected fluids
(instead of calculating it from the hole pressure. this seems "less
correct" but the way Eclipse does things...)
2015-01-21 15:56:08 +01:00
Andreas Lauser
a9e40ce36a ECL peaceman well: retrieve the gravity constant from the problem
this makes things consistent if gravity is disabled...
2015-01-21 15:56:08 +01:00
Andreas Lauser
deb10b7524 ECL peaceman well: don't do manual updates of the DOF variables
use the update() method instead. Also, add an updateBeginTimestep()
method to the DOF variables which only need to be updated once per
timestep...
2015-01-21 15:56:08 +01:00
Andreas Lauser
6c881ab88f simulator: another bug in the episode handling
this time it was caused by the fact that the episodeStartTime_ is
defined as the time which was elapsed from the beginning of the
simulation instead of the posix time which the simulation currently
looks at...
2015-01-21 15:56:08 +01:00
Andreas Lauser
11b77029cf ECL peaceman well: rename "bottom depth" to "reference depth"
this is because the "bottom hole pressure" by default is the the
presssure at the center of the _topmost_ cell penetrated by the
well. (The terminology keeps getting more weird the longer you look at
it.)

this patch also changes the default way to calculate the reference
depth from the center of the deepest to the center of the highest cell
and makes the reference depth settable in the deck.
2015-01-21 15:56:08 +01:00
Andreas Lauser
006a3324b2 fix a dune 2.4 deprecation warning
this only occured in debugmode...
2015-01-21 15:56:08 +01:00
Andreas Lauser
440a2f9496 some bikeshedding to make the new code more consistent with the existing one
i.e., where to put spaces, where to put new lines and using identation
width 4.
2015-01-21 15:56:08 +01:00
Andreas Lauser
a8b093e372 cache the remaining element iterator dereferences
they were forgotten in a place or two. With this, ebos' performance
using ALUGrid is comparable to its performance using a "raw"
Dune::CpGrid.

(also, make the naming of the local variable for the element more
consistent, i.e., replace 'entity' by 'elem' for the few places where
'entity' was used.)
2015-01-21 15:56:07 +01:00
Robert K
2cfe491008 EclGridManager: implement getIJK method here to make Cartesian identification complete. 2015-01-20 13:19:50 +01:00
Robert K
779e7736d1 EclSimulator: make compile with dune-alugrid. For that reason the Cartesian cell id has
been moved to the grid manager class.
2015-01-20 12:20:26 +01:00
Andreas Lauser
83f335077a make the ECL transmissibility flux module work on GCC 4.4
dejavu! (Also, fix a sign comparison warning on GCC 4.4.)
2015-01-06 12:40:30 +01:00
Andreas Lauser
c5869df53a remove unused typedefs and enums 2015-01-05 15:25:55 +01:00
Andreas Lauser
fbf1ef39fc rename "velocity modules" to "flux modules"
that's because these modules do not necessarily use a velocity to
calculate fluxes...
2015-01-05 15:25:19 +01:00
Andreas Lauser
f95f0cc407 add option to use different flux modules and add one for ECL-transmissibilities to ebos
the ebos module implemenents what Eclipse calls 'NEWTRAN'
transmissibilities. Also, this commit required a few cleanups in the
velocity module infrastructure.
2015-01-05 15:25:16 +01:00
Andreas Lauser
602909c16d ECL well manager: hack around recently introduced opm-parser ideosyncrasy
catching an exception for this seems like a pretty bad hack to me, but
there seems to be no other way to detect that a deck did not specify a
completion radius. (well, one could look at the raw COMPDAT keyword,
but that would defeat all benefits of using opm-parser's schedule
objects.)

this makes ebos work with SPE9 for the current master version of
opm-parser again.
2015-01-03 16:10:20 +01:00
Andreas Lauser
e1743929d4 ebos: make it compile and run on GCC 4.4 and boost 1.44
there were some issues with boost::filesystem, some with
std::unordered_map and problems with initializer lists...
2014-12-23 14:14:23 +01:00
Andreas Lauser
3f69e827be doxygen: add a separate group for the ECL black-oil simulator application
note: the doxygen groups are quite a bit behind the curve and should
be overhauled soon. (e.g. now there's not only the vertex centered
finite volume space discretization anymore...)
2014-12-22 19:19:03 +01:00
Andreas Lauser
ce38b6bb9e ebos: reduce the tax rate
first, it's not a good idea to go over the whole grid for each well at
the beginning of a time step, second the Jacibian matrix of the
linearization only needs to be recreated if the well completions have
changed...
2014-12-22 17:31:33 +01:00
Andreas Lauser
314ad00801 rename *JacobianAssembler to *Linearizer
because this describes better what this class is doing...
2014-12-20 00:15:59 +01:00
Andreas Lauser
1be2bc1e01 ebos: enable the cache for intensive quantities
this seems to slightly speed things up at the linearization stage...
2014-12-19 18:52:10 +01:00
Andreas Lauser
b84bcedb27 ECL peaceman well: use total mobility for injectors instead of 1/mu
SPE is closer, but not close enough. Note that the using total
mobility is probably "more wrong" than the previous approach (i.e.,
lambda = 1/viscosity of the injected phase)
2014-12-16 19:24:45 +01:00
Andreas Lauser
c1a7dd53f0 rename "top hole pressure" to "tubing head pressure"
"BHP" stands for "bottom hole pressure" so it sounded logical that
"THP" is an acronym for "top hole pressure". It isn't but the quantity
in question is still the pressure which is seen at the top of the
well's bore hole...
2014-12-15 18:09:29 +01:00
Andreas Lauser
a508def86e fix the dune 2.4 deprecation warnings
mainly this boils down to mapper.map(e) -> mapper.index(e)
2014-12-12 14:32:29 +01:00
Andreas Lauser
825e2a1daf fix two new sign comparison warnings
these seem to be only present for older compilers like clang 3.3...
2014-12-08 19:09:05 +01:00
Andreas Lauser
295a1db2d7 ECL problem: use the piecewise linear twophase material parameters
the ones based on Splines are better in principle, but they cause
havoc if two saturations are very close together with the slope of the
values off. this happens e.g. in SWOF in my version of SPE1...
2014-12-08 17:53:18 +01:00
Andreas Lauser
e61094b0aa ECL problem: implement rock compressibility
this makes eWoms match autodiff and Eclipse for SPE-1 if the injector
is disabled. with the injector it gets quite a bit closer, but it does
not yet match. (this is probably not a problem with the wells as
autodiff and eWoms agree that the maximum amount of gas should be
injected all the time and these rates are the same...)
2014-12-04 20:22:00 +01:00
Andreas Lauser
0e4857e94a ebos: increase raw tolerance of the non-linear solver to 1e-4
ECLiPSE and opm-autodiff seem to be in that range of accuracy, too. At
least the number of Newton iterations per time step now matches that
of autodiff quite well...
2014-11-28 13:12:15 +01:00
Andreas Lauser
47eafa47f4 move everything which is ECL specific to applications/ebos
this helps to keep the core blackoil model code lean and mean and it
is also less confusing for newbies because the ECL blackoil simulator
is not a "test" anymore.

in case somebody wonders, "ebos" stands for "&eWoms &Black-&Oil
&Simulator". I picked this name because it is short, a syllable, has
not been taken by anything else (as far as I know) and "descriptive"
names are rare for programs anyway: everyone who does not yet know
about 'git' or 'emacs' and tells me that based on their names they
must be a source-code managment system and an editor gets a crate of
beer sponsored by me!
2014-11-28 13:01:32 +01:00
Andreas Lauser
08c97f478f ECL problem: set the connate water saturation 2014-11-27 18:59:40 +01:00
Andreas Lauser
3c3d3208eb ECL problem: make the code which converts gas to oil saturations a bit easier to read
This code is required in the first place because opm-material always
specifies all parameters in terms of the wetting saturations while the
gas is the non-wetting phase in a gas-oil system.
2014-11-27 18:42:19 +01:00
Andreas Lauser
2fb0b4a7e5 ECL wells: deactivate the well performance output at the end of a time step
it is just deactivated using an always-false condition so it does not
bitrot and can be re-activated quickly. I did not want to completely
remove this code because it is useful for debugging purposes, but for
regular use, it should have been superseeded by the ECL summary output
stuff...
2014-11-25 17:40:13 +01:00
Andreas Lauser
49061f879f write ECL summary files for wells
so far, the units of the values written to disk are always what
Eclipse calls METRIC and the number of supported quantities is
somewhat limited...
2014-11-25 17:03:20 +01:00