Commit Graph
2380 Commits
Author SHA1 Message Date
babrodtk c4aae4440e Update support for VFP tables: Now produces almost identical results to BHP for 'identity' table' 2015-08-19 13:10:48 +02:00
babrodtk e05b7778d7 More integration of VFP tables 2015-08-19 13:10:48 +02:00
babrodtk 1dab5351c2 Initial integration of VFP 2015-08-19 13:10:48 +02:00
Atgeirr Flø Rasmussen 13d443473e Match init order to member order.
In a constructor initialisation list, the order should be the same
as the order in which the variables actually are initialised, which
is given by the order they are declared in the class and not by the
order in the initialisation list.
2015-08-19 11:33:29 +02:00
Kai Bao 5e5271b14d adding command line option full_timestep_initially_
when the option is true, for each report step, the size of the adaptive
time step always beginning with the size of the report step.
2015-08-17 15:56:31 +02:00
Atgeirr Flø Rasmussen 64b83989d5 Correct comment. 2015-08-17 13:02:37 +02:00
Atgeirr Flø Rasmussen e88e62a68d Catch MatrixBlockError in the adaptive time stepper.
This can be thrown by the ILU0 preconditioner when using the
interleaved solver approach.
2015-08-17 12:59:31 +02:00
Atgeirr Flø Rasmussen 9c6cabcd9a Use the correct (new) method from the Group class for group RESV.
Production controls now are no longer initialised from injection control data.
2015-08-13 10:21:24 +02:00
Atgeirr Flø Rasmussen 0147d28257 Merge pull request #848 from atgeirr/fix-bugs-explicitarraysfluidstate
Fix bugs related to ExplicitArraysFluidState
2015-08-12 15:25:29 +02:00
Joakim Hove 20968d9c0a Added small utility memcmp_double() 2015-08-12 14:31:07 +02:00
Atgeirr Flø Rasmussen 6921bd2af9 Make saturation functions work with two phases again.
Note that this changes ExplicitArraysFluidState to take
a run-time argument for the number of phases.
2015-08-12 13:38:32 +02:00
Atgeirr Flø Rasmussen 6c821aef10 Bugfix: add forgotten setIndex() call. 2015-08-12 13:38:10 +02:00
Atgeirr Flø Rasmussen 547018d3c7 Merge pull request #845 from atgeirr/fix-abs-bug-and-warnings
Fix abs bug and warnings
2015-08-12 12:50:31 +02:00
Atgeirr Flø Rasmussen 8a0010527c Suppress warnings. 2015-08-10 16:07:45 +02:00
Atgeirr Flø Rasmussen 1ead8dd458 Fix bug in floating-point comparison.
The function used integer abs() instead of fabs(), in C abs() only
takes integers so this is an error. Also needed to add comparison
with absolute tolerance to get reasonable behaviour (comparing 0 versus
0.0000000000001 is ok here).
2015-08-10 16:05:00 +02:00
Joakim Hove 8820e80f4a Merge pull request #843 from chflo/opm-218-reverse
Reverse changes that should not have been merged into master
2015-08-10 15:26:28 +02:00
Atgeirr Flø Rasmussen d8edb3db92 Merge pull request #838 from andlaus/initialize_SatHyst
properly initialize the attributes of the SatHyst class
2015-08-10 14:26:54 +02:00
chflo 0ee4ed6eab Reverse changes that should not have been merged into master 2015-08-10 14:17:59 +02:00
Atgeirr Flø Rasmussen 2e4a8da02c Remove warning-suppression utility headers.
They have been moved upstream to opm-parser.
2015-08-10 10:52:52 +02:00
Robert Kloefkorn 9b16794a56 TofDiscGalReorder and TofReader: remove warnings due to new boost version. 2015-08-07 12:02:59 +02:00
Atgeirr Flø Rasmussen 06c9d7d7e5 Merge pull request #839 from atgeirr/handle-new-umfpack
Define the UF_long type if necessary.
2015-08-07 11:11:23 +02:00
Joakim Hove 7b6172a1f8 Updated to use ParseMode. 2015-08-06 15:56:51 +02:00
Andreas Lauser feae6e393a properly initialize the attributes of the SatHyst class
this caused the hysteresis saturation shifts to be initially wrong and
was probably the source of a lot of my confusion w.r.t. the saturation
scaling and hysteresis shift code. I guess this also fixes a valgrind
complaint, but I haven't checked...
2015-08-06 11:34:22 +02:00
Atgeirr Flø Rasmussen 596eba610a Define the UF_long type if necessary.
The UF_long type is deprecated in UMFPack, and actually seems
to be removed from the latest versions.
2015-08-06 09:54:05 +02:00
chflo a949d5a736 OPM-218: Write restart files at same interval as eclipse 2015-08-05 13:38:52 +02:00
chflo 5e9e472613 OPM-218: Fix Flow vs Eclipse restart interval write differences: Use new method for correct date in rsthead 2015-07-27 13:27:14 +02:00
chflo 338777f514 OPM-218: Fix Flow vs Eclipse restart interval write differences: Override method from SimulatorTimerInterface 2015-07-27 13:26:28 +02:00
chflo 0f064bea3e OPM-218: Fix Flow vs Eclipse restart interval write differences: Added new method to SimulatorTimerInterface 2015-07-27 13:25:33 +02:00
Robert Kloefkorn ae740adaf3 SimulatorState: use register{Cell/Face}Data also in SimulatorState. 2015-07-08 16:30:51 +02:00
Robert Kloefkorn 0ad5146b1f make ids protected. 2015-07-08 13:24:19 +02:00
Robert Kloefkorn 034f163d88 SimulatorState: clear memory on init. 2015-07-08 13:23:36 +02:00
Robert Kloefkorn 5ca0a0f788 SimulatorState: added copyright
BlackoilState: added copyright

