A class which handles tracers as specified in by ECL.
More...
#include <TracerModel.hpp>
|
| | TracerModel (Simulator &simulator) |
| |
| void | init (bool rst) |
| |
| void | prepareTracerBatches () |
| |
| void | beginTimeStep () |
| |
| void | endTimeStep () |
| | Informs the tracer model that a time step has just been finished. More...
|
| |
| template<class Restarter > |
| void | serialize (Restarter &) |
| | This method writes the complete state of all tracer to the hard disk. More...
|
| |
| template<class Restarter > |
| void | deserialize (Restarter &) |
| | This method restores the complete state of the tracer from disk. More...
|
| |
| template<class Serializer > |
| void | serializeOp (Serializer &serializer) |
| |
| int | numTracers () const |
| | Return the number of tracers considered by the tracerModel. More...
|
| |
| const std::string & | name (int tracerIdx) const |
| | Return the tracer name. More...
|
| |
| std::string | fname (int tracerIdx) const |
| |
| std::string | sname (int tracerIdx) const |
| |
| std::string | wellfname (int tracerIdx) const |
| |
| std::string | wellsname (int tracerIdx) const |
| |
| Phase | phase (int tracerIdx) const |
| |
| const std::vector< bool > & | enableSolTracers () const |
| |
| GetPropType< TypeTag, Properties::Scalar > | freeTracerConcentration (int tracerIdx, int globalDofIdx) const |
| | Return the tracer concentration for tracer index and global DofIdx. More...
|
| |
| GetPropType< TypeTag, Properties::Scalar > | solTracerConcentration (int tracerIdx, int globalDofIdx) const |
| |
| void | setFreeTracerConcentration (int tracerIdx, int globalDofIdx, GetPropType< TypeTag, Properties::Scalar > value) |
| |
| void | setSolTracerConcentration (int tracerIdx, int globalDofIdx, GetPropType< TypeTag, Properties::Scalar > value) |
| |
| void | setEnableSolTracers (int tracerIdx, bool enableSolTracer) |
| |
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & | getWellTracerRates () const |
| | Return well tracer rates. More...
|
| |
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & | getWellFreeTracerRates () const |
| |
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & | getWellSolTracerRates () const |
| |
| const std::unordered_map< int, std::vector< MSWellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & | getMswTracerRates () const |
| |
|
| template<TracerTypeIdx Index> |
| Scalar | computeVolume_ (const int tracerPhaseIdx, const unsigned globalDofIdx, const unsigned timeIdx) const |
| |
| template<TracerTypeIdx Index> |
| std::pair< TracerEvaluation, bool > | computeFlux_ (const int tracerPhaseIdx, const ElementContext &elemCtx, const unsigned scvfIdx, const unsigned timeIdx) const |
| |
| template<TracerTypeIdx Index> |
| TracerEvaluation | computeDiffusivity_ (const int tracerPhaseIdx, const ElementContext &elemCtx, const unsigned scvfIdx, const unsigned timeIdx) const |
| | Diffusive coefficient of a face for the Fickian flux J = -D_mol * A * diffusivity * w * (c_J - c_I). The geometric (porosity weighted) face diffusivity multiplies the molecular diffusion coefficient D_mol of the tracer (TRDIFxxx), and w is the face average of the saturation times the inverse formation volume factor of the carrier phase of the tracer (see carrierSurfaceVolume_()). The coefficient is zero unless the carrier is present in both cells (see carrierPresent_()). More...
|
| |
| template<TracerTypeIdx Index> |
| TracerEvaluation | computeDispersivity_ (const int tracerPhaseIdx, const ElementContext &elemCtx, const unsigned scvfIdx, const unsigned timeIdx) const |
| | Dispersive coefficient of a face for the Fickian flux J = -(w * |u| * disp) * (c_J - c_I), where disp is the geometric dispersivity (DISPERC, as in the blackoil dispersion module), |u| the average max-norm filter velocity of the carrier phase in the two cells, and w the face average of the inverse formation volume factor of the carrier phase (see carrierSurfaceVolume_()). The saturation is already in the filter velocity. Zero unless DISPERC is in the deck and the carrier is present in both cells (see carrierPresent_()). More...
|
| |
| template<TracerTypeIdx Index, class TrRe > |
| Scalar | storage1_ (const TrRe &tr, const unsigned tIdx, const unsigned I, const unsigned I1, const bool cache) |
| |
| template<class TrRe > |
| void | assembleTracerEquationVolume (TrRe &tr, const ElementContext &elemCtx, const Scalar scvVolume, const Scalar dt, unsigned I, unsigned I1) |
| |
| template<class TrRe > |
| void | assembleTracerEquationFlux (TrRe &tr, const ElementContext &elemCtx, unsigned scvfIdx, unsigned I, unsigned J, const Scalar dt) |
| |
| template<class TrRe , class Well > |
| void | assembleTracerEquationWell (TrRe &tr, const Well &well) |
| |
| template<class TrRe > |
| void | assembleTracerEquationBoundary (TrRe &tr, const ElementContext &elemCtx, const unsigned I, const Scalar dt) |
| | Boundary conditions for the tracer equations. More...
|
| |
| template<class TrRe > |
| void | assembleTracerEquationSource (TrRe &tr, const Scalar dt, unsigned I) |
| |
| void | assembleTracerEquations_ () |
| |
| template<TracerTypeIdx Index, class TrRe > |
| void | updateElem (TrRe &tr, const Scalar scvVolume, const unsigned globalDofIdx) |
| |
| void | updateStorageCache () |
| |
| template<TracerTypeIdx Index, class TrRe > |
| void | copyForOutput (TrRe &tr, const std::vector< TracerVector > &dx, const Scalar S, const unsigned tIdx, const unsigned globalDofIdx, std::vector< TracerVectorSingle > &sc) |
| |
| template<TracerTypeIdx Index, class TrRe > |
| void | assignRates (const TrRe &tr, const Well &eclWell, const std::size_t i, const std::size_t I, const Scalar rate, std::vector< WellTracerRate< Scalar > > &tracerRate, std::vector< MSWellTracerRate< Scalar > > *mswTracerRate, std::vector< WellTracerRate< Scalar > > &splitRate) |
| |
| void | convertEffectiveRatesToRawRates () |
| |
| void | checkBoundaryTracers_ (DeferredLogger &deferredLogger) const |
| | Cross-reference the boundary conditions of the schedule with the tracers. More...
|
| |
| void | buildAquiferTracerConnections_ (DeferredLogger &deferredLogger) |
| |
| template<class TrRe > |
| void | assembleTracerEquationAquifer_ (TrRe &tr) |
| |
| template<class TrRe > |
| bool | solveBatch_ (TrRe &tr, std::vector< TracerVector > &dx) |
| |
| void | advanceTracerFields () |
| |
| void | doInit (bool rst, std::size_t numGridDof, std::size_t gasPhaseIdx, std::size_t oilPhaseIdx, std::size_t waterPhaseIdx) |
| | Initialize all internal data structures needed by the tracer module. More...
|
| |
| bool | linearSolve_ (const TracerMatrix &M, TracerVector &x, TracerVector &b) |
| |
| bool | linearSolveBatchwise_ (const TracerMatrix &M, std::vector< TracerVector > &x, std::vector< TracerVector > &b) |
| |
| bool | linearSolveReorder_ (const TracerMatrix &M, std::vector< TracerVector > &x, std::vector< TracerVector > &b) |
| | Solve the tracer equations cell by cell in the order of the flow. More...
|
| |
| GetPropType< TypeTag, Properties::Scalar > | currentConcentration_ (const Well &eclWell, const std::string &trName, const SummaryState &summaryState) const |
| |
|
| template<TracerTypeIdx Index> |
| static int | carrierPhaseIdx_ (const int tracerPhaseIdx) |
| | Phase that carries the tracer of the given type: the phase of the tracer for the free tracer, the gas phase for the solution tracer of an oil tracer (vaporized oil) and the oil phase for the solution tracer of a gas tracer (dissolved gas). More...
|
| |
| static bool | hasSolutionPart_ (const int tracerPhaseIdx) |
| | Whether the tracers of the phase have a solution part (vaporized oil, dissolved gas) More...
|
| |
| template<TracerTypeIdx Index, class FluidState > |
| static Scalar | carrierSurfaceVolume_ (const int tracerPhaseIdx, const FluidState &fs, const bool saturationWeighted) |
| | Surface volume of the tracer carrier per unit pore volume of a cell: the inverse formation volume factor of the carrier phase, times Rv or Rs for the solution tracer (the dissolved component per surface volume of the carrier) and, optionally, the saturation of the carrier. More...
|
| |
| template<TracerTypeIdx Index, class FluidState > |
| static bool | carrierPresent_ (const int tracerPhaseIdx, const FluidState &fs) |
| | Whether the carrier of the tracer is present in a cell, i.e. there is carrier phase (and, for the solution tracer, dissolved or vaporized component) to hold tracer. The Fickian flux across a face is zero unless this is the case in both cells: averaging over the two cells would otherwise couple the tracer into a cell where its concentration has no meaning. More...
|
| |
|
| Simulator & | simulator_ |
| |
| bool | dispersionActive_ |
| |
| std::vector< TracerBatch< TracerVector > > | tbatch |
| |
| std::array< std::array< std::vector< Scalar >, numPhases >, 2 > | vol1_ |
| |
| ElementChunks< GridView, Dune::Partitions::All > | element_chunks_ |
| |
| std::unordered_map< unsigned, std::vector< AquiferTracerCellSpec > > | aquifer_tracer_cells_ |
| |
| int | reorderRetrySteps_ = 0 |
| |
| const GetPropType< TypeTag, Properties::GridView > & | gridView_ |
| |
| const EclipseState & | eclState_ |
| |
| const CartesianIndexMapper & | cartMapper_ |
| |
| const GetPropType< TypeTag, Properties::DofMapper > & | dofMapper_ |
| |
| std::vector< int > | tracerPhaseIdx_ |
| |
| std::vector< bool > | enableSolTracers_ |
| |
| std::vector< TracerVector > | tracerConcentration_ |
| |
| std::unique_ptr< TracerMatrix > | tracerMatrix_ |
| |
| bool | useReorderSolver_ |
| |
| std::vector< TracerVectorSingle > | freeTracerConcentration_ |
| |
| std::vector< TracerVectorSingle > | solTracerConcentration_ |
| |
| std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > | wellTracerRate_ |
| |
| std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > | wellFreeTracerRate_ |
| |
| std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > | wellSolTracerRate_ |
| |
| std::unordered_map< int, std::vector< MSWellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > | mSwTracerRate_ |
| |
| std::function< std::array< double, dimWorld >(int)> | centroids_ |
| | Function returning the cell centers. More...
|
| |
template<class TypeTag>
class Opm::TracerModel< TypeTag > A class which handles tracers as specified in by ECL.
◆ CartesianIndexMapper
| using Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::CartesianIndexMapper = Dune::CartesianIndexMapper<GetPropType< TypeTag, Properties::Grid > > |
|
inherited |
◆ TracerTypeIdx
◆ TracerModel()
◆ advanceTracerFields()
References Opm::TracerModel< TypeTag >::assembleTracerEquations_(), Opm::TracerModel< TypeTag >::convertEffectiveRatesToRawRates(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::freeTracerConcentration_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::mSwTracerRate_, Opm::TracerModel< TypeTag >::simulator_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::solTracerConcentration_, Opm::TracerModel< TypeTag >::solveBatch_(), Opm::TracerModel< TypeTag >::tbatch, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellFreeTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellSolTracerRate_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellTracerRate_.
Referenced by Opm::TracerModel< TypeTag >::endTimeStep().
◆ assembleTracerEquationAquifer_()
template<class TypeTag >
template<class TrRe >
References Opm::TracerModel< TypeTag >::aquifer_tracer_cells_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, and Opm::TracerModel< TypeTag >::simulator_.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assembleTracerEquationBoundary()
template<class TypeTag >
template<class TrRe >
| void Opm::TracerModel< TypeTag >::assembleTracerEquationBoundary |
( |
TrRe & |
tr, |
|
|
const ElementContext & |
elemCtx, |
|
|
const unsigned |
I, |
|
|
const Scalar |
dt |
|
) |
| |
|
inlineprotected |
Boundary conditions for the tracer equations.
The flow of the tracer phase across a boundary face of type RATE, FREE or DIRICHLET (BCCON + BCPROP) is the one given by the flow equations, i.e. the boundary flux of the local residual evaluated at the current state. The concentration of the fluid entering through the face is taken from BCTRACER, and fluid leaving the cell carries the tracer concentration of the cell. As for BCPROP, a positive rate is a flow out of the domain and a negative rate is a flow into the domain. Other boundary types carry no mass flow.
For oil and gas tracers, outflow is split in a free and a solution part, as for producer wells.
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::name(), Opm::TracerModel< TypeTag >::simulator_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assembleTracerEquationFlux()
template<class TypeTag >
template<class TrRe >
| void Opm::TracerModel< TypeTag >::assembleTracerEquationFlux |
( |
TrRe & |
tr, |
|
|
const ElementContext & |
elemCtx, |
|
|
unsigned |
scvfIdx, |
|
|
unsigned |
I, |
|
|
unsigned |
J, |
|
|
const Scalar |
dt |
|
) |
| |
|
inlineprotected |
References Opm::TracerModel< TypeTag >::dispersionActive_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, Opm::TracerModel< TypeTag >::hasSolutionPart_(), and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assembleTracerEquations_()
References Opm::TracerModel< TypeTag >::assembleTracerEquationAquifer_(), Opm::TracerModel< TypeTag >::assembleTracerEquationBoundary(), Opm::TracerModel< TypeTag >::assembleTracerEquationFlux(), Opm::TracerModel< TypeTag >::assembleTracerEquationSource(), Opm::TracerModel< TypeTag >::assembleTracerEquationVolume(), Opm::TracerModel< TypeTag >::assembleTracerEquationWell(), Opm::TracerModel< TypeTag >::element_chunks_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::mSwTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::numTracers(), OPM_BEGIN_PARALLEL_TRY_CATCH, OPM_END_PARALLEL_TRY_CATCH_LOG, Opm::TracerModel< TypeTag >::simulator_, Opm::TracerModel< TypeTag >::tbatch, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellFreeTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellSolTracerRate_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellTracerRate_.
Referenced by Opm::TracerModel< TypeTag >::advanceTracerFields().
◆ assembleTracerEquationSource()
template<class TypeTag >
template<class TrRe >
| void Opm::TracerModel< TypeTag >::assembleTracerEquationSource |
( |
TrRe & |
tr, |
|
|
const Scalar |
dt, |
|
|
unsigned |
I |
|
) |
| |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assembleTracerEquationVolume()
template<class TypeTag >
template<class TrRe >
| void Opm::TracerModel< TypeTag >::assembleTracerEquationVolume |
( |
TrRe & |
tr, |
|
|
const ElementContext & |
elemCtx, |
|
|
const Scalar |
scvVolume, |
|
|
const Scalar |
dt, |
|
|
unsigned |
I, |
|
|
unsigned |
I1 |
|
) |
| |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution, and Opm::TracerModel< TypeTag >::vol1_.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assembleTracerEquationWell()
template<class TypeTag >
template<class TrRe , class Well >
| void Opm::TracerModel< TypeTag >::assembleTracerEquationWell |
( |
TrRe & |
tr, |
|
|
const Well & |
well |
|
) |
| |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::currentConcentration_(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::mSwTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::name(), Opm::TracerModel< TypeTag >::simulator_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellfname(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellFreeTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellsname(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellSolTracerRate_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellTracerRate_.
Referenced by Opm::TracerModel< TypeTag >::assembleTracerEquations_().
◆ assignRates()
template<class TypeTag >
| void Opm::TracerModel< TypeTag >::assignRates |
( |
const TrRe & |
tr, |
|
|
const Well & |
eclWell, |
|
|
const std::size_t |
i, |
|
|
const std::size_t |
I, |
|
|
const Scalar |
rate, |
|
|
std::vector< WellTracerRate< Scalar > > & |
tracerRate, |
|
|
std::vector< MSWellTracerRate< Scalar > > * |
mswTracerRate, |
|
|
std::vector< WellTracerRate< Scalar > > & |
splitRate |
|
) |
| |
|
inlineprotected |
◆ beginTimeStep()
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::numTracers(), and Opm::TracerModel< TypeTag >::updateStorageCache().
◆ buildAquiferTracerConnections_()
References Opm::TracerModel< TypeTag >::aquifer_tracer_cells_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::eclState_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::name(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::numTracers(), Opm::TracerModel< TypeTag >::simulator_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerPhaseIdx_, and Opm::DeferredLogger::warning().
Referenced by Opm::TracerModel< TypeTag >::prepareTracerBatches().
◆ carrierPhaseIdx_()
template<class TypeTag >
| static int Opm::TracerModel< TypeTag >::carrierPhaseIdx_ |
( |
const int |
tracerPhaseIdx | ) |
|
|
inlinestaticprotected |
Phase that carries the tracer of the given type: the phase of the tracer for the free tracer, the gas phase for the solution tracer of an oil tracer (vaporized oil) and the oil phase for the solution tracer of a gas tracer (dissolved gas).
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free.
◆ carrierPresent_()
template<class TypeTag >
| static bool Opm::TracerModel< TypeTag >::carrierPresent_ |
( |
const int |
tracerPhaseIdx, |
|
|
const FluidState & |
fs |
|
) |
| |
|
inlinestaticprotected |
Whether the carrier of the tracer is present in a cell, i.e. there is carrier phase (and, for the solution tracer, dissolved or vaporized component) to hold tracer. The Fickian flux across a face is zero unless this is the case in both cells: averaging over the two cells would otherwise couple the tracer into a cell where its concentration has no meaning.
◆ carrierSurfaceVolume_()
template<class TypeTag >
| static Scalar Opm::TracerModel< TypeTag >::carrierSurfaceVolume_ |
( |
const int |
tracerPhaseIdx, |
|
|
const FluidState & |
fs, |
|
|
const bool |
saturationWeighted |
|
) |
| |
|
inlinestaticprotected |
Surface volume of the tracer carrier per unit pore volume of a cell: the inverse formation volume factor of the carrier phase, times Rv or Rs for the solution tracer (the dissolved component per surface volume of the carrier) and, optionally, the saturation of the carrier.
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Solution.
◆ checkBoundaryTracers_()
Cross-reference the boundary conditions of the schedule with the tracers.
This can not be done when parsing the schedule since the tracers are not known there. A BCTRACER entry for an undeclared tracer is an error. The phase of a BCTRACER entry is the BCPROP component of the face, so a warning is given if that differs from the phase of the tracer (the tracer will then not enter).
Tracers are transported across boundaries of type RATE, FREE and DIRICHLET. A warning is given for BCTRACER entries on faces that are never of one of these types (they are ignored).
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::name(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::numTracers(), Opm::TracerModel< TypeTag >::simulator_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerPhaseIdx_, and Opm::DeferredLogger::warning().
Referenced by Opm::TracerModel< TypeTag >::prepareTracerBatches().
◆ computeDiffusivity_()
template<class TypeTag >
| TracerEvaluation Opm::TracerModel< TypeTag >::computeDiffusivity_ |
( |
const int |
tracerPhaseIdx, |
|
|
const ElementContext & |
elemCtx, |
|
|
const unsigned |
scvfIdx, |
|
|
const unsigned |
timeIdx |
|
) |
| const |
|
inlineprotected |
Diffusive coefficient of a face for the Fickian flux J = -D_mol * A * diffusivity * w * (c_J - c_I). The geometric (porosity weighted) face diffusivity multiplies the molecular diffusion coefficient D_mol of the tracer (TRDIFxxx), and w is the face average of the saturation times the inverse formation volume factor of the carrier phase of the tracer (see carrierSurfaceVolume_()). The coefficient is zero unless the carrier is present in both cells (see carrierPresent_()).
◆ computeDispersivity_()
template<class TypeTag >
| TracerEvaluation Opm::TracerModel< TypeTag >::computeDispersivity_ |
( |
const int |
tracerPhaseIdx, |
|
|
const ElementContext & |
elemCtx, |
|
|
const unsigned |
scvfIdx, |
|
|
const unsigned |
timeIdx |
|
) |
| const |
|
inlineprotected |
Dispersive coefficient of a face for the Fickian flux J = -(w * |u| * disp) * (c_J - c_I), where disp is the geometric dispersivity (DISPERC, as in the blackoil dispersion module), |u| the average max-norm filter velocity of the carrier phase in the two cells, and w the face average of the inverse formation volume factor of the carrier phase (see carrierSurfaceVolume_()). The saturation is already in the filter velocity. Zero unless DISPERC is in the deck and the carrier is present in both cells (see carrierPresent_()).
References Opm::TracerModel< TypeTag >::dispersionActive_, and Opm::TracerModel< TypeTag >::simulator_.
◆ computeFlux_()
template<class TypeTag >
| std::pair< TracerEvaluation, bool > Opm::TracerModel< TypeTag >::computeFlux_ |
( |
const int |
tracerPhaseIdx, |
|
|
const ElementContext & |
elemCtx, |
|
|
const unsigned |
scvfIdx, |
|
|
const unsigned |
timeIdx |
|
) |
| const |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free.
◆ computeVolume_()
template<class TypeTag >
| Scalar Opm::TracerModel< TypeTag >::computeVolume_ |
( |
const int |
tracerPhaseIdx, |
|
|
const unsigned |
globalDofIdx, |
|
|
const unsigned |
timeIdx |
|
) |
| const |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::Free, and Opm::TracerModel< TypeTag >::simulator_.
◆ convertEffectiveRatesToRawRates()
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::mSwTracerRate_, Opm::WellTracerRate< Scalar >::rate, Opm::MSWellTracerRate< Scalar >::rate, Opm::TracerModel< TypeTag >::simulator_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellFreeTracerRate_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellSolTracerRate_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::wellTracerRate_.
Referenced by Opm::TracerModel< TypeTag >::advanceTracerFields().
◆ copyForOutput()
template<class TypeTag >
| void Opm::TracerModel< TypeTag >::copyForOutput |
( |
TrRe & |
tr, |
|
|
const std::vector< TracerVector > & |
dx, |
|
|
const Scalar |
S, |
|
|
const unsigned |
tIdx, |
|
|
const unsigned |
globalDofIdx, |
|
|
std::vector< TracerVectorSingle > & |
sc |
|
) |
| |
|
inlineprotected |
◆ currentConcentration_()
| GetPropType< TypeTag, Properties::Scalar > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::currentConcentration_ |
( |
const Well & |
eclWell, |
|
|
const std::string & |
trName, |
|
|
const SummaryState & |
summaryState |
|
) |
| const |
|
protectedinherited |
◆ deserialize()
template<class TypeTag >
template<class Restarter >
This method restores the complete state of the tracer from disk.
It is the inverse of the serialize() method.
◆ doInit()
| void Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::doInit |
( |
bool |
rst, |
|
|
std::size_t |
numGridDof, |
|
|
std::size_t |
gasPhaseIdx, |
|
|
std::size_t |
oilPhaseIdx, |
|
|
std::size_t |
waterPhaseIdx |
|
) |
| |
|
protectedinherited |
Initialize all internal data structures needed by the tracer module.
◆ enableSolTracers()
| const std::vector< bool > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::enableSolTracers |
|
inherited |
◆ endTimeStep()
Informs the tracer model that a time step has just been finished.
References Opm::TracerModel< TypeTag >::advanceTracerFields(), and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::numTracers().
◆ fname()
| std::string Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::fname |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ freeTracerConcentration()
| GetPropType< TypeTag, Properties::Scalar > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::freeTracerConcentration |
( |
int |
tracerIdx, |
|
|
int |
globalDofIdx |
|
) |
| const |
|
inherited |
Return the tracer concentration for tracer index and global DofIdx.
◆ getMswTracerRates()
| const std::unordered_map< int, std::vector< MSWellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::getMswTracerRates |
( |
| ) |
const |
|
inlineinherited |
◆ getWellFreeTracerRates()
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::getWellFreeTracerRates |
( |
| ) |
const |
|
inlineinherited |
◆ getWellSolTracerRates()
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::getWellSolTracerRates |
( |
| ) |
const |
|
inlineinherited |
◆ getWellTracerRates()
| const std::unordered_map< int, std::vector< WellTracerRate< GetPropType< TypeTag, Properties::Scalar > > > > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::getWellTracerRates |
( |
| ) |
const |
|
inlineinherited |
Return well tracer rates.
◆ hasSolutionPart_()
template<class TypeTag >
| static bool Opm::TracerModel< TypeTag >::hasSolutionPart_ |
( |
const int |
tracerPhaseIdx | ) |
|
|
inlinestaticprotected |
◆ init()
References Opm::TracerModel< TypeTag >::dispersionActive_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::doInit(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::eclState_, Opm::TracerModel< TypeTag >::hasSolutionPart_(), Opm::TracerModel< TypeTag >::reorderRetrySteps_, Opm::TracerModel< TypeTag >::simulator_, Opm::to_string(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerPhaseIdx_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::useReorderSolver_.
◆ linearSolve_()
| bool Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::linearSolve_ |
( |
const TracerMatrix & |
M, |
|
|
TracerVector & |
x, |
|
|
TracerVector & |
b |
|
) |
| |
|
protectedinherited |
◆ linearSolveBatchwise_()
| bool Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::linearSolveBatchwise_ |
( |
const TracerMatrix & |
M, |
|
|
std::vector< TracerVector > & |
x, |
|
|
std::vector< TracerVector > & |
b |
|
) |
| |
|
protectedinherited |
◆ linearSolveReorder_()
| bool Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::linearSolveReorder_ |
( |
const TracerMatrix & |
M, |
|
|
std::vector< TracerVector > & |
x, |
|
|
std::vector< TracerVector > & |
b |
|
) |
| |
|
protectedinherited |
Solve the tracer equations cell by cell in the order of the flow.
◆ name()
| const std::string & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::name |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ numTracers()
| int Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::numTracers |
|
inherited |
Return the number of tracers considered by the tracerModel.
◆ phase()
| Phase Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::phase |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ prepareTracerBatches()
References Opm::TracerModel< TypeTag >::buildAquiferTracerConnections_(), Opm::TracerModel< TypeTag >::checkBoundaryTracers_(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::eclState_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::freeTracerConcentration_, Opm::gatherDeferredLogger(), Opm::TracerModel< TypeTag >::hasSolutionPart_(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::name(), Opm::TracerModel< TypeTag >::simulator_, Opm::TracerModel< TypeTag >::tbatch, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerConcentration_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerMatrix_, Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::tracerPhaseIdx_, and Opm::TracerModel< TypeTag >::vol1_.
◆ serialize()
template<class TypeTag >
template<class Restarter >
This method writes the complete state of all tracer to the hard disk.
◆ serializeOp()
template<class TypeTag >
template<class Serializer >
◆ setEnableSolTracers()
| void Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::setEnableSolTracers |
( |
int |
tracerIdx, |
|
|
bool |
enableSolTracer |
|
) |
| |
|
inherited |
◆ setFreeTracerConcentration()
| void Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::setFreeTracerConcentration |
( |
int |
tracerIdx, |
|
|
int |
globalDofIdx, |
|
|
GetPropType< TypeTag, Properties::Scalar > |
value |
|
) |
| |
|
inherited |
◆ setSolTracerConcentration()
| void Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::setSolTracerConcentration |
( |
int |
tracerIdx, |
|
|
int |
globalDofIdx, |
|
|
GetPropType< TypeTag, Properties::Scalar > |
value |
|
) |
| |
|
inherited |
◆ sname()
| std::string Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::sname |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ solTracerConcentration()
| GetPropType< TypeTag, Properties::Scalar > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::solTracerConcentration |
( |
int |
tracerIdx, |
|
|
int |
globalDofIdx |
|
) |
| const |
|
inherited |
◆ solveBatch_()
template<class TypeTag >
template<class TrRe >
| bool Opm::TracerModel< TypeTag >::solveBatch_ |
( |
TrRe & |
tr, |
|
|
std::vector< TracerVector > & |
dx |
|
) |
| |
|
inlineprotected |
References Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::linearSolveBatchwise_(), Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::linearSolveReorder_(), Opm::TracerModel< TypeTag >::reorderRetrySteps_, and Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::DofMapper >, GetPropType< TypeTag, Properties::Stencil >, GetPropType< TypeTag, Properties::FluidSystem >, GetPropType< TypeTag, Properties::Scalar > >::useReorderSolver_.
Referenced by Opm::TracerModel< TypeTag >::advanceTracerFields().
◆ storage1_()
template<class TypeTag >
| Scalar Opm::TracerModel< TypeTag >::storage1_ |
( |
const TrRe & |
tr, |
|
|
const unsigned |
tIdx, |
|
|
const unsigned |
I, |
|
|
const unsigned |
I1, |
|
|
const bool |
cache |
|
) |
| |
|
inlineprotected |
◆ updateElem()
template<class TypeTag >
| void Opm::TracerModel< TypeTag >::updateElem |
( |
TrRe & |
tr, |
|
|
const Scalar |
scvVolume, |
|
|
const unsigned |
globalDofIdx |
|
) |
| |
|
inlineprotected |
◆ updateStorageCache()
◆ wellfname()
| std::string Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::wellfname |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ wellsname()
| std::string Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::wellsname |
( |
int |
tracerIdx | ) |
const |
|
inherited |
◆ aquifer_tracer_cells_
◆ cartMapper_
| const CartesianIndexMapper& Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::cartMapper_ |
|
protectedinherited |
◆ centroids_
| std::function<std::array<double,dimWorld>(int)> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::centroids_ |
|
protectedinherited |
Function returning the cell centers.
◆ dimWorld
| constexpr int Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::dimWorld |
|
staticconstexprinherited |
◆ dispersionActive_
◆ dofMapper_
| const GetPropType< TypeTag, Properties::DofMapper > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::dofMapper_ |
|
protectedinherited |
◆ eclState_
| const EclipseState& Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::eclState_ |
|
protectedinherited |
◆ element_chunks_
template<class TypeTag >
| ElementChunks<GridView, Dune::Partitions::All> Opm::TracerModel< TypeTag >::element_chunks_ |
|
protected |
◆ enableSolTracers_
| std::vector<bool> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::enableSolTracers_ |
|
protectedinherited |
◆ freeTracerConcentration_
| std::vector<TracerVectorSingle> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::freeTracerConcentration_ |
|
protectedinherited |
◆ gridView_
| const GetPropType< TypeTag, Properties::GridView > & Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::gridView_ |
|
protectedinherited |
◆ mSwTracerRate_
| std::unordered_map<int, std::vector<MSWellTracerRate<GetPropType< TypeTag, Properties::Scalar > > > > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::mSwTracerRate_ |
|
protectedinherited |
◆ reorderRetrySteps_
◆ simulator_
Referenced by Opm::TracerModel< TypeTag >::advanceTracerFields(), Opm::TracerModel< TypeTag >::assembleTracerEquationAquifer_(), Opm::TracerModel< TypeTag >::assembleTracerEquationBoundary(), Opm::TracerModel< TypeTag >::assembleTracerEquations_(), Opm::TracerModel< TypeTag >::assembleTracerEquationWell(), Opm::TracerModel< TypeTag >::buildAquiferTracerConnections_(), Opm::TracerModel< TypeTag >::checkBoundaryTracers_(), Opm::TracerModel< TypeTag >::computeDispersivity_(), Opm::TracerModel< TypeTag >::computeVolume_(), Opm::TracerModel< TypeTag >::convertEffectiveRatesToRawRates(), Opm::TracerModel< TypeTag >::init(), Opm::TracerModel< TypeTag >::prepareTracerBatches(), and Opm::TracerModel< TypeTag >::updateStorageCache().
◆ solTracerConcentration_
| std::vector<TracerVectorSingle> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::solTracerConcentration_ |
|
protectedinherited |
◆ tbatch
◆ tracerConcentration_
| std::vector<TracerVector> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::tracerConcentration_ |
|
protectedinherited |
◆ tracerMatrix_
| std::unique_ptr<TracerMatrix> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::tracerMatrix_ |
|
protectedinherited |
◆ tracerPhaseIdx_
| std::vector<int> Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::tracerPhaseIdx_ |
|
protectedinherited |
◆ useReorderSolver_
| bool Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::useReorderSolver_ |
|
protectedinherited |
◆ vol1_
template<class TypeTag >
| std::array<std::array<std::vector<Scalar>,numPhases>,2> Opm::TracerModel< TypeTag >::vol1_ |
|
protected |
◆ wellFreeTracerRate_
| std::unordered_map<int, std::vector<WellTracerRate<GetPropType< TypeTag, Properties::Scalar > > > > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::wellFreeTracerRate_ |
|
protectedinherited |
◆ wellSolTracerRate_
| std::unordered_map<int, std::vector<WellTracerRate<GetPropType< TypeTag, Properties::Scalar > > > > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::wellSolTracerRate_ |
|
protectedinherited |
◆ wellTracerRate_
| std::unordered_map<int, std::vector<WellTracerRate<GetPropType< TypeTag, Properties::Scalar > > > > Opm::GenericTracerModel< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::DofMapper > , GetPropType< TypeTag, Properties::Stencil > , GetPropType< TypeTag, Properties::FluidSystem > , GetPropType< TypeTag, Properties::Scalar > >::wellTracerRate_ |
|
protectedinherited |
The documentation for this class was generated from the following file:
|