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 EG,
class IVSubControlVolume,
class Tensor>
50Dune::FieldVector<typename Tensor::field_type, IVSubControlVolume::myDimension>
52 const typename EG::SubControlVolumeFace& scvf,
54 typename IVSubControlVolume::ctype extrusionFactor)
56 Dune::FieldVector<typename Tensor::field_type, IVSubControlVolume::myDimension> wijk;
57 for (
unsigned int dir = 0; dir < IVSubControlVolume::myDimension; ++dir)
58 wijk[dir] =
vtmv(scvf.unitOuterNormal(), t, scv.nu(dir));
61 wijk *= Extrusion::area(scvf)*extrusionFactor;
79template< class EG, class IVSubControlVolume, class Tensor, std::enable_if_t< Dune::IsNumber<Tensor>::value,
int > = 1 >
80Dune::FieldVector<Tensor, IVSubControlVolume::myDimension>
82 const typename EG::SubControlVolumeFace& scvf,
84 typename IVSubControlVolume::ctype extrusionFactor)
86 Dune::FieldVector<Tensor, IVSubControlVolume::myDimension> wijk;
87 for (
unsigned int dir = 0; dir < IVSubControlVolume::myDimension; ++dir)
88 wijk[dir] =
vtmv(scvf.unitOuterNormal(), t, scv.nu(dir));
91 wijk *= Extrusion::area(scvf)*extrusionFactor;
Define some often used mathematical functions.
Helper classes to compute the integration elements.
Dune::FieldVector< typename Tensor::field_type, IVSubControlVolume::myDimension > computeMpfaTransmissibility(const IVSubControlVolume &scv, const typename EG::SubControlVolumeFace &scvf, const Tensor &t, typename IVSubControlVolume::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:863
typename Extrusion< T >::type Extrusion_t
Convenience alias for obtaining the extrusion type.
Definition: extrusion.hh:177
Traits extracting the public Extrusion type from T Defaults to NoExtrusion if no such type is found.
Definition: extrusion.hh:166