function for accumulative efficiency factor for WellNode

This is the final efficiency factor that goes to the source/sink terms
in the material balance equations.
This commit is contained in:
Kai Bao
2016-10-18 15:28:21 +02:00
parent d21f146998
commit 05a616f483

View File

@@ -265,6 +265,7 @@ try
well_group_prod_spec.control_mode_ = ProductionSpecification::RESV; well_group_prod_spec.control_mode_ = ProductionSpecification::RESV;
/// \internal[production specification] /// \internal[production specification]
/// \endinternal /// \endinternal
const double group_efficiency_factor = 0.9;
/// \page tutorial4 /// \page tutorial4
/// \details Create our well group. We hand it an empty injection specification, /// \details Create our well group. We hand it an empty injection specification,
@@ -272,8 +273,8 @@ try
/// what the interface expects. The first argument is the (unique) name of the group. /// what the interface expects. The first argument is the (unique) name of the group.
/// \snippet tutorial4.cpp injection specification /// \snippet tutorial4.cpp injection specification
/// \internal[injection specification] /// \internal[injection specification]
std::shared_ptr<WellsGroupInterface> well_group(new WellsGroup("group", well_group_prod_spec, InjectionSpecification(), std::shared_ptr<WellsGroupInterface> well_group(new WellsGroup("group", group_efficiency_factor, well_group_prod_spec,
phase_usage)); InjectionSpecification(), phase_usage));
/// \internal[injection specification] /// \internal[injection specification]
/// \endinternal /// \endinternal
@@ -297,8 +298,9 @@ try
well_name << "well" << i; well_name << "well" << i;
ProductionSpecification production_specification; ProductionSpecification production_specification;
production_specification.control_mode_ = ProductionSpecification::GRUP; production_specification.control_mode_ = ProductionSpecification::GRUP;
std::shared_ptr<WellsGroupInterface> well_leaf_node(new WellNode(well_name.str(), production_specification, InjectionSpecification(), const double efficiency_factor = 0.8;
phase_usage)); std::shared_ptr<WellsGroupInterface> well_leaf_node(new WellNode(well_name.str(), efficiency_factor, production_specification,
InjectionSpecification(), phase_usage));
well_collection.addChild(well_leaf_node, "group"); well_collection.addChild(well_leaf_node, "group");
} }