StandardWellPrimaryVariables.hpp
Go to the documentation of this file.
44 // the first one is the weighted total rate (WQ_t), the second and the third ones are F_w and F_g,
45 // which represent the fraction of Water and Gas based on the weighted total rate, the last one is BHP.
50 // TODO: in the current implementation, we use the well rate as the first primary variables for injectors,
83 static constexpr int SFrac = !Indices::enableSolvent ? -1000 : has_wfrac_variable+has_gfrac_variable+1;
Definition: DeferredLogger.hpp:57 Definition: StandardWellEquations.hpp:47 Class holding primary variables for StandardWell. Definition: StandardWellPrimaryVariables.hpp:41 void checkFinite(DeferredLogger &deferred_logger) const Check that all values are finite. void updateNewtonPolyMW(const BVectorWell &dwells) Update polymer molecular weight values from newton update vector. EvalWell volumeFractionScaled(const int compIdx) const Returns scaled volume fraction for a component. static constexpr int SFrac Definition: StandardWellPrimaryVariables.hpp:83 int numWellEq() const Returns number of well equations. Definition: StandardWellPrimaryVariables.hpp:102 static constexpr bool has_gfrac_variable Definition: StandardWellPrimaryVariables.hpp:80 void resize(const int numWellEq) Resize values and evaluations. DenseAd::DynamicEvaluation< Scalar, numStaticWellEq+Indices::numEq+1 > EvalWell Evaluation for the well equations. Definition: StandardWellPrimaryVariables.hpp:87 Scalar value(const int idx) const Returns a value. Definition: StandardWellPrimaryVariables.hpp:142 void updateNewton(const BVectorWell &dwells, const bool stop_or_zero_rate_target, const Scalar dFLimit, const Scalar dBHPLimit, DeferredLogger &deferred_logger) Update values from newton update vector. static constexpr int numWellControlEq Number of the well control equations. Definition: StandardWellPrimaryVariables.hpp:62 static constexpr bool has_wfrac_variable Definition: StandardWellPrimaryVariables.hpp:79 void update(const WellState< Scalar > &well_state, const bool stop_or_zero_rate_target, DeferredLogger &deferred_logger) Copy values from well state. static constexpr int WQTotal The index for the weighted total rate. Definition: StandardWellPrimaryVariables.hpp:72 const EvalWell & eval(const int idx) const Returns a const ref to an evaluation. Definition: StandardWellPrimaryVariables.hpp:146 static constexpr int numStaticWellEq Number of the well equations that will always be used. Definition: StandardWellPrimaryVariables.hpp:70 static constexpr int GFrac Definition: StandardWellPrimaryVariables.hpp:82 void copyToWellState(WellState< Scalar > &well_state, DeferredLogger &deferred_logger) const Copy values to well state. EvalWell surfaceVolumeFraction(const int compIdx) const Returns surface volume fraction for a component. void updatePolyMW(const WellState< Scalar > &well_state) Copy polymer molecular weigt values from well state. typename FluidSystem::Scalar Scalar Definition: StandardWellPrimaryVariables.hpp:85 void setValue(const int idx, const Scalar val) Set a value. Note that this does not also set the corresponding evaluation. Definition: StandardWellPrimaryVariables.hpp:150 EvalWell getQs(const int compIdx) const Returns scaled rate for a component. static constexpr int numWellConservationEq Number of the conservation equations. Definition: StandardWellPrimaryVariables.hpp:66 static constexpr int WFrac Definition: StandardWellPrimaryVariables.hpp:81 typename StandardWellEquations< Scalar, Indices::numEq >::BVectorWell BVectorWell Definition: StandardWellPrimaryVariables.hpp:88 void copyToWellStatePolyMW(WellState< Scalar > &well_state) const Copy polymer molecular weight values to well state. StandardWellPrimaryVariables(const WellInterfaceIndices< FluidSystem, Indices > &well) Constructor initializes reference to well interface. Definition: StandardWellPrimaryVariables.hpp:91 static constexpr int Bhp The index for Bhp in primary variables and the index of well control equation. Definition: StandardWellPrimaryVariables.hpp:77 Definition: WellInterfaceIndices.hpp:34 Definition: WellState.hpp:62 Definition: blackoilboundaryratevector.hh:37 |