26#ifndef DUMUX_DISCRETIZATION_CC_MPFA_COMPUTE_TRANSMISSIBILITY_HH
27#define DUMUX_DISCRETIZATION_CC_MPFA_COMPUTE_TRANSMISSIBILITY_HH
29#include <dune/common/typetraits.hh>
30#include <dune/common/fvector.hh>
49template<
class Scv,
class Scvf,
class Tensor>
50Dune::FieldVector< typename Tensor::field_type, Scv::myDimension >
54 typename Scv::ctype extrusionFactor)
56 Dune::FieldVector< typename Tensor::field_type, Scv::myDimension > wijk;
57 for (
unsigned int dir = 0; dir < Scv::myDimension; ++dir)
58 wijk[dir] =
vtmv(scvf.unitOuterNormal(), T, scv.nu(dir));
60 wijk *= scvf.area()*extrusionFactor;
81 std::enable_if_t< Dune::IsNumber<Tensor>::value,
int > = 1 >
82Dune::FieldVector<Tensor, Scv::myDimension>
86 typename Scv::ctype extrusionFactor)
88 Dune::FieldVector<Tensor, Scv::myDimension> wijk;
89 for (
unsigned int dir = 0; dir < Scv::myDimension; ++dir)
90 wijk[dir] =
vtmv(scvf.unitOuterNormal(), t, scv.nu(dir));
92 wijk *= scvf.area()*extrusionFactor;
Define some often used mathematical functions.
Dune::FieldVector< typename Tensor::field_type, Scv::myDimension > computeMpfaTransmissibility(const Scv &scv, const Scvf &scvf, const Tensor &T, typename Scv::ctype extrusionFactor)
Free function to evaluate the Mpfa transmissibility associated with the flux (in the form of flux = T...
Definition: mpfa/computetransmissibility.hh:51
Dune::DenseMatrix< MAT >::value_type vtmv(const Dune::DenseVector< V1 > &v1, const Dune::DenseMatrix< MAT > &M, const Dune::DenseVector< V2 > &v2)
Evaluates the scalar product of a vector v2, projected by a matrix M, with a vector v1.
Definition: math.hh:840
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29