24#ifndef OPM_CO2TABLES_HPP
25#define OPM_CO2TABLES_HPP
34 using Scalar = double;
35 static const char *name;
36 static const int numX = 200;
37 static const Scalar xMin;
38 static const Scalar xMax;
39 static const int numY = 500;
40 static const Scalar yMin;
41 static const Scalar yMax;
42 static const Scalar vals[200][500];
47 using Scalar = double;
48 static const char *name;
49 static const int numX = 200;
50 static const Scalar xMin;
51 static const Scalar xMax;
52 static const int numY = 500;
53 static const Scalar yMin;
54 static const Scalar yMax;
55 static const Scalar vals[200][500];
58template<
class Scalar =
double,
class ContainerT = std::vector<
double>>
64 static constexpr double brineSalinity = 1.000000000000000e-01;
70 : tabulatedEnthalpy(enthalpy), tabulatedDensity(density)
75 return tabulatedEnthalpy;
79 return tabulatedDensity;
85namespace Opm::gpuistl {
86 template <
class ViewType,
class Scalar,
class ContainerType>
87 CO2Tables<Scalar, ViewType>
88 make_view(CO2Tables<Scalar, ContainerType>& oldCO2Tables) {
92 return CO2Tables<Scalar, ViewType>(newEnthalpy, newDensity);
95 template <
class NewContainerType,
class Scalar,
class OldContainerType>
96 CO2Tables<Scalar, NewContainerType>
97 copy_to_gpu(
const CO2Tables<Scalar, OldContainerType>& oldCO2Tables) {
98 return CO2Tables<Scalar, NewContainerType>(
99 copy_to_gpu<NewContainerType>(oldCO2Tables.tabulatedEnthalpy),
100 copy_to_gpu<NewContainerType>(oldCO2Tables.tabulatedDensity)
Definition CO2Tables.hpp:60
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition CO2Tables.hpp:33
Definition CO2Tables.hpp:46