Also, small docu fix.
2015-07-08 13:23:36 +02:00
Robert Kloefkorn 3bc520eeb7 SimulatorState: store all data in a vector to allow for flexibility when used with
derived states.
BlackoilState: adjusted to SimulatorState changes.
2015-07-08 13:23:36 +02:00
Atgeirr Flø Rasmussen 7df516896d Fix unused argument warnings. 2015-07-08 12:37:11 +02:00
Andreas Lauser 4fe4bee158 fix SatFuncMultiplexer on old compilers
"old" == "gcc 4.4". the standard c++ library of this compiler seems to
invoke the copy operator when creating objects in a vector, whereas
newer versions of the library don't. The problem is that std::unique
pointer cannot be copied because it is -- err -- unique and thus the
implicit copy operator for the SatFuncMultiplexer class gets deleted
by the compiler.

the fix is to introduce a "fake" copy operator which does not do
anything but is present to make std::vector of stdlibc++-4.4
happy. this is obviously not very elegant, but I could not come up
with a better solution. (another fix would be to use raw pointers
instead of std::unique_ptr, but IMO this does not qualify as
"better".)
2015-07-02 11:47:32 +02:00
Andreas Lauser 8ccf1b3dbe multiplexer saturation function: get rid of the pesky union and the reinterpret_cast
basically, we now store a pointer to the base class and convert this
to the concrete incarnation of the saturation function. the only
disadvantage of this is that it requires to allocate the concrete
objects dynamically, i.e., there's another layer of indirection. On
the plus side it saves a few bytes per object and it makes things
quite a bit simpler, so it is a win IMO.

thanks to [at]atgeirr for suggesting this.
2015-06-29 15:28:30 +02:00
Andreas Lauser 388578f5ba use the multiplexer saturation function in SaturationPropsFromDeck
this makes it possible to switch to different saturation functions
again. So far the only supported function besides the default one is
the one which implements the "Stone 2" model.
2015-06-29 14:49:20 +02:00
Andreas Lauser 47521dca1d add a multiplexer saturation function 2015-06-29 14:49:20 +02:00
Andreas Lauser e016b1ea37 convert the "Stone2" and "Simple" saturation functions to fluid states 2015-06-29 14:49:20 +02:00
Andreas Lauser 63075249a9 SaturationPropsFromDeck: make the jump to fluid states
this means the following changes:

- the "SatFuncGwseg" class is converted
- for now, Gwseg is the only saturation function supported by
  SaturationPropsFromDeck. (will be changed in later commits.)
- the funcForCell() method of SaturationPropsFromDeck is removed as it
  just occludes things
2015-06-29 14:49:20 +02:00
Andreas Lauser 4b5de05d15 SaturationPropsFromDeck: remove the 'SatFuncSet' template parameter
in any reasonable simulator which reads an ECL deck the deck is going
to decide which saturation function is to be used and not the outside
code. also, the table this which function will be using is not really the
calling code's business. (for any reasonable deck it is always going to
be a non-uniform table so it makes a lot of sense to avoid unnecessary
complexity IMO.)

this patch temporarily removes the ability to use anything except the
ECL default saturation function ("Gwseg"). this ability will be
restored later in this patch series.
2015-06-29 14:49:20 +02:00
Andreas Lauser 3c484e4c6f add some fluid state classes
namely BlackoilStateToFluidState which takes a BlackoilState object
and exposes it as a opm-material like fluid state object. Similar for
ExplicitArraysFluidState, which takes raw arrays.

since fluid states are a local API, the index of the cell to be used
for these two classes must be set externally. The advantage of this
concept is that it is possible to make "saturation functions" which
not only depend on saturations but also on arbitrary other quanties
(like temperature or phase composition) without having to change the
API of the "saturation" functions.
2015-06-29 14:49:20 +02:00
Andreas Lauser 6ff2cc287f remove obsolete and empty file SatFuncStone2.cpp 2015-06-26 13:01:30 +02:00
Andreas Lauser 4ee7c34970 remove obsolete and empty file SatFuncGwseg.cpp 2015-06-26 13:01:30 +02:00
Andreas Lauser db615ae01f remove obsolete and empty file SaturationPropsFromDeck.cpp 2015-06-26 13:01:22 +02:00
Atgeirr Flø Rasmussen 590a4898b8 Add missing include statement. 2015-06-22 13:04:14 +02:00
Atgeirr Flø Rasmussen ae378c691b Merge pull request #819 from edbru/OPM-188
Opm 188 Read and write of RESTART wellstate data
2015-06-22 12:34:31 +02:00
Atgeirr Flø Rasmussen cd4bd4fe5a Merge pull request #820 from GitPaean/supress_warnings
Adding two more warnings to disable_warnings.h.
2015-06-17 11:07:49 +02:00
Kai Bao 64fe376ac5 Adding two more warnings to disable_warnings.h.
-Wpragmas and -Wunused-but-set-variable
2015-06-17 10:57:45 +02:00
Edvin Brudevoll 8e3d64a8cc OPM-188: Fixup after review comment, removed unnecessary include 2015-06-17 09:41:01 +02:00