Andreas Lauser
5194cc5122
BlackoilModelEbos: clean up and fix the FIP code
...
mainly this should now work properly in parallel, because non-interior
cells are not counted multiple times anymore. also, the number of
loops over the global arrays has been reduced, some variables have
been renamed and some comments were added.
finally this fixes the average pressure for regions that do not
contain hydrocarbons (or at least it unifies it with the approach for
regions that contain hydrocarbons).
2017-03-15 11:07:45 +01:00
Andreas Lauser
384fcc5114
BlackoilModelEbos: minor stylistic improvements
...
mainly indentation fixes and removal of duplicate blank lines.
2017-03-15 11:06:28 +01:00
dr-robertk
029bc6daa7
Merge pull request #1010 from blattms/ebos-parallel-convergence
...
Switch off non-owner entries during accumulation in getConvergence
2017-03-14 14:13:19 +01:00
Atgeirr Flø Rasmussen
930f0ea9a0
Merge pull request #1076 from atgeirr/fix-conditional-visc-output
...
Fix conditional viscosity output
2017-02-24 17:55:18 +01:00
Atgeirr Flø Rasmussen
cef4f5d9e5
Avoid signed/unsigned comparison.
2017-02-24 10:57:17 +01:00
babrodtk
729a220e5c
Updated to iterate over elements instead of cell indices, though this changes the output values
2017-02-24 10:48:42 +01:00
babrodtk
1e5df1b720
Added writing initial timestep data to restart
2017-02-22 10:12:47 +01:00
Andreas Lauser
9dab0323ce
flow_ebos FIP: create the element iterator object as part of the for statement
...
IMO, the previous solution was easier to read and a few lines shorter,
but I don't really care about how this is done...
2017-02-21 13:53:08 +01:00
Andreas Lauser
1f7be0d324
flow_ebos FIP: add comments about the pore volume calculation
2017-02-21 13:33:24 +01:00
Andreas Lauser
a27a2c33a7
flow_ebos FIP: consider all pore volume modifiers
...
for now "all pore volume multipliers" means compressibility. the
storage term of the simulator includes them, so they need to be
considered when calculating the fluid in place as well.
2017-02-21 10:03:11 +01:00
Andreas Lauser
55547a1b86
flow_ebos FIP: try to fix hcpv and pres in the parallel case
...
the global reduction must be done _after_ the local computation, not
before it...
thanks to [at]blattms and [at]atgeirr.
2017-02-20 16:28:20 +01:00
Andreas Lauser
d03dbb7e2c
flow_ebos FIP: unify the parallel and non-parallel versions
2017-02-20 16:28:20 +01:00
Andreas Lauser
76a825f36d
flow_ebos: make the FIP code consistent with flow_legacy
...
in particular, the rock compressibility effects are not considered in
the FIP numbers anymore. While I'm not sure if this is correct or not,
it at least makes the results consistent with those produced by
'flow_legacy'.
2017-02-20 16:28:20 +01:00
Andreas Lauser
6949de699f
flow_ebos: improve the FIP code
...
in particular, it can now be called if the cache for the intensive
quantities is "cold".
2017-02-20 16:28:20 +01:00
babrodtk
c39964c712
Added try-catch to computation of bubble/dew point pressure
2017-02-17 10:40:43 +01:00
babrodtk
4a46451d95
Added output of dew and bubble point pressures
2017-02-17 10:40:43 +01:00
babrodtk
8830fd5880
Minor whitespace fixes to be consistent with surrounding code
2017-02-15 14:30:54 +01:00
Atgeirr Flø Rasmussen
41fb8eb933
Remove pessimizing move and silence warnings.
2017-02-14 10:50:31 +01:00
Robert Kloefkorn
4c118c6455
Merge remote-tracking branch 'upstream/master' into PR/cleanup-output-writers
2017-02-13 21:28:54 +01:00
Robert Kloefkorn
b18f07c1bd
Address comments.
2017-02-13 16:11:24 +01:00
Atgeirr Flø Rasmussen
27c0430932
Change include paths for moved headers.
2017-02-10 16:07:25 +01:00
Robert Kloefkorn
82658c92d0
Removal of SimulatorFullyImplicitBlackoilOutputEbos.{h,c}pp.
...
All simulators now use SimulationDataContainer to store intermediate data that
is passed to the output Solution container. This is in cases not the most
efficient way, but it's unified to avoid errors from code duplication.
2017-02-09 16:57:45 +01:00
Arne Morten Kvarving
a14f5392ee
fixed: pass the fipnum data into the adaptive timer stepper
...
summary substep reports requires FIP data
2017-02-09 09:35:40 +01:00
Kai Bao
19eb0d96c8
adding applyVREPGroupControl() to StandardWellsDense.
2017-01-25 14:11:27 +01:00
Kai Bao
f53bf6f957
adding a pointer to rate_converter in BlackoilModelEbos
...
in StandardWellsDense.
2017-01-25 14:11:27 +01:00
Kai Bao
af26b70fc9
adding a rate converter to BlackoilModelEbos
...
and also function updateRateConverter() to update its state.
2017-01-25 14:11:27 +01:00
Andreas Lauser
7d5c5f8acc
Merge pull request #1029 from totto82/bugfix_swatinit
...
BUGFIX Pass solution from flowEbos to ebos initially
2017-01-20 15:02:50 +01:00
Tor Harald Sandve
ce2aa77cbd
BUGFIX Pass solution from flowEbos to ebos initially
...
The initial solution in ebos and in flowebos are different in cases where
swatinit is present. Pass the initial solution and recalculate the
intensive quantities make sure that the flowEbos initial solution is
used.
2017-01-19 09:18:55 +01:00
Kai Bao
9e93ebcc64
check whether the group targets are converged.
2017-01-16 16:18:35 +01:00
Andreas Lauser
d87b788d09
BlackoilModelEbos: make computeFluidInPlace() work unconditionally
...
i.e. it now works regardless of whether the cache for intensive
quatities is available or not.
2017-01-16 12:42:35 +01:00
Atgeirr Flø Rasmussen
0028b35e03
Merge pull request #1018 from andlaus/simplify_isParallel
...
simplify BlackoilModelEbos::isParallel()
2017-01-12 10:41:15 +01:00
Tor Harald Sandve
28bbe20344
Merge pull request #1012 from andlaus/cleanup_StandardWellsDense
...
small improvements to StandardWellsDense
2017-01-12 10:27:18 +01:00
Andreas Lauser
3a9146866a
simplify BlackoilModelEbos::isParallel()
2017-01-11 18:57:47 +01:00
Andreas Lauser
f2115b44ac
BlackoilModelEbos: remove the last traces of "SolutionState"
...
it was not used for real for a while anyway.
2017-01-11 17:07:08 +01:00
Andreas Lauser
b324d17003
small improvements to StandardWellsDense
...
the most significant change is that only a "PhaseUsage" object must be
passed to its constructor instead of a full "fluid object". also, the
pointers to the vector of "active" phases has been converted into a
full object. (this helps to avoid potential use-after-free errors.)
2017-01-11 17:02:20 +01:00
Markus Blatt
aacbdb1777
Switch off non-owner entries during accumulation.
...
Previously entries attached to cells that are present
on multiply processes were acumulated several times.
2017-01-11 12:20:32 +01:00
Andreas Lauser
ef731672c9
remove the BlackoilPropsAdInterface abstraction layer
...
instead, directly use BlackoilPropsAdFromDeck.
2017-01-02 13:19:23 +01:00
Atgeirr Flø Rasmussen
ae1d78f505
Remove unused argument, silence warnings.
2016-12-29 14:34:16 +01:00
Atgeirr Flø Rasmussen
3e120d6e33
Merge pull request #964 from totto82/reuse_cache2
...
Reuse cache revisited
2016-12-20 14:46:00 +01:00
Atgeirr Flø Rasmussen
45fed6d591
Merge pull request #975 from totto82/clean_up_2p
...
Use templates to avoid hardcoded typedef
2016-12-19 13:01:05 +01:00
Tor Harald Sandve
4fdf57db04
Consider the timestep converged only when number of iteration > minIter
2016-12-19 10:55:28 +01:00
Tor Harald Sandve
a4bc2d455e
Fix rebase
2016-12-19 10:55:28 +01:00
Tor Harald Sandve
ae5d812bc5
BUGFIX cache reuse.
...
invalidate cachedQuantities when updated and when timestep fails
2016-12-19 10:55:28 +01:00
Tor Harald Sandve
ad6b3f995f
BUGFIX pass pvtnum to density in convertResults() in FlowEbos
2016-12-15 13:20:09 +01:00
Tor Harald Sandve
2bfa96fddf
Templatize to avoid hardcoded typedef
...
Prepare for changing the size of the blocks by templatize BVectors and
Evalution
2016-12-12 14:52:30 +01:00
Andreas Lauser
ef15d76831
Merge commit 'refs/pull/947/head' of https://github.com/OPM/opm-simulators into no_opm-parser_pointers
...
* https://github.com/OPM/opm-simulators :
[bugfix] add defunct_well_names to BlackoilModelEbos.
[bugfix] fix ownerMask for parallel FIP code.
flow_ebos: tell the ebos in ourselves to not handle SWATINIT
[bugfix] Make initialization work in parallel for flow_ebos.
[bugfix] make flow_ebos work when no wells are present.
flow_ebos: only instantiate the grid once
2016-12-06 19:43:47 +01:00
Andreas Lauser
f7910af7d7
flow_ebos: do not use (smart) pointers for opm-parser objects anymore
...
this patch also includes code to make FlowMainEbos more autonomous
(i.e. it does not derive from FlowMainBase anymore). this allows more
flexibility how and what stuff gets created.
2016-12-05 20:11:43 +01:00
Robert Kloefkorn
2eca5d71e6
[bugfix] fix ownerMask for parallel FIP code.
2016-12-01 22:25:46 +01:00
Andreas Lauser
e6acf888cc
flow_ebos: tell the ebos in ourselves to not handle SWATINIT
...
because the flow part also wants to do this. (and it is quite a bit
more stubborn!)
2016-12-01 16:50:31 +01:00
Robert Kloefkorn
1c2a2c417c
[bugfix] make flow_ebos work when no wells are present.
2016-12-01 16:50:28 +01:00