Class template Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>

Inherits from ::testing::Test.

template<class G>
class Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G> : public ::testing::Test

Tests the Raviart-Thomas interpolation (interpolations/raviart-thomas.hh).

The Raviart-Thomas space is H(div)-conforming and vector-valued (range dimension d). We test: - exact reproduction of a constant vector field v = e_0 = (1, 0, …) [contained in RT0 on affine elements], checked as full pointwise reproduction and as reproduction of the normal component v.n at facet quadrature points (the quantity the RT interpolation is defined through); - the H(div) invariant that the interpolant of an arbitrary (here linear) field has continuous normal components across interior intersections; - that all interpolation overloads (fill existing vs. create new, explicit vs. default vector type, explicit vs. implicit interpolation grid view) produce the same exactly-reproducing result.

Note

Only order 0 is exercised, since RaviartThomasSpace currently only supports order 0. A general linear field is therefore not exactly reproducible by RT0, so for the linear field only the normal-component continuity invariant is asserted (not exact reproduction).

Method Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::make_grid

template<class G>
virtual std::shared_ptr<XT::Grid::GridProvider<G>> Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::make_grid()

No documentation provided.

Method Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::SetUp

template<class G>
void Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::SetUp() override

No documentation provided.

Method Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::interpolates_constant_field_correctly

template<class G>
void Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::interpolates_constant_field_correctly()

No documentation provided.

Method Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::all_overloads_reproduce_constant_field

template<class G>
void Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::all_overloads_reproduce_constant_field()

No documentation provided.

Method Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::interpolant_has_continuous_normal_components

template<class G>
void Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::interpolant_has_continuous_normal_components()

No documentation provided.

Field Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::grid_provider

template<class G>
std::shared_ptr<XT::Grid::GridProvider<G>> Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::grid_provider

No documentation provided.

Field Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::space

template<class G>
std::shared_ptr<SpaceType> Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::space

No documentation provided.

Field Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::constant_source

template<class G>
std::shared_ptr<XT::Functions::ConstantFunction<d, d, 1, double>> Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::constant_source

No documentation provided.

Field Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::linear_source

template<class G>
std::shared_ptr<XT::Functions::GenericFunction<d, d, 1, double>> Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::linear_source

No documentation provided.

Variable Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::d

template<class G>
const size_t Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::d

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::GV

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::GV = typename G::LeafGridView

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::D

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::D = typename GV::ctype

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::E

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::E = XT::Grid::extract_entity_t<GV>

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::I

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::I = XT::Grid::extract_intersection_t<GV>

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::V

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::V = XT::LA::IstlDenseVector<double>

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::SpaceType

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::SpaceType = RaviartThomasSpace<GV, double>

No documentation provided.

Type alias Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::DiscreteFunctionType

template<class G>
using Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::DiscreteFunctionType = DiscreteFunction<V, GV, d, 1, double>

No documentation provided.

Function template Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest::check_reproduces_constant

template<class G>
template<class DiscreteFunctionImp>
void Dune::GDT::Test::RaviartThomasInterpolationOnLeafViewTest<G>::check_reproduces_constant(DiscreteFunctionImp &range, const double tolerance = 9.9999999999999998E-13)

No documentation provided.