opm-simulators
Opm::CompWellModel< TypeTag > Class Template Reference
Inheritance diagram for Opm::CompWellModel< TypeTag >:
Opm::WellConnectionAuxiliaryModule< TypeTag, CompWellModel< TypeTag > > Opm::BaseAuxiliaryModule< TypeTag >

Public Types

using Simulator = GetPropType< TypeTag, Properties::Simulator >
 
using WellConnectionModule = WellConnectionAuxiliaryModule< TypeTag, CompWellModel< TypeTag > >
 
using Indices = GetPropType< TypeTag, Properties::Indices >
 
using VectorBlockType = Dune::FieldVector< Scalar, numEq >
 
typedef Dune::BlockVector< VectorBlockType > BVector
 
using CompWellPtr = std::shared_ptr< CompWell< TypeTag > >
 
- Public Types inherited from Opm::WellConnectionAuxiliaryModule< TypeTag, CompWellModel< TypeTag > >
using NeighborSet = typename ::Opm::BaseAuxiliaryModule< TypeTag >::NeighborSet
 
using Domain = SubDomain< Grid >
 

Public Member Functions

 CompWellModel (Simulator &, const NewtonIterationContext &)
 
unsigned numDofs () const override
 Returns the number of additional degrees of freedom required for the auxiliary module.
 
void applyInitial () override
 Set the initial condition of the auxiliary module in the solution vector.
 
template<class Restarter >
void serialize (Restarter &)
 
template<class Restarter >
void deserialize (Restarter &)
 
template<class Serializer >
void serializeOp (Serializer &)
 
void beginEpisode ()
 
void beginReportStep (unsigned report_step)
 
void beginTimeStep ()
 
void beginIteration ()
 
void restoreLastValidState ()
 
void init ()
 
void endIteration () const
 
void endTimeStep ()
 
void endEpisode ()
 
void computeTotalRatesForDof (RateVector &, unsigned) const
 
data::Wells wellData () const
 
data::WellBlockAveragePressures wellBlockAveragePressures () const
 
data::GroupAndNetworkValues groupAndNetworkData (const int &) const
 
WellTestState wellTestState () const
 
void recoverWellSolutionAndUpdateWellState (const BVector &x)
 
bool addMatrixContributions () const
 
const Schedule & schedule () const
 
auto begin () const
 
auto end () const
 
const SimulatorReportSinglelastReport () const
 
void prepareDeserialize (const int)
 
const std::map< std::string, double > & wellOpenTimes () const
 
const std::map< std::string, double > & wellCloseTimes () const
 
const WellGroupEvents & reportStepStartEvents () const
 
bool forceShutWellByName (const std::string &well_name, double simulation_time, bool dont_shut_grup_wells)
 
template<class ReservoirCouplingSlave >
void setReservoirCouplingSlave (ReservoirCouplingSlave *)
 
template<class ReservoirCouplingMaster >
void setReservoirCouplingMaster (ReservoirCouplingMaster *)
 
bool getWellConvergence () const
 
std::size_t compressedIndexForInterior (std::size_t cartesian_cell_idx) const
 
std::vector< int > getCellsForConnections (const Well &well) const
 
- Public Member Functions inherited from Opm::WellConnectionAuxiliaryModule< TypeTag, CompWellModel< TypeTag > >
 WellConnectionAuxiliaryModule (CompWellModel< TypeTag > &model, Parallel::Communication comm)
 
unsigned numDofs () const override
 Returns the number of additional degrees of freedom required for the auxiliary module.
 
void addNeighbors (std::vector< NeighborSet > &neighbors) const override
 Specify the additional neighboring correlations caused by the auxiliary module.
 
void applyInitial () override
 Set the initial condition of the auxiliary module in the solution vector.
 
void linearize (SparseMatrixAdapter &jacobian, GlobalEqVector &res) override
 Linearize the auxiliary equation.
 
void postSolve (GlobalEqVector &deltaX) override
 This method is called after the linear solver has been called but before the solution is updated for the next iteration. More...
 
void linearizeDomain (const Domain &domain, SparseMatrixAdapter &jacobian, GlobalEqVector &res)
 
void postSolveDomain (const GlobalEqVector &deltaX, const Domain &domain)
 
void deserialize (Restarter &)
 
void serialize (Restarter &)
 This method writes the complete state of the well to the harddisk.
 
- Public Member Functions inherited from Opm::BaseAuxiliaryModule< TypeTag >
void setDofOffset (int value)
 Set the offset in the global system of equations for the first degree of freedom of this auxiliary module.
 
int dofOffset ()
 Return the offset in the global system of equations for the first degree of freedom of this auxiliary module.
 
int localToGlobalDof (unsigned localDofIdx) const
 Given a degree of freedom relative to the current auxiliary equation, return the corresponding index in the global system of equations.
 

Static Public Attributes

static const int numEq = Indices::numEq
 

Additional Inherited Members

- Protected Types inherited from Opm::BaseAuxiliaryModule< TypeTag >
using NeighborSet = std::set< unsigned >
 

The documentation for this class was generated from the following files: