opm-common
Opm::EclTwoPhaseMaterialParams< Traits, GasOilParamsT, OilWaterParamsT, GasWaterParamsT, StoragePolicy > Class Template Reference

Implementation for the parameters required by the material law for two-phase simulations. More...

#include <EclTwoPhaseMaterialParams.hpp>

Inheritance diagram for Opm::EclTwoPhaseMaterialParams< Traits, GasOilParamsT, OilWaterParamsT, GasWaterParamsT, StoragePolicy >:
Opm::EnsureFinalized

Public Types

using GasOilParams = GasOilParamsT
 
using OilWaterParams = OilWaterParamsT
 
using GasWaterParams = GasWaterParamsT
 
using GasOilParamsStorage = StoragePolicy< GasOilParams >
 
using OilWaterParamsStorage = StoragePolicy< OilWaterParams >
 
using GasWaterParamsStorage = StoragePolicy< GasWaterParams >
 

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
 

Detailed Description

template<class Traits, class GasOilParamsT, class OilWaterParamsT, class GasWaterParamsT, template< class > class StoragePolicy = std::shared_ptr>
class Opm::EclTwoPhaseMaterialParams< Traits, GasOilParamsT, OilWaterParamsT, GasWaterParamsT, StoragePolicy >

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.


The documentation for this class was generated from the following file: