added: setters for the vappars in pvt classes

This commit is contained in:
Arne Morten Kvarving
2023-06-01 11:03:20 +02:00
parent 03d31409e5
commit 39006ecd71
21 changed files with 102 additions and 1 deletions

View File

@@ -306,6 +306,19 @@ public:
static void setWaterPvt(std::shared_ptr<WaterPvt> pvtObj)
{ waterPvt_ = pvtObj; }
static void setVapPars(const Scalar par1, const Scalar par2)
{
if (gasPvt_) {
gasPvt_->setVapPars(par1, par2);
}
if (oilPvt_) {
oilPvt_->setVapPars(par1, par2);
}
if (waterPvt_) {
waterPvt_->setVapPars(par1, par2);
}
}
/*!
* \brief Initialize the values of the reference densities
*

View File

@@ -104,6 +104,9 @@ public:
salinity_.resize(numRegions);
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region

View File

@@ -92,6 +92,10 @@ public:
salinity_.resize(numRegions);
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -88,6 +88,9 @@ public:
salinity_.resize(numRegions);
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region

View File

@@ -68,6 +68,10 @@ public:
}
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Set the water reference density [kg / m^3]
*/

View File

@@ -71,6 +71,10 @@ public:
}
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -70,6 +70,10 @@ public:
}
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Set the water reference density [kg / m^3]
*/

View File

@@ -55,6 +55,10 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -63,6 +63,10 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -74,6 +74,11 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar par1, const Scalar)
{
vapPar1_ = par1;
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -216,6 +216,11 @@ public:
unsigned numRegions() const
{ OPM_GAS_PVT_MULTIPLEXER_CALL(return pvtImpl.numRegions()); return 1; }
void setVapPars(const Scalar par1, const Scalar par2)
{
OPM_GAS_PVT_MULTIPLEXER_CALL(pvtImpl.setVapPars(par1, par2));
}
/*!
* \brief Return the reference density which are considered by this PVT-object.
*/

View File

@@ -121,6 +121,11 @@ public:
rhoRefO_.resize(numRegions);
}
void setVapPars(const Scalar par1, const Scalar par2)
{
isothermalPvt_->setVapPars(par1, par2);
}
/*!
* \brief Finish initializing the thermal part of the gas phase PVT properties.
*/

View File

@@ -79,6 +79,10 @@ public:
gasReferenceDensity_.resize(numRegions);
}
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
@@ -228,4 +232,4 @@ private:
} // end namspace Opm
#endif
#endif

View File

@@ -72,6 +72,11 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar, const Scalar par2)
{
vapPar2_ = par2;
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -170,6 +170,11 @@ public:
unsigned numRegions() const
{ OPM_OIL_PVT_MULTIPLEXER_CALL(return pvtImpl.numRegions()); return 1; }
void setVapPars(const Scalar par1, const Scalar par2)
{
OPM_OIL_PVT_MULTIPLEXER_CALL(pvtImpl.setVapPars(par1, par2));
}
/*!
* \brief Return the reference density which are considered by this PVT-object.
*/

View File

@@ -124,6 +124,11 @@ public:
rhoRefG_.resize(numRegions);
}
void setVapPars(const Scalar par1, const Scalar par2)
{
isothermalPvt_->setVapPars(par1, par2);
}
/*!
* \brief Finish initializing the thermal part of the oil phase PVT properties.
*/

View File

@@ -61,6 +61,10 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar, const Scalar)
{
}
/*!
* \brief Initialize the reference density of the solvent gas for a given PVT region
*/

View File

@@ -150,6 +150,11 @@ public:
unsigned numRegions() const
{ OPM_WATER_PVT_MULTIPLEXER_CALL(return pvtImpl.numRegions()); return 1; }
void setVapPars(const Scalar par1, const Scalar par2)
{
OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.setVapPars(par1, par2));
}
/*!
* \brief Return the reference density which are considered by this PVT-object.
*/

View File

@@ -132,6 +132,11 @@ public:
internalEnergyCurves_.resize(numRegions);
}
void setVapPars(const Scalar par1, const Scalar par2)
{
isothermalPvt_->setVapPars(par1, par2);
}
/*!
* \brief Finish initializing the thermal part of the water phase PVT properties.
*/

View File

@@ -74,6 +74,11 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar par1, const Scalar)
{
vapPar1_ = par1;
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/

View File

@@ -79,6 +79,11 @@ public:
void setNumRegions(size_t numRegions);
void setVapPars(const Scalar par1, const Scalar)
{
vapPar1_ = par1;
}
/*!
* \brief Initialize the reference densities of all fluids for a given PVT region
*/