Arne Morten Kvarving
80b54a85ad
changed: use updateProperty_ in updateMaxWaterSaturation_
2022-10-05 15:21:52 +02:00
Arne Morten Kvarving
32995d34a1
changed: use updateProperty_ in updateMaxOilSaturation_
2022-10-05 15:18:49 +02:00
Arne Morten Kvarving
e4fe00413b
added: EclProblem::updateProperty_ function
...
this loops over the grid cells, extracts compressedDofIdx
and intensive quantities and then calls a passed function.
2022-10-05 15:11:49 +02:00
Atgeirr Flø Rasmussen
b9e157e3f5
Bugfix: fix dis/en-abling dissolution in the fluid state.
...
This affects the gas/water model, which should not have dissolution,
to be consistent with definitions of FluidState and ScalarFluidState
in the BlackOilIntensiveQuantities class.
2022-09-30 10:58:05 +02:00
Bård Skaflestad
3bb35b223c
Merge pull request #4119 from atgeirr/refactor-boundary-flux
...
Refactor boundary flux
2022-09-29 16:21:34 +02:00
Atgeirr Flø Rasmussen
54284fad7f
Remove unneeded timeIdx argument.
2022-09-29 14:13:49 +02:00
Atgeirr Flø Rasmussen
04183dea31
Ensure solvent boundary fluxes work.
...
This does the job for the element-context-based linearizer,
but not for the TpfaLinearizer, which when combined with the
solvent model will require a bit more work for bcs.
2022-09-28 08:47:04 +02:00
Atgeirr Flø Rasmussen
b7758aa706
Use std::array rather than C arrays.
2022-09-28 08:47:04 +02:00
Atgeirr Flø Rasmussen
bc13f57e95
Simplify the boundaryCondition() method.
2022-09-28 08:47:04 +02:00
Atgeirr Flø Rasmussen
5e08a9fc12
Make boundary condition data accessor function.
2022-09-28 08:47:04 +02:00
Atgeirr Flø Rasmussen
68e1479caf
[WIP] Refactor calculateBoundaryGradients_()
...
Not addressing solvent yet.
2022-09-28 08:47:04 +02:00
Atgeirr Flø Rasmussen
b65f5e9808
Add new overload for transmissibilityBoundary() without element context.
2022-09-28 08:47:04 +02:00
Kai Bao
7881161497
we only use drift compensation when wells are active
...
shut wells are not considered to be active.
2022-09-27 14:51:40 +02:00
Bård Skaflestad
eb0a516ff0
Merge pull request #4128 from ElyesAhmed/alugrid_fix
...
some fixes for flow_alugrid
2022-09-27 13:05:33 +02:00
OPMUSER
10b555ad3f
Fix PBUB and PDEW Export to Restart File
...
The saturation pressures written to the restart used SI units instead of the pressure units for the model. This PR fixes this.
2022-09-27 17:23:35 +08:00
Håkon Hægland
c9ae20bb64
Move updateRelperms() to the problem class
...
Moves the updateRelperms() method in BlackOilInstensiveQuantities in
opm-models to the EclProblem class and its parent MultiPhaseBaseProblem.
This is a more natural place for this method and it avoids having to
include EclMaterialManager into the BlackOilInstensiveQuantities.
2022-09-26 17:13:03 +02:00
Elyes Ahmed
3832fd5eb7
fixing AquiferModel in AlugridModel
2022-09-26 10:43:42 +02:00
Tor Harald Sandve
1849c95c2c
Merge pull request #4048 from hakonhagland/krnum
...
Add support for directional relative permeabilities
2022-09-26 09:10:48 +02:00
Elyes Ahmed
c4c4c7ac88
back to EclBaseAquiferModel
2022-09-23 14:01:40 +02:00
Elyes Ahmed
d6cbeb8b2b
minor
2022-09-23 13:32:58 +02:00
Elyes Ahmed
e05af09c43
cleaning
2022-09-23 13:28:04 +02:00
Elyes Ahmed
709a90b67d
some fixes for flow_alugrid
2022-09-23 11:59:01 +02:00
Kai Bao
3bed5f41c1
for the cells having zero thickness
...
we use the cell center depth to do the equilibration
2022-09-23 09:59:52 +02:00
Håkon Hægland
affc5cb53b
Return a pointer to the material manager
...
This is used by blackoilintensivequantities.hh. Further, for other
problems derived from MultiPhaseBaseProblem, that base class will
return a null pointer such that problems that do not override the
materialLawManagerPtr() method still can use the blackoil intensive
quantitites (which in the case of directional relative permeabilities
makes use of the problem reference to access the materialLawManager)
2022-09-22 23:54:29 +02:00
Arne Morten Kvarving
5bf41a6a28
hide --zoltan-params from --help
...
as this is an expert option, it should only
be displayed with --help-all
2022-09-16 21:00:45 +02:00
Arne Morten Kvarving
2fa479873e
break long line
2022-09-16 21:00:30 +02:00
Bård Skaflestad
52d653efee
Merge pull request #4117 from akva2/zoltan_params
...
added: command line option for zoltan customization
2022-09-16 16:24:24 +02:00
Arne Morten Kvarving
c1c850538a
added: command line option for zoltan customization
...
modeled after the linsolver support. a few built-in presets,
as well as reading options from a json file
2022-09-16 13:51:29 +02:00
Arne Morten Kvarving
4f9f0f921f
changed: use Serializer from opm-common
2022-09-16 13:12:11 +02:00
Arne Morten Kvarving
7362386d3d
changed: split out serialization in separate class
...
make it a template over a packer.
make EclMpiSerializer an instance of this template with
a MPI based packer, and move broadcasting functionality
to the new class
2022-09-16 13:11:45 +02:00
Arne Morten Kvarving
975e096d4c
changed: make container handlers in eclmpiserializer protected
...
users only use operator()
2022-09-16 11:59:40 +02:00
Arne Morten Kvarving
62f22062dd
eclmpiserializer: consistently make immutable access the exception
...
by nature of the operation, the data should be immutable on sender and
mutable on receiver. this way we atleast keep data immutable where we can,
and immutable access is explicitly marked by casts.
2022-09-16 11:57:23 +02:00
Arne Morten Kvarving
d31620b38b
eclmpiserializer: simplify handling
...
everything can now be done through operator()
2022-09-16 11:57:23 +02:00
Håkon Hægland
c6129ad9a4
Renamed function in ecfvstencil.hh
...
Use the new name of the dirId() function in ecfvstencil.hh
2022-09-16 09:10:42 +02:00
Håkon Hægland
cbdec23e50
Also check for unknown face direction
...
To avoid compiler warnings, we also need to check for the unknown face
direction due to change in the FaceDir::DirEnum values in opm-common.
2022-09-16 09:07:25 +02:00
Arne Morten Kvarving
9cbb0aa05e
added: pack array/vector of pod in one op
2022-09-15 14:04:41 +02:00
Arne Morten Kvarving
b1092c1a12
changed: refactor MPIPacker
...
to limit the overload party, we put packing details for
specific types in separate structs.
emit compiler error if unsupported type is given,
better to detect this on compile time rather than runtime
2022-09-15 14:04:41 +02:00
Arne Morten Kvarving
3a19ab31bd
Merge pull request #4106 from akva2/serializer_handle_tuples
...
changed: handle tuples in eclmpiserializer
2022-09-15 12:59:13 +02:00
Arne Morten Kvarving
3c389d5ece
changed: handle pairs as tuples in eclmpiserializer
2022-09-15 11:19:04 +02:00
Håkon Hægland
9ed974fda3
Minor simplification
...
Simplify code using the unknown facedir value.
2022-09-14 23:54:43 +02:00
Arne Morten Kvarving
5c78925981
fixed: wrong root rank in variadic broadcast
...
change the test to broadcast from rank 1 instead of 0
so this bug does not resurface
2022-09-14 19:38:24 +02:00
Håkon Hægland
7d0265dd44
Limit access to face direction.
...
Only access the grid face direction information if directional relperms
have been enabled.
2022-09-14 15:34:41 +02:00
Håkon Hægland
8b1bcb36bc
Adds support for KRNUM
2022-09-14 15:34:41 +02:00
Bård Skaflestad
67ec01a730
Merge pull request #4034 from plgbrts/equil2
...
Equilibration with water-gas ratio vs depth (RVWVD) table
2022-09-14 14:30:04 +02:00
Paul Egberts
7ca6e2a25e
Update equilibrationhelpers.hh
...
removed obsolete comment
2022-09-14 14:11:19 +02:00
Paul Egberts
29dec2686a
Update initstateequil.hh
...
removed obsolete comment
2022-09-14 14:08:40 +02:00
Paul Egberts
c2cac1b183
added equilibration option for water in gas
2022-09-13 18:02:33 +02:00
Arne Morten Kvarving
fdb2743ca9
changed: handle tuples in eclmpiserializer
...
thus we can remove support in MPIPacker
2022-09-13 15:54:37 +02:00
Arne Morten Kvarving
924ba450d2
fixed: remove_cvr_t should also remove volatile
2022-09-13 13:42:13 +02:00
Arne Morten Kvarving
f159eb524b
changed: handle all vectors in eclmpiserializer
...
thus we can remove support in MPIPacker
2022-09-13 13:29:47 +02:00