Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/coreComponents/constitutive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ set( constitutive_headers
fluid/BlackOilFluidBase.hpp
fluid/BlackOilFluid.hpp
fluid/CompressibleSinglePhaseFluid.hpp
fluid/CO2BrineFluid.hpp
fluid/DeadOilFluid.hpp
fluid/MultiFluidBase.hpp
fluid/MultiFluidUtils.hpp
fluid/MultiFluidExtrinsicData.hpp
fluid/MultiPhaseMultiComponentFluid.hpp
fluid/PhaseModel.hpp
fluid/PVTDriver.hpp
fluid/PVTOData.hpp
fluid/PVTFunctions/PhillipsBrineDensity.hpp
Expand All @@ -38,7 +39,8 @@ set( constitutive_headers
fluid/PVTFunctions/CO2Solubility.hpp
fluid/PVTFunctions/FenghourCO2Viscosity.hpp
fluid/PVTFunctions/FlashModelBase.hpp
fluid/PVTFunctions/PVTFunctionBase.hpp
fluid/PVTFunctions/PVTFunctionBase.hpp
fluid/PVTFunctions/NoOpPVTFunction.hpp
fluid/PVTFunctions/PVTFunctionHelpers.hpp
fluid/PVTFunctions/SpanWagnerCO2Density.hpp
fluid/PVTFunctions/BrineEnthalpy.hpp
Expand Down Expand Up @@ -129,11 +131,11 @@ set( constitutive_sources
contact/CoulombContact.cpp
contact/FrictionlessContact.cpp
fluid/CompressibleSinglePhaseFluid.cpp
fluid/CO2BrineFluid.cpp
fluid/BlackOilFluidBase.cpp
fluid/BlackOilFluid.cpp
fluid/DeadOilFluid.cpp
fluid/MultiFluidBase.cpp
fluid/MultiPhaseMultiComponentFluid.cpp
fluid/PVTDriver.cpp
fluid/PVTOData.cpp
fluid/PVTFunctions/PhillipsBrineDensity.cpp
Expand Down
6 changes: 6 additions & 0 deletions src/coreComponents/constitutive/fluid/BlackOilFluid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ BlackOilFluid::KernelWrapper::
PhaseProp::ViewType phaseDensity,
PhaseProp::ViewType phaseMassDensity,
PhaseProp::ViewType phaseViscosity,
PhaseProp::ViewType phaseEnthalpy,
PhaseProp::ViewType phaseInternalEnergy,
PhaseComp::ViewType phaseCompFraction,
FluidProp::ViewType totalDensity )
: BlackOilFluidBase::KernelWrapper( std::move( phaseTypes ),
Expand All @@ -501,6 +503,8 @@ BlackOilFluid::KernelWrapper::
std::move( phaseDensity ),
std::move( phaseMassDensity ),
std::move( phaseViscosity ),
std::move( phaseEnthalpy ),
std::move( phaseInternalEnergy ),
std::move( phaseCompFraction ),
std::move( totalDensity ) ),
m_PVTOView( PVTO.createKernelWrapper() )
Expand All @@ -523,6 +527,8 @@ BlackOilFluid::createKernelWrapper()
m_phaseDensity.toView(),
m_phaseMassDensity.toView(),
m_phaseViscosity.toView(),
m_phaseEnthalpy.toView(),
m_phaseInternalEnergy.toView(),
m_phaseCompFraction.toView(),
m_totalDensity.toView() );
}
Expand Down
26 changes: 15 additions & 11 deletions src/coreComponents/constitutive/fluid/BlackOilFluid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class BlackOilFluid : public BlackOilFluidBase
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseDensity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseMassDensity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseViscosity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseEnthalpy,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseInternalEnergy,
arraySlice2d< real64, multifluid::USD_PHASE_COMP-2 > const & phaseCompFraction,
real64 & totalDensity ) const override;

Expand All @@ -72,6 +74,8 @@ class BlackOilFluid : public BlackOilFluidBase
PhaseProp::SliceType const phaseDensity,
PhaseProp::SliceType const phaseMassDensity,
PhaseProp::SliceType const phaseViscosity,
PhaseProp::SliceType const phaseEnthalpy,
PhaseProp::SliceType const phaseInternalEnergy,
PhaseComp::SliceType const phaseCompFraction,
FluidProp::SliceType const totalDensity ) const override;

