mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added surfaceDensity() method to IncompPropertiesInterface.
This commit is contained in:
parent
cd4026f6c4
commit
6f0f9ff188
@ -115,6 +115,16 @@ namespace Opm
|
|||||||
/// \return Array of P density values.
|
/// \return Array of P density values.
|
||||||
const double* IncompPropertiesBasic::density() const
|
const double* IncompPropertiesBasic::density() const
|
||||||
{
|
{
|
||||||
|
// No difference between reservoir and surface densities
|
||||||
|
// modelled by this class.
|
||||||
|
return pvt_.surfaceDensities();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// \return Array of P density values.
|
||||||
|
const double* IncompPropertiesBasic::surfaceDensity() const
|
||||||
|
{
|
||||||
|
// No difference between reservoir and surface densities
|
||||||
|
// modelled by this class.
|
||||||
return pvt_.surfaceDensities();
|
return pvt_.surfaceDensities();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,9 +92,14 @@ namespace Opm
|
|||||||
/// \return Array of P viscosity values.
|
/// \return Array of P viscosity values.
|
||||||
virtual const double* viscosity() const;
|
virtual const double* viscosity() const;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at reservoir conditions.
|
||||||
/// \return Array of P density values.
|
/// \return Array of P density values.
|
||||||
virtual const double* density() const;
|
virtual const double* density() const;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at surface conditions.
|
||||||
|
/// \return Array of P density values.
|
||||||
|
virtual const double* surfaceDensity() const;
|
||||||
|
|
||||||
/// \param[in] n Number of data points.
|
/// \param[in] n Number of data points.
|
||||||
/// \param[in] s Array of nP saturation values.
|
/// \param[in] s Array of nP saturation values.
|
||||||
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
||||||
|
@ -90,6 +90,12 @@ namespace Opm
|
|||||||
return pvt_.reservoirDensities();
|
return pvt_.reservoirDensities();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// \return Array of P density values.
|
||||||
|
const double* IncompPropertiesFromDeck::surfaceDensity() const
|
||||||
|
{
|
||||||
|
return pvt_.surfaceDensities();
|
||||||
|
}
|
||||||
|
|
||||||
/// \param[in] n Number of data points.
|
/// \param[in] n Number of data points.
|
||||||
/// \param[in] s Array of nP saturation values.
|
/// \param[in] s Array of nP saturation values.
|
||||||
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
||||||
|
@ -78,9 +78,14 @@ namespace Opm
|
|||||||
/// \return Array of P viscosity values.
|
/// \return Array of P viscosity values.
|
||||||
virtual const double* viscosity() const;
|
virtual const double* viscosity() const;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at reservoir conditions.
|
||||||
/// \return Array of P density values.
|
/// \return Array of P density values.
|
||||||
virtual const double* density() const;
|
virtual const double* density() const;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at surface conditions.
|
||||||
|
/// \return Array of P density values.
|
||||||
|
virtual const double* surfaceDensity() const;
|
||||||
|
|
||||||
/// \param[in] n Number of data points.
|
/// \param[in] n Number of data points.
|
||||||
/// \param[in] s Array of nP saturation values.
|
/// \param[in] s Array of nP saturation values.
|
||||||
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
||||||
|
@ -62,9 +62,22 @@ namespace Opm
|
|||||||
/// \return Array of P viscosity values.
|
/// \return Array of P viscosity values.
|
||||||
virtual const double* viscosity() const = 0;
|
virtual const double* viscosity() const = 0;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at surface conditions.
|
||||||
/// \return Array of P density values.
|
/// \return Array of P density values.
|
||||||
virtual const double* density() const = 0;
|
virtual const double* density() const = 0;
|
||||||
|
|
||||||
|
/// Densities of fluid phases at surface conditions.
|
||||||
|
/// Note: a reasonable question to ask is why there can be
|
||||||
|
/// different densities at surface and reservoir conditions,
|
||||||
|
/// when the phases are assumed incompressible. The answer is
|
||||||
|
/// that even if we approximate the phases as being
|
||||||
|
/// incompressible during simulation, the density difference
|
||||||
|
/// between surface and reservoir may be larger. For accurate
|
||||||
|
/// reporting and using data given in terms of surface values,
|
||||||
|
/// we need to handle this difference.
|
||||||
|
/// \return Array of P density values.
|
||||||
|
virtual const double* surfaceDensity() const = 0;
|
||||||
|
|
||||||
/// \param[in] n Number of data points.
|
/// \param[in] n Number of data points.
|
||||||
/// \param[in] s Array of nP saturation values.
|
/// \param[in] s Array of nP saturation values.
|
||||||
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
/// \param[in] cells Array of n cell indices to be associated with the s values.
|
||||||
|
Loading…
Reference in New Issue
Block a user