Atgeirr Flø Rasmussen
e8f0592599
Fix access to keywords, while still silencing warning.
...
Previous fix was wrong because it called getKeyword() outside the
hasKeyword() check. Current version (like original code) uses the
short-circuiting behaviour of && to ensure this.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
7120bdf1ce
Add (all-zero) initialisation of new EquilRecord fields.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
ec3befafae
Avoid signed/unsigned warning.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
7a60e97199
Comment out unused function argument.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
b8d48a5fc8
Bugfix in RsSatAtContact: use min(), not max().
...
Also modified test to match output.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
1923de2694
Fix bug in RS initialisation.
...
Also throw if default init is specified and datum != goc depth.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
0bfa30de7b
Added simple program example for initialisation.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
6e607115fd
Remove debugging output.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
8728e43722
Add computeRs() function and use from InitialStateComputer.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
d2741a76be
Add initStateEquil() function.
...
It is not quite complete yet for the following reasons:
- it does not compute state.surfacevol(),
- the InitialStateComputer class does not compute Rs or Rv,
- it has not been verified.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
128829e7c8
Added Rv field to InitialStateComputer.
...
It is currently not computed, as for Rs.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
b53944f30a
Moved implementation of phaseSaturations() to _impl file.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
6144730b47
Refactor copying of region to global data.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
5ee2c0cbc9
Rename PhasePressureSaturationComputer -> InitialStateComputer.
...
Also add (unused so far) rs_ field to class.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
a0d3bf6dd7
Added size() method to CellRange inner class.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
9c047f4533
Add test for live oil initialisation.
...
The test is not finished or verified yet.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
843517e517
Enable live oil in initialisation.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
b6315cabd6
Removed redundant calcPressII() method.
...
Pressure is also calculated in the calcPressSat() method.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
0d25ad9ec4
Made phase mixing functors a class hierarchy.
...
In summary:
- added RsFunction (base class),
- made NoMixing, RsVD, RsSatAtContact inherit RsFunction,
- RS and RV are no longer template arguments for EquilReg class,
- EquilReg constructor now takes two shared_ptr<Miscibility::RsFunction>,
- use of constructor updated, mostly using make_shared.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
865469129f
Made NoMixing a class.
...
For uniformity with its sibling classes.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
37635c9b58
Prune includes.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
7035e37737
Moved equilibration utilities to separate file.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
50a7bae23e
Capitalize nested namespace names.
...
equil -> Equil
miscibility -> Miscibility
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
07ca74800a
Move RegionMapping class to its own header, add test.
...
Class now resides in opm/core/utility/RegionMapping.hpp.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
6c75579c67
Added class RsSatAtContact (not tested).
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
652283d87d
Add test case with overlapping transitions.
...
Capillary pressure functions and contact depths
have been modified to ensure a large overlap.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
734046e16e
Fix bug in saturation initialisation.
...
We shall only use gas-water capillary to initialise when we would get
unphysical saturations otherwise.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
e51b161c89
Add test case with capillary transition region.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
9712b61747
Add saturation computation to and rename computer class.
...
Opm::equil::DeckDependent::PhasePressureComputer ->
Opm::equil::DeckDependent::PhasePressureSaturationComputer
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
cc50cb94c1
Add test case for capillary inversion.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
5b0534c372
Add another test deck for initialisation.
...
This deck includes capillary functions.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
2ec3a80cfb
Fix bugs in saturation initialisation and helpers.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
50c6fa8863
Add saturation init facilities.
...
This adds the function phaseSaturations() and some helpers:
satFromPc() and satFromSumOfPcs().
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
2056623044
Complete pressure test for dead-oil deck.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
95ce3c4657
Modify test data.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
55fcdec734
Add (defaulted) gravity argument in some places.
...
This is done to facilitate testing, using gravity = 10 m/s^2 for example.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
33a2030170
Still working on test_equil.cpp.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
b9589097fc
Fix contact depths in test deck.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
ba4461a26c
Throw exception if datum not in oil zone.
...
We are not capable of handling this, and must abort.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
6362621c13
Created simple data for init testing.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
7997917c07
Add (unfinished) test case.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
97014713ce
Removed RK4IVP's inheritance from binary_function.
...
Three reasons:
- class is a unary functor,
- the typedefs obtained were not used,
- binary_function is deprecated in C++11.
2018-01-02 14:28:06 +01:00
Atgeirr Flø Rasmussen
6e8b38952c
Merge pull request #151 from andlaus/move_valgrind_crs
...
adapt to the move of the valgrind client requests into the Opm namespace
2017-02-10 10:22:19 +01:00
Atgeirr Flø Rasmussen
a2ef88989d
Merge pull request #113 from andlaus/minor_reorg
...
Minor reorg
2016-12-14 21:46:45 +01:00
Atgeirr Flø Rasmussen
32d2c0d411
Merge pull request #43 from andlaus/blackoil_API_refactor
...
adapt to the recent blackoil API changes of opm-material
2016-01-05 08:20:24 +01:00