mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 09:16:07 -06:00
d0866c39b5742869d16e5e3a14079ebb27aa58ce
Specifically,
- Introduce a new class, UpwindSelector<Scalar> which provides a
selection service (method select()) to pick out a quantity across
an interface in the upwind direction.
Method select() is implemented only for the case of no
counter-current flow (i.e., no effects of gravity and/or capillary
pressure). The selector is affected through applying an explicit
sparse matrix to each quantity. This may be inefficient, but only
measurements will tell.
- Split function fluxFunc<ADB>() into two components,
phaseMobility<ADB>() and fluxFunc<ADB>(). The former computes
phase mobilities (per cell) for water and oil in a subset of the
grid cells and the latter computes the flux function (for water,
i.e., the first phase) based on a (2-) vector of phase
mobilities--either per cell or per internal interface.
- Compute explicit phase mobilities (per cell) in the non-linear
loop before employing the upwind selector to pick out proper
upwind mobilities per (internal) interface to define the quantity
'fw_face' which was previously computed by an arithmetic average.
autodiff-experimental
Experiments in Automatic Differentiation
Description
Simulator programs and utilities for automatic differentiation.
613 MiB
0 Stars
4 Watchers
0 Forks
Languages
C++
79.4%
ECL
13.8%
Cuda
1.7%
Pawn
1.7%
CMake
1.4%
Other
1.9%