|
opm-common
|
Implementation for the parameters required by the material law for two-phase simulations. More...
#include <EclTwoPhaseMaterialParams.hpp>
Public Member Functions | |
| OPM_HOST_DEVICE | EclTwoPhaseMaterialParams ()=default |
| The default constructor. | |
| OPM_HOST_DEVICE void | setApproach (EclTwoPhaseApproach newApproach) |
| OPM_HOST_DEVICE EclTwoPhaseApproach | approach () const |
| OPM_HOST_DEVICE const GasOilParams & | gasOilParams () const |
| The parameter object for the gas-oil twophase law. | |
| OPM_HOST_DEVICE GasOilParams & | gasOilParams () |
| The parameter object for the gas-oil twophase law. | |
| OPM_HOST_DEVICE void | setGasOilParams (GasOilParamsStorage val) |
| Set the parameter object for the gas-oil twophase law. | |
| OPM_HOST_DEVICE const OilWaterParams & | oilWaterParams () const |
| The parameter object for the oil-water twophase law. | |
| OPM_HOST_DEVICE OilWaterParams & | oilWaterParams () |
| The parameter object for the oil-water twophase law. | |
| OPM_HOST_DEVICE void | setOilWaterParams (OilWaterParamsStorage val) |
| Set the parameter object for the oil-water twophase law. | |
| OPM_HOST_DEVICE const GasWaterParams & | gasWaterParams () const |
| The parameter object for the gas-water twophase law. | |
| OPM_HOST_DEVICE GasWaterParams & | gasWaterParams () |
| The parameter object for the gas-water twophase law. | |
| OPM_HOST_DEVICE void | setGasWaterParams (GasWaterParamsStorage val) |
| Set the parameter object for the gas-water twophase law. | |
| template<class Serializer > | |
| void | serializeOp (Serializer &serializer) |
| void | setSwl (Scalar) |
| OPM_HOST_DEVICE void | finalize () |
| Mark the object as finalized. | |
Public Member Functions inherited from Opm::EnsureFinalized | |
| OPM_HOST_DEVICE void | finalize () |
| Mark the object as finalized. | |
Additional Inherited Members | |
Protected Member Functions inherited from Opm::EnsureFinalized | |
| OPM_HOST_DEVICE | EnsureFinalized () |
| The default constructor. | |
| OPM_HOST_DEVICE void | check () const |
Implementation for the parameters required by the material law for two-phase simulations.
Essentially, this class just stores the two parameter objects for the twophase capillary pressure laws.
The StoragePolicy template parameter selects how the per-sub-law parameter objects are stored. By default they are heap-allocated and referenced through std::shared_ptr; instantiations targeting the GPU may pass an inline-storage policy such as Opm::gpuistl::ValueAsPointer so that the resulting object is trivially copyable to the device.