opm-simulators
Opm::BlackoilWellModelNetwork< TypeTag > Class Template Reference

Class for handling the blackoil well network model. More...

#include <BlackoilWellModelNetwork.hpp>

Inheritance diagram for Opm::BlackoilWellModelNetwork< TypeTag >:
Opm::BlackoilWellModelNetworkGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType >

Public Member Functions

 BlackoilWellModelNetwork (BlackoilWellModel< TypeTag > &well_model)
 
std::tuple< bool, Scalar > update (const bool mandatory_network_balance, DeferredLogger &deferred_logger, const bool relax_network_tolerance=false)
 
void doPreStepRebalance (DeferredLogger &deferred_logger)
 
- Public Member Functions inherited from Opm::BlackoilWellModelNetworkGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType >
 BlackoilWellModelNetworkGeneric (BlackoilWellModelGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType > &well_model)
 
bool active () const
 return true if network is active (at least one network well in prediction mode)
 
const std::map< std::string, GetPropType< TypeTag, Properties::Scalar > > & nodePressures () const
 
void setNodePressures (const std::map< std::string, GetPropType< TypeTag, Properties::Scalar > > &values)
 
void setFromRestart (const std::optional< std::map< std::string, double >> &restart_pressures)
 
void initialize (const int report_step)
 Initialize wells according to network configuration.
 
void initializeWell (WellInterfaceGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType > &well)
 Initialize a single well according to network configuration.
 
void updateActiveState (const int report_step)
 Checks if network is active (at least one network well on prediction).
 
bool needPreStepRebalance (const int report_step) const
 Checks if there are reasons to perform a pre-step network re-balance. More...
 
bool shouldBalance (const int reportStepIndex, const NewtonIterationContext &iterCtx) const
 Checks if we shall perform a network re-balance. More...
 
bool willBalanceOnNextIteration (const int reportStepIndex, const NewtonIterationContext &iterCtx) const
 Checks if we will perform a network re-balance on the next Newton iteration.
 
GetPropType< TypeTag, Properties::ScalarupdatePressures (const int reportStepIdx, const GetPropType< TypeTag, Properties::Scalar > damping_factor, const GetPropType< TypeTag, Properties::Scalar > update_upper_bound)
 
void assignNodeValues (std::map< std::string, data::NodeData > &nodevalues, const int reportStepIdx) const
 
void commitState ()
 
void resetState ()
 
void serializeOp (Serializer &serializer)
 
bool operator== (const BlackoilWellModelNetworkGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType > &rhs) const
 

Protected Member Functions

bool computeWellGroupThp (const double dt, DeferredLogger &local_deferredLogger)
 This function is to be used for well groups in an extended network that act as a subsea manifold The wells of such group should have a common THP and total phase rate(s) obeying (if possible) the well group constraint set by GCONPROD.
 
- Protected Member Functions inherited from Opm::BlackoilWellModelNetworkGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType >
std::map< std::string, GetPropType< TypeTag, Properties::Scalar > > computePressures (const Network::ExtNetwork &network, const VFPProdProperties< GetPropType< TypeTag, Properties::Scalar > > &vfp_prod_props, const UnitSystem &unit_system, const int reportStepIdx, const Parallel::Communication &comm) const
 

Protected Attributes

BlackoilWellModel< TypeTag > & well_model_
 
std::map< std::string, Scalar > well_group_thp_calc_
 
- Protected Attributes inherited from Opm::BlackoilWellModelNetworkGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType >
bool active_
 
BlackoilWellModelGeneric< GetPropType< TypeTag, Properties::Scalar >, GetPropType< TypeTag, Properties::FluidSystem >::IndexTraitsType > & well_model_
 
std::map< std::string, GetPropType< TypeTag, Properties::Scalar > > node_pressures_
 
std::map< std::string, GetPropType< TypeTag, Properties::Scalar > > last_valid_node_pressures_
 

Detailed Description

template<typename TypeTag>
class Opm::BlackoilWellModelNetwork< TypeTag >

Class for handling the blackoil well network model.


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