51 using GridView = GetPropType<TypeTag, Properties::GridView>;
52 using Scalar = GetPropType<TypeTag, Properties::Scalar>;
53 using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
55 enum { dimWorld = GridView::dimensionworld };
57 using DimVector = Dune::FieldVector<Scalar, dimWorld>;
60 static void registerParameters()
63 template <
bool prepareValues = true,
bool prepareGradients = true>
64 void prepare(
const ElementContext&,
unsigned)
67 template <
class QuantityCallback,
class QuantityType = Scalar>
68 QuantityType calculateValue(
const ElementContext&,
70 const QuantityCallback&)
const
72 throw std::logic_error(
"Generic values are not supported by the black-oil simulator");
75 template <
class QuantityCallback>
76 void calculateGradient(DimVector&,
77 const ElementContext&,
79 const QuantityCallback&)
const
81 throw std::logic_error(
"Generic gradients are not supported by the black-oil simulator");
84 template <
class QuantityCallback>
85 Scalar calculateBoundaryValue(
const ElementContext&,
87 const QuantityCallback&)
89 throw std::logic_error(
"Generic boundary values are not supported by the black-oil simulator");
92 template <
class QuantityCallback>
93 void calculateBoundaryGradient(DimVector&,
94 const ElementContext&,
96 const QuantityCallback&)
const
98 throw std::logic_error(
"Generic boundary gradients are not supported by the black-oil simulator");