BlackOilFluidState.hpp
Go to the documentation of this file.
80auto getSaltConcentration_(typename std::enable_if<HasMember_saltConcentration<FluidState>::value,
85auto getSaltConcentration_(typename std::enable_if<!HasMember_saltConcentration<FluidState>::value,
199 setSaltConcentration(BlackOil::getSaltConcentration_<FluidSystem, FluidState, Scalar>(fs, pvtRegionIdx));
202 setSaltSaturation(BlackOil::getSaltSaturation_<FluidSystem, FluidState, Scalar>(fs, pvtRegionIdx));
484 { return (*enthalpy_)[canonicalToStoragePhaseIndex_(phaseIdx)] - pressure(phaseIdx)/density(phaseIdx); }
Some templates to wrap the valgrind client request macros. Implements a "tailor-made" fluid state class for the black-oil model. Definition: BlackOilFluidState.hpp:119 void setTemperature(const Scalar &value) Set the temperature [K]. Definition: BlackOilFluidState.hpp:258 const Scalar & Rvw() const Return the water vaporization factor of gas [m^3/m^3]. Definition: BlackOilFluidState.hpp:415 void setSaltSaturation(const Scalar &newSaltSaturation) Set the solid salt saturation. Definition: BlackOilFluidState.hpp:323 void setPc(unsigned phaseIdx, const Scalar &pc) Set the capillary pressure of a fluid phase [-]. Definition: BlackOilFluidState.hpp:241 const Scalar & enthalpy(unsigned phaseIdx) const Return the specific enthalpy [J/kg] of a given fluid phase. Definition: BlackOilFluidState.hpp:474 unsigned short pvtRegionIndex() const Return the PVT region where the current fluid state is assumed to be part of. Definition: BlackOilFluidState.hpp:459 void setDensity(unsigned phaseIdx, const Scalar &rho) Definition: BlackOilFluidState.hpp:287 const Scalar & Rv() const Return the oil vaporization factor of gas [m^3/m^3]. Definition: BlackOilFluidState.hpp:398 void setRs(const Scalar &newRs) Set the gas dissolution factor [m^3/m^3] of the oil phase. Definition: BlackOilFluidState.hpp:295 Scalar fugacityCoefficient(unsigned phaseIdx, unsigned compIdx) const Return the fugacity coefficient of a component in a fluid phase [-]. Definition: BlackOilFluidState.hpp:618 void setSaturation(unsigned phaseIdx, const Scalar &S) Set the saturation of a fluid phase [-]. Definition: BlackOilFluidState.hpp:235 const Scalar & saltSaturation() const Return the saturation of solid salt. Definition: BlackOilFluidState.hpp:441 void setInvB(unsigned phaseIdx, const Scalar &b) Definition: BlackOilFluidState.hpp:281 Scalar averageMolarMass(unsigned phaseIdx) const Return the partial molar density of a fluid phase [kg / mol]. Definition: BlackOilFluidState.hpp:607 void setRv(const Scalar &newRv) Set the oil vaporization factor [m^3/m^3] of the gas phase. Definition: BlackOilFluidState.hpp:303 const Scalar & Rs() const Return the gas dissulition factor of oil [m^3/m^3]. Definition: BlackOilFluidState.hpp:381 void setPressure(unsigned phaseIdx, const Scalar &p) Set the pressure of a fluid phase [-]. Definition: BlackOilFluidState.hpp:229 void assign(const FluidState &fs) Retrieve all parameters from an arbitrary fluid state. Definition: BlackOilFluidState.hpp:183 const Scalar & temperature(unsigned) const Return the temperature [K]. Definition: BlackOilFluidState.hpp:355 Scalar density(unsigned phaseIdx) const Return the density [kg/m^3] of a given fluid phase. Definition: BlackOilFluidState.hpp:465 const Scalar & pc(unsigned phaseIdx) const Return the capillary pressure of a fluid phase [-]. Definition: BlackOilFluidState.hpp:341 void checkDefined() const Make sure that all attributes are defined. Definition: BlackOilFluidState.hpp:141 Scalar molarVolume(unsigned phaseIdx) const Return the molar volume of a fluid phase [m^3/mol]. Definition: BlackOilFluidState.hpp:511 Scalar molarDensity(unsigned phaseIdx) const Return the molar density of a fluid phase [mol/m^3]. Definition: BlackOilFluidState.hpp:493 Scalar moleFraction(unsigned phaseIdx, unsigned compIdx) const Return the mole fraction of a component in a fluid phase [-]. Definition: BlackOilFluidState.hpp:560 void setSaltConcentration(const Scalar &newSaltConcentration) Set the salt concentration. Definition: BlackOilFluidState.hpp:317 Scalar internalEnergy(unsigned phaseIdx) const Return the specific internal energy [J/kg] of a given fluid phase. Definition: BlackOilFluidState.hpp:483 const Scalar & saltConcentration() const Return the concentration of salt in water. Definition: BlackOilFluidState.hpp:428 Scalar viscosity(unsigned phaseIdx) const Return the dynamic viscosity of a fluid phase [Pa s]. Definition: BlackOilFluidState.hpp:517 const Scalar & totalSaturation() const Return the total saturation needed for sequential. Definition: BlackOilFluidState.hpp:347 void setPvtRegionIndex(unsigned newPvtRegionIdx) Set the index of the fluid region. Definition: BlackOilFluidState.hpp:223 Scalar molarity(unsigned phaseIdx, unsigned compIdx) const Return the partial molar density of a component in a fluid phase [mol / m^3]. Definition: BlackOilFluidState.hpp:601 const Scalar & invB(unsigned phaseIdx) const Return the inverse formation volume factor of a fluid phase [-]. Definition: BlackOilFluidState.hpp:371 const Scalar & saturation(unsigned phaseIdx) const Return the saturation of a fluid phase [-]. Definition: BlackOilFluidState.hpp:335 void setRvw(const Scalar &newRvw) Set the water vaporization factor [m^3/m^3] of the gas phase. Definition: BlackOilFluidState.hpp:311 Scalar massFraction(unsigned phaseIdx, unsigned compIdx) const Return the mass fraction of a component in a fluid phase [-]. Definition: BlackOilFluidState.hpp:523 void setTotalSaturation(const Scalar &value) Set the total saturation used for sequential methods. Definition: BlackOilFluidState.hpp:247 const Scalar & pressure(unsigned phaseIdx) const Return the pressure of a fluid phase [Pa]. Definition: BlackOilFluidState.hpp:329 Scalar fugacity(unsigned phaseIdx, unsigned compIdx) const Return the fugacity of a component in a fluid phase [Pa]. Definition: BlackOilFluidState.hpp:624 void setEnthalpy(unsigned phaseIdx, const Scalar &value) Set the specific enthalpy [J/kg] of a given fluid phase. Definition: BlackOilFluidState.hpp:271 bool CheckDefined(const T &value) Make valgrind complain if any of the memory occupied by an object is undefined. Definition: Valgrind.hpp:74 Definition: Air_Mesitylene.hpp:34 auto getSaltConcentration_(typename std::enable_if<!HasMember_saltConcentration< FluidState >::value, const FluidState & >::type) Definition: BlackOilFluidState.hpp:85 unsigned getPvtRegionIndex_(typename std::enable_if<!HasMember_pvtRegionIndex< FluidState >::value, const FluidState & >::type) Definition: BlackOilFluidState.hpp:47 OPM_GENERATE_HAS_MEMBER(pvtRegionIndex,) template< class FluidState > unsigned getPvtRegionIndex_(typename std Definition: BlackOilFluidState.hpp:39 class LhsEval auto getInvB_(typename std::enable_if< HasMember_invB< FluidState >::value, const FluidState & >::type fluidState, unsigned phaseIdx, unsigned) -> decltype(decay< LhsEval >(fluidState.invB(phaseIdx))) Definition: BlackOilFluidState.hpp:54 auto getSaltSaturation_(typename std::enable_if<!HasMember_saltSaturation< FluidState >::value, const FluidState & >::type) Definition: BlackOilFluidState.hpp:98 auto decay(const Evaluation &value) -> decltype(MathToolbox< Evaluation >::template decay< ResultEval >(value)) Definition: MathToolbox.hpp:325 |