Commit Graph

1714 Commits

Author SHA1 Message Date
Antonella Ritorto
92a1d3caab Separating LGRs in rank 0 cellCentroids_ 2023-09-28 16:03:08 +02:00
Atgeirr Flø Rasmussen
ffa7bc23ed Merge pull request #4885 from hnil/safer_fluid_evaluation
Safer fluid evaluation
2023-09-26 14:59:05 +02:00
Atgeirr Flø Rasmussen
8705cd16ad Merge pull request #4884 from atgeirr/fix-typo-in-macro
Fix typo in macro usage.
2023-09-25 12:38:50 +02:00
Atgeirr Flø Rasmussen
18883e7f83 Use the non-accelerated linear solver for some tests.
This is just for the type tag.
2023-09-25 10:44:06 +02:00
Bård Skaflestad
0f78d3935c Calculate Hydrocarbon Pore-Volumes if Requested
This commit separates the computation of hydrocarbon pore-volumes
out from the context of average pressure values.  These pore-volumes
go into the xHPV summary vectors and are, therefore, useful in their
own right-not just as a means to computing average pressure values.
2023-09-25 10:32:56 +02:00
hnil
c73b049497 added mpi checking of throw in property evaluation 2023-09-21 13:34:01 +02:00
Atgeirr Flø Rasmussen
2ffc7f8e6d Workaround to compile issue with two tests.
Two tests include ebos.hh, but probably should not: test_glift1 and test_RestartSerialization.
This change restores the build for those tests. Removing ebos.hh from their inclusion list
should be done, but currently exposes that some other headers are not properly standalone,
so it is a bit more work to do.
2023-09-21 12:41:27 +02:00
Bård Skaflestad
e6f0aae124 Refacto Fluid-In-Place Calculations For Maintainability
This commit splits updateFluidInPlace_() into several smaller helper
functions, each with a narrow purpose.  They're all just called from
the original call site--the body of updateFluidInPlace_()--but this
new version is, in my opinion, easier to reason about and there is
less shared state.

In anticipation of adding support for summary vectors FHPV and RHPV
(field and region levels of hydrocarbon pore-volumes), we also split
the pore-volume updates out to a branch separate from that needed
for average pressure calculations.
2023-09-21 11:54:47 +02:00
Atgeirr Flø Rasmussen
18f0d8fd27 Merge pull request #4859 from jcbowden/damariswriter-for-sim-fields-v4
Damaris - Moving Damaris functionality to it's own class
2023-09-20 09:06:48 +02:00
josh bowden
1e2d9360d7 Move Damaris functionality to it's own class.
Step one for moving Damaris calls out of EclWriter class and into its own DamarisWriter class;
EclProblem now calls both writeOutput methods and passes in the data::Solution object;

Add fix for first writeOutput() call not having PRESSURE data available;

data::Solution is now passed by rvalue ref into eclWriter::writeOutput();

guard added to prevent inclusion of damariswriter.hh
2023-09-19 21:20:08 +02:00
Bård Skaflestad
ddcafa8a91 Apply Regional Multipliers to Initial Transmissibilities
This commit adds a new member function,

    EclTransmissibility<>::applyNncMultreg_()

which applies regional transmissibility multipliers such as those
entered in the MULTREGT keyword to the explicit input NNCs.  We make
the application conditional on a new parameter, default value
'false', and pass 'true' as the argument from 'finishInit()'.

Along with TransMult::getRegionMultiplierNNC(), this implements all
known connection behaviours for inter-region connections.
Multipliers internal to a region in MULTREGT are not yet supported.
2023-09-15 10:55:23 +02:00
Markus Blatt
b209f6af77 Merge pull request #4778 from aritorto/cellCentroid
Refactor element centroids lookup
2023-09-15 10:02:15 +02:00
Vegard Kippe
c0a741e270 Adding support for the BFLOW[I|J|K] summary vectors. 2023-09-13 09:28:10 +02:00
Bård Skaflestad
21c897fbca Treat Numerical Aquifer Connections as NNCs for Output Purposes
Connections between reservoir cells and numerical aquifer cells, or
between numerical aquifer cells when multiple such cells define a
single numerical aquifer, should always be treated as NNCs for
output purposes and end up in the (NNC1,NNC2,TRANNNC) output arrays.
To this end, make a special purpose predicate to identify numerical
aquifer connections when forming the output NNC and transmissibility
arrays and act accordingly in member functions 'computeTrans_()' and
'exportNncStructure_()'.

While here, also pick up the NNC transmissibility value from
'globalTrans()' since multiplier operations like MULTREGT might have
affected the explicit values entered in the NNC, EDITNNC, and
EDITNNCR keywords.  This is in preparation of properly incorporating
such multipliers in follow-up work.  Finally, fix a subtle problem
caused by using 'std::abs()' to check for non-zero connections.
When accounting for explicit NNCs, it might happen that the final
transmissibility would become negative with a sufficiently large
absolute value that 'abs(t) > threshold' would be true.  This would
result in outputting a negative transmissibility value to the NNC
arrays which would confuse result processors.
2023-09-06 15:53:13 +02:00
Svenn Tveit
8da6e5fd2f Fix DIRICHLET option in BCPROP.
Additional fix: BCPROP does not need to be defined each report step.
2023-09-05 14:57:54 +02:00
Arne Morten Kvarving
e3787b1ca8 anonymize unused parameter 2023-09-04 14:35:20 +02:00
Bård Skaflestad
9c58585538 Merge pull request #4823 from akva2/ecltimestepping_separate
changed: put ecl time stepping parameters in separate struct
2023-09-04 10:54:46 +02:00
Bård Skaflestad
5408f7ea12 Merge pull request #4803 from akva2/geomech_rst_output
added output writing for geomechanical module