Expand Down Expand Up @@ -100,6 +104,8 @@ class BlackOilFluid : public BlackOilFluidBase
PhaseProp::ViewType phaseDensity,
PhaseProp::ViewType phaseMassDensity,
PhaseProp::ViewType phaseViscosity,
PhaseProp::ViewType phaseEnthalpy,
PhaseProp::ViewType phaseInternalEnergy,
PhaseComp::ViewType phaseCompFraction,
FluidProp::ViewType totalDensity );

Expand Down Expand Up @@ -261,19 +267,13 @@ BlackOilFluid::KernelWrapper::
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseDensity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseMassDensity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseViscosity,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseEnthalpy,
arraySlice1d< real64, multifluid::USD_PHASE - 2 > const & phaseInternalEnergy,
arraySlice2d< real64, multifluid::USD_PHASE_COMP - 2 > const & phaseCompFraction,
real64 & totalDens ) const
{
GEOSX_UNUSED_VAR( pressure );
GEOSX_UNUSED_VAR( temperature );
GEOSX_UNUSED_VAR( composition );
GEOSX_UNUSED_VAR( phaseFraction );
GEOSX_UNUSED_VAR( phaseDensity );
GEOSX_UNUSED_VAR( phaseMassDensity );
GEOSX_UNUSED_VAR( phaseViscosity );
GEOSX_UNUSED_VAR( phaseCompFraction );
GEOSX_UNUSED_VAR( totalDens );

GEOSX_UNUSED_VAR( pressure, temperature, composition, phaseFraction, phaseDensity, phaseMassDensity,
phaseViscosity, phaseEnthalpy, phaseInternalEnergy, phaseCompFraction, totalDens );
GEOSX_ERROR( "BlackOilFluid: this compute function is not implemented" );
}

Expand All @@ -287,10 +287,12 @@ BlackOilFluid::KernelWrapper::
PhaseProp::SliceType const phaseDensity,
PhaseProp::SliceType const phaseMassDensity,
PhaseProp::SliceType const phaseViscosity,
PhaseProp::SliceType const phaseEnthalpy,
PhaseProp::SliceType const phaseInternalEnergy,
PhaseComp::SliceType const phaseCompFraction,
FluidProp::SliceType const totalDensity ) const
{
GEOSX_UNUSED_VAR( temperature );
GEOSX_UNUSED_VAR( temperature, phaseEnthalpy, phaseInternalEnergy );

real64 compMoleFrac[NC_BO]{};
real64 dCompMoleFrac_dCompMassFrac[NC_BO][NC_BO]{};
Expand Down Expand Up @@ -1090,6 +1092,8 @@ BlackOilFluid::KernelWrapper::
m_phaseDensity( k, q ),
m_phaseMassDensity( k, q ),
m_phaseViscosity( k, q ),
m_phaseEnthalpy( k, q ),
m_phaseInternalEnergy( k, q ),
m_phaseCompFraction( k, q ),
m_totalDensity( k, q ) );
}
Expand Down
4 changes: 4 additions & 0 deletions src/coreComponents/constitutive/fluid/BlackOilFluidBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ BlackOilFluidBase::KernelWrapper::
PhaseProp::ViewType phaseDensity,
PhaseProp::ViewType phaseMassDensity,
PhaseProp::ViewType phaseViscosity,
PhaseProp::ViewType phaseEnthalpy,
PhaseProp::ViewType phaseInternalEnergy,
PhaseComp::ViewType phaseCompFraction,
FluidProp::ViewType totalDensity )
: MultiFluidBase::KernelWrapper( std::move( componentMolarWeight ),
Expand All @@ -307,6 +309,8 @@ BlackOilFluidBase::KernelWrapper::
std::move( phaseDensity ),
std::move( phaseMassDensity ),
std::move( phaseViscosity ),
std::move( phaseEnthalpy ),
std::move( phaseInternalEnergy ),
std::move( phaseCompFraction ),
std::move( totalDensity ) ),
m_phaseTypes( std::move( phaseTypes ) ),
Expand Down
2 changes: 2 additions & 0 deletions src/coreComponents/constitutive/fluid/BlackOilFluidBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class BlackOilFluidBase : public MultiFluidBase
PhaseProp::ViewType phaseDensity,
PhaseProp::ViewType phaseMassDensity,
PhaseProp::ViewType phaseViscosity,
PhaseProp::ViewType phaseEnthalpy,
PhaseProp::ViewType phaseInternalEnergy,
PhaseComp::ViewType phaseCompFraction,
FluidProp::ViewType totalDensity );

Expand Down
Loading