23#ifndef AWN_SURFACE_POLYNOMIAL_2ND_ORDER_HH
24#define AWN_SURFACE_POLYNOMIAL_2ND_ORDER_HH
28#include <dune/common/exceptions.hh>
33#include <dune/common/math.hh>
35#warning "This header is deprecated. Removal after 3.3. Use new material laws."
44template <
class ScalarT,
class ParamsT = AwnSurfacePolynomial2ndOrderParams<ScalarT> >
49 using Scalar =
typename Params::Scalar;
64 const Scalar a00 = params.a00();
65 const Scalar a10 = params.a10();
66 const Scalar a20 = params.a20();
67 const Scalar a11 = params.a11();
68 const Scalar a01 = params.a01();
69 const Scalar a02 = params.a02();
72 const Scalar aAlphaBeta = a00 + a10 * Sw + a20 * power(Sw,2) + a11*Sw*pc + a01*pc + a02*power(pc,2);
86 const Scalar value = params.a11()*Sw + params.a01() + 2.0*params.a02() * pc;
99 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...
Implementation of the polynomial of second order relating specific interfacial area to wetting phase ...
Definition: awnsurfacepolynomial2ndorder.hh:46
ParamsT Params
Definition: awnsurfacepolynomial2ndorder.hh:48
static Scalar interfacialArea(const Params ¶ms, const Scalar Sw, const Scalar pc)
The awn surface.
Definition: awnsurfacepolynomial2ndorder.hh:62
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:84
typename Params::Scalar Scalar
Definition: awnsurfacepolynomial2ndorder.hh:49
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:97