23#ifndef AWN_SURFACE_POLYNOMIAL_2ND_ORDER_HH
24#define AWN_SURFACE_POLYNOMIAL_2ND_ORDER_HH
28#include <dune/common/exceptions.hh>
41template <
class ScalarT,
class ParamsT = AwnSurfacePolynomial2ndOrderParams<ScalarT> >
46 using Scalar =
typename Params::Scalar;
61 const Scalar a00 = params.a00();
62 const Scalar a10 = params.a10();
63 const Scalar a20 = params.a20();
64 const Scalar a11 = params.a11();
65 const Scalar a01 = params.a01();
66 const Scalar a02 = params.a02();
69 const Scalar aAlphaBeta = a00 + a10 * Sw + a20 * pow(Sw,2) + a11*Sw*pc + a01*pc + a02*pow(pc,2);
83 const Scalar value = params.a11()*Sw + params.a01() + 2.0*params.a02() * pc;
96 const Scalar value = params.a11()*pc + params.a10() + 2.0*params.a20()*Sw;
Specification of the parameters for a function relating volume specific interfacial area to capillary...
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Implementation of the polynomial of second order relating specific interfacial area to wetting phase ...
Definition: awnsurfacepolynomial2ndorder.hh:43
ParamsT Params
Definition: awnsurfacepolynomial2ndorder.hh:45
static Scalar interfacialArea(const Params ¶ms, const Scalar Sw, const Scalar pc)
The awn surface.
Definition: awnsurfacepolynomial2ndorder.hh:59
static Scalar dawn_dpc(const Params ¶ms, const Scalar Sw, const Scalar pc)
the derivative of specific interfacial area function w.r.t. capillary pressure
Definition: awnsurfacepolynomial2ndorder.hh:81
typename Params::Scalar Scalar
Definition: awnsurfacepolynomial2ndorder.hh:46
static Scalar dawn_dsw(const Params ¶ms, const Scalar Sw, const Scalar pc)
the derivative of specific interfacial area function w.r.t. saturation
Definition: awnsurfacepolynomial2ndorder.hh:94