3#ifndef DUNE_PDELAB_LOCALOPERATOR_DGINTERIORPENALTYPARAMETER_HH
4#define DUNE_PDELAB_LOCALOPERATOR_DGINTERIORPENALTYPARAMETER_HH
29 sigma = config.
get<RF>(
"sigma");
32 template<
typename GEO,
typename IGEO,
typename OGEO>
33 RF getFaceIP(
const GEO& geo,
const IGEO& igeo,
const OGEO& ogeo)
const
37 return sigma * geo.volume()/
min(igeo.volume(), ogeo.volume());
40 template<
typename GEO,
typename IGEO>
41 RF getFaceIP(
const GEO& geo,
const IGEO& igeo)
const
44 return sigma * geo.volume()/igeo.volume();
65 sigma = config.
get<RF>(
"sigma");
66 beta = config.
get<RF>(
"beta");
69 template<
typename GEO,
typename IGEO,
typename OGEO>
70 RF getFaceIP(
const GEO& geo,
const IGEO& igeo,
const OGEO& ogeo)
const
75 return sigma * pow(geo.volume()/
min(igeo.volume(),ogeo.volume()), beta);
78 template<
typename GEO,
typename IGEO>
79 RF getFaceIP(
const GEO& geo,
const IGEO& igeo)
const
83 return sigma * pow(geo.volume()/igeo.volume(), beta);
Default implementation of the interior penalty factor.
Definition: dginteriorpenaltyparameter.hh:23
Implementation of overpenalized interior penalty.
Definition: dginteriorpenaltyparameter.hh:58
Hierarchical structure of string parameters.
Definition: parametertree.hh:35
std::string get(const std::string &key, const std::string &defaultValue) const
get value as string
Definition: parametertree.cc:183
auto min(ADLTag< 0 >, const V &v1, const V &v2)
implements binary Simd::min()
Definition: defaults.hh:87
Dune namespace.
Definition: alignedallocator.hh:11
Various parser methods to get data into a ParameterTree object.