Supersedes and closes #4588.
2023-09-04 10:11:05 +02:00
Tor Harald Sandve
80cbfe7fda Merge pull request #4819 from hakonhagland/gecon3
Implement support for GECON keyword
2023-09-01 15:06:48 +02:00
Bård Skaflestad
c6e30fbf3c Merge pull request #4820 from atgeirr/parallel-nldd-fixes
Fixes to enable using the NLDD nonlinear solver option in MPI parallel runs
2023-09-01 09:51:06 +02:00
Atgeirr Flø Rasmussen
151eac9110 Copy overlap data after local solve.
Also update intensive quantities in overlap afterwards.
2023-08-31 13:01:50 +02:00
Arne Morten Kvarving
3c525aefae changed: put ecl time stepping parameters in separate struct
this to allow reuse in ebos simulators
2023-08-30 11:22:22 +02:00
hnil
13308ed2af tpfa linearizer for thermal used for co2store and blackoil
-- add new function need for tpfa linearizer in thermal
-- set tpfa linearizer for blackoil with energy
-- set tpfa linearizer for gasoil and energy which include co2store
-- NB diffusion is disabled for this simulators
2023-08-29 16:03:44 +02:00
Antonella Ritorto
1c2069cb6a Remove lookUpCellCentroid for rank zero 2023-08-29 10:12:48 +02:00
Antonella Ritorto
5d9f8a88b4 LookUpCellCentroid used to search cell centroids in eclbasevanguard 2023-08-29 08:45:59 +02:00
Håkon Hægland
2f9b136bb1 Implement support for GECON keyword
Implement support for item 2 and 3 of the GECON keyword
2023-08-29 01:07:21 +02:00
Vegard Kippe
f5c31588cb Quick fix.. 2023-08-25 14:01:51 +02:00
Antonella Ritorto
853e2243e4 Lookup of cartesian index and element data refactored. 2023-08-22 13:51:53 +02:00
Bård Skaflestad
e84523171b Mark TransMult Object as Const
That way it's obvious that the surrounding code does not change
the object.
2023-08-21 14:15:22 +02:00
Atgeirr Flø Rasmussen
ecfe98dd3d Merge pull request #4758 from hnil/subdomain_updates
moved fully implicit calls to opm-simulators
2023-08-18 08:18:58 +02:00
Bård Skaflestad
b16837c19f Remove Unused Return Value
The return value from applyNncToGridTrans_() was never used and
the author confirms that this is intentional.  Remove the entire
return value to signal this intention.
2023-08-17 12:03:50 +02:00
hnil
6ac3fe3794 added output writing for geomechanical module 2023-08-17 11:44:47 +02:00
Markus Blatt
b4e7a4fc85 Merge pull request #4770 from akva2/eclproblem_cleanup_timestepping
EclProblem: cleanup time stepping related members
2023-08-17 11:19:55 +02:00
Bård Skaflestad
5031647712 Inspect Array Element to Decide When to Apply TRAN? Keyword 2023-08-17 09:37:53 +02:00
Arne Morten Kvarving
13b0e14f18 EclGenericProblem: remove unused time steppping parameters
and remove some hidden duplicates
2023-08-15 14:02:55 +02:00
Arne Morten Kvarving
c1e1b0ee70 eclgenericproblem: remove unused methods 2023-08-15 14:02:33 +02:00
Arne Morten Kvarving
46aae8cda6 changed: move EclInterRegFlows to opm/simulators/flow
no opm-models usage
2023-08-15 13:14:42 +02:00
Arne Morten Kvarving
dd1359bcf0 changed: move EclActionHandler to opm/simulators/flow
no opm-models usage
2023-08-15 12:10:01 +02:00
Arne Morten Kvarving
92fa9577da consistently use std::size_t 2023-08-15 09:32:10 +02:00
Arne Morten Kvarving
b0f1e5d3f5 move output error log to LogOutputHelper 2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
e2d4bae78d move output of fip reservoir log to LogOutputHelper 2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
daced47301 move output of fip log to LogOutputHelper 2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
38e9b5a100 changed: move helpers for calculation pressure averages to separate compile unit
for reuse purposes
2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
f5985ff02f move output of injection log to LogOutputHelper 2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
c9b703f40d move output of production log to LogOutputHelper 2023-08-14 11:44:32 +02:00
Arne Morten Kvarving
91a4701fa4 added: add dedicated class for output of logs
start by moving output of cumulative logs to the new class
2023-08-14 11:44:32 +02:00
Svenn Tveit
161c895c63 Remove redundent check 2023-08-11 16:38:49 +02:00
Svenn Tveit
b84837fc61 Moved water phase check outside loop 2023-08-11 15:34:31 +02:00
Svenn Tveit
8b6a504874 Enable aquifers in H2STORE oil/gas version 2023-08-11 13:23:57 +02:00
Arne Morten Kvarving
20a9c3a0c3 EclProblem: put drsdtcon with friends in separate class 2023-08-11 11:43:39 +02:00