2 #ifndef DUNE_PDELAB_MAXWELLPARAMETER_HH
3 #define DUNE_PDELAB_MAXWELLPARAMETER_HH
7 #include<dune/common/exceptions.hh>
8 #include<dune/common/fvector.hh>
9 #include<dune/common/static_assert.hh>
11 #include<dune/geometry/quadraturerules.hh>
12 #include<dune/geometry/referenceelements.hh>
13 #include<dune/geometry/type.hh>
28 template<
typename GV,
typename RF>
44 typedef Dune::FieldVector<DomainFieldType,dimDomain>
DomainType;
53 typedef Dune::FieldVector<RF,GV::dimension>
RangeType;
56 typedef Dune::FieldVector<RF,2*GV::dimension>
StateType;
59 typedef typename GV::Traits::template Codim<0>::Entity
ElementType;
66 typename T::Traits::RangeFieldType,
67 T::Traits::dimDomain*2,Dune::FieldVector<typename T::Traits::RangeFieldType,T::Traits::dimDomain*2> >
68 ,MaxwellInitialValueAdapter<T> >
72 typename T::Traits::RangeFieldType,
73 T::Traits::dimDomain*2,Dune::FieldVector<typename T::Traits::RangeFieldType,T::Traits::dimDomain*2> >
Traits;
96 template<
typename GV,
typename RF>
103 : pi(3.141592653589793238462643), time(0.0)
dimension of the domain
Definition: maxwellparameter.hh:37
void evaluate(const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
Evaluate the GridFunction at given position.
Definition: maxwellparameter.hh:79
Definition: maxwellparameter.hh:64
MaxwellInitialValueAdapter(const typename Traits::GridViewType &g_, const T &t_)
constructor
Definition: maxwellparameter.hh:76
GV::Traits::template Codim< 0 >::Entity ElementType
codim 0 entity
Definition: function.hh:118
Dune::FieldVector< RF, 2 *GV::dimension > StateType
range type
Definition: maxwellparameter.hh:56
Traits::RangeFieldType sigma(const typename Traits::ElementType &e, const typename Traits::DomainType &x) const
permeability
Definition: maxwellparameter.hh:123
Dune::FieldVector< DomainFieldType, dimDomain-1 > IntersectionDomainType
domain type
Definition: maxwellparameter.hh:47
Dune::FieldVector< RF, GV::dimension > RangeType
range type
Definition: maxwellparameter.hh:53
Dune::FieldVector< GV::Grid::ctype, GV::dimension > DomainType
domain type in dim-size coordinates
Definition: function.hh:49
GV GridViewType
the grid view
Definition: maxwellparameter.hh:32
Traits::RangeFieldType eps(const typename Traits::ElementType &e, const typename Traits::DomainType &x) const
permittivity
Definition: maxwellparameter.hh:109
Traits class for convection diffusion parameters.
Definition: maxwellparameter.hh:29
Traits::RangeFieldType mu(const typename Traits::ElementType &e, const typename Traits::DomainType &x) const
permeability
Definition: maxwellparameter.hh:116
Dune::PDELab::GridFunctionTraits< typename T::Traits::GridViewType, typename T::Traits::RangeFieldType, T::Traits::dimDomain *2, Dune::FieldVector< typename T::Traits::RangeFieldType, T::Traits::dimDomain *2 > > Traits
Definition: maxwellparameter.hh:73
R RangeType
range type
Definition: function.hh:61
leaf of a function tree
Definition: function.hh:577
Dune::FieldVector< DomainFieldType, dimDomain > DomainType
domain type
Definition: maxwellparameter.hh:44
traits class holding the function signature, same as in local function
Definition: function.hh:176
MaxwellModelProblem()
Definition: maxwellparameter.hh:102
GV GridViewType
The type of the grid view the function lives on.
Definition: function.hh:115
Traits::StateType u0(const typename Traits::ElementType &e, const typename Traits::DomainType &x) const
initial value
Definition: maxwellparameter.hh:147
GV::Intersection IntersectionType
Definition: maxwellparameter.hh:60
Definition: maxwellparameter.hh:97
GV::Grid::ctype DomainFieldType
Export type for domain field.
Definition: maxwellparameter.hh:41
MaxwellParameterTraits< GV, RF > Traits
Definition: maxwellparameter.hh:100
GV::Traits::template Codim< 0 >::Entity ElementType
grid types
Definition: maxwellparameter.hh:59
const E & e
Definition: interpolate.hh:172
Traits::StateType j(const typename Traits::ElementType &e, const typename Traits::DomainType &x) const
right hand side
Definition: maxwellparameter.hh:139
void setTime(RF t)
set time for subsequent evaluation
Definition: maxwellparameter.hh:154
const Traits::GridViewType & getGridView() const
Definition: maxwellparameter.hh:86
Traits::StateType g(const typename Traits::IntersectionType &is, const typename Traits::IntersectionDomainType &x, const typename Traits::StateType &s) const
boundary condition value
Definition: maxwellparameter.hh:130
RF RangeFieldType
Export type for range field.
Definition: maxwellparameter.hh:50
const std::string s
Definition: function.hh:1103