dune-pdelab  2.0.0
Public Types | Public Member Functions | List of all members
Dune::PDELab::DGMaxwellSpatialOperator< T, FEM > Class Template Reference

#include <dune/pdelab/localoperator/maxwelldg.hh>

Inheritance diagram for Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >:
Inheritance graph

Public Types

enum  { doPatternVolume = true }
 
enum  { doPatternSkeleton = true }
 
enum  { doAlphaVolume = true }
 
enum  { doAlphaSkeleton = true }
 
enum  { doAlphaBoundary = true }
 
enum  { doLambdaVolume = true }
 
typedef T::Traits::RangeFieldType RealType
 
Flags for the sparsity pattern
enum  { doPatternVolume }
 Whether to assemble the pattern on the elements, i.e. whether or not pattern_volume() should be called. More...
 
enum  { doPatternVolumePostSkeleton }
 Whether to assemble the pattern on the elements after the skeleton has been handled, i.e. whether or not pattern_volume_post_skeleton() should be called. More...
 
enum  { doPatternSkeleton }
 Whether to assemble the pattern on the interior intersections, i.e. whether or not pattern_skeleton() should be called. More...
 
enum  { doPatternBoundary }
 Whether to assemble the pattern on the boundary intersections, i.e. whether or not pattern_boundary() should be called. More...
 
Flags for the non-constant part of the residual and the jacobian
enum  { doAlphaVolume }
 Whether to call the local operator's alpha_volume(), jacobian_apply_volume() and jacobian_volume(). More...
 
enum  { doAlphaVolumePostSkeleton }
 Whether to call the local operator's alpha_volume_post_skeleton(), jacobian_apply_volume_post_skeleton() and jacobian_volume_post_skeleton(). More...
 
enum  { doAlphaSkeleton }
 Whether to call the local operator's alpha_skeleton(), jacobian_apply_skeleton() and jacobian_skeleton(). More...
 
enum  { doAlphaBoundary }
 Whether to call the local operator's alpha_boundary(), jacobian_apply_boundary() and jacobian_boundary(). More...
 
Flags for the constant part of the residual
enum  { doLambdaVolume }
 Whether to call the local operator's lambda_volume(). More...
 
enum  { doLambdaVolumePostSkeleton }
 Whether to call the local operator's lambda_volume_post_skeleton(). More...
 
enum  { doLambdaSkeleton }
 Whether to call the local operator's lambda_skeleton(). More...
 
enum  { doLambdaBoundary }
 Whether to call the local operator's lambda_boundary(). More...
 
Special flags
enum  { doSkeletonTwoSided }
 Whether to visit the skeleton methods from both sides. More...
 

Public Member Functions

 DGMaxwellSpatialOperator (T &param_, int overintegration_=0)
 
template<typename EG , typename LFSU , typename X , typename LFSV , typename R >
void alpha_volume (const EG &eg, const LFSU &lfsu, const X &x, const LFSV &lfsv, R &r) const
 
template<typename IG , typename LFSU , typename X , typename LFSV , typename R >
void alpha_skeleton (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, const LFSU &lfsu_n, const X &x_n, const LFSV &lfsv_n, R &r_s, R &r_n) const
 
template<typename IG , typename LFSU , typename X , typename LFSV , typename R >
void alpha_boundary (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, R &r_s) const
 
template<typename EG , typename LFSV , typename R >
void lambda_volume (const EG &eg, const LFSV &lfsv, R &r) const
 
void setTime (typename T::Traits::RangeFieldType t)
 set time in parameter class More...
 
void preStep (typename T::Traits::RangeFieldType time, typename T::Traits::RangeFieldType dt, int stages)
 to be called once before each time step More...
 
void preStage (typename T::Traits::RangeFieldType time, int r)
 to be called once before each stage More...
 
void postStage ()
 to be called once at the end of each stage More...
 
T::Traits::RangeFieldType suggestTimestep (typename T::Traits::RangeFieldType dt) const
 to be called once before each stage More...
 
void jacobian_apply_volume (const EG &eg, const LFSU &lfsu, const X &x, const LFSV &lfsv, Y &y) const
 apply local jacobian of the volume term More...
 
void jacobian_volume (const EG &eg, const LFSU &lfsu, const X &x, const LFSV &lfsv, Jacobian &mat) const
 compute local jacobian of the volume term More...
 
void jacobian_apply_skeleton (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, const LFSU &lfsu_n, const X &x_n, const LFSV &lfsv_n, Y &y_s, Y &y_n) const
 apply local jacobian of the skeleton term More...
 
void jacobian_skeleton (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, const LFSU &lfsu_n, const X &x_n, const LFSV &lfsv_n, Jacobian &mat_ss, Jacobian &mat_sn, Jacobian &mat_ns, Jacobian &mat_nn) const
 compute local jacobian of the skeleton term More...
 
void jacobian_apply_boundary (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, Y &y_s) const
 apply local jacobian of the boundaryterm More...
 
void jacobian_boundary (const IG &ig, const LFSU &lfsu_s, const X &x_s, const LFSV &lfsv_s, Jacobian &mat_ss) const
 compute local jacobian of the boundary term More...
 
template<typename LFSU , typename LFSV , typename LocalPattern >
void pattern_skeleton (const LFSU &lfsu_s, const LFSV &lfsv_s, const LFSU &lfsu_n, const LFSV &lfsv_n, LocalPattern &pattern_sn, LocalPattern &pattern_ns) const
 
template<typename LFSU , typename LFSV , typename LocalPattern >
void pattern_volume (const LFSU &lfsu, const LFSV &lfsv, LocalPattern &pattern) const
 
T::Traits::RangeFieldType getTime () const
 get current time More...
 
void postStep ()
 to be called once at the end of each time step More...
 
int getStage () const
 get current stage More...
 

Detailed Description

template<typename T, typename FEM>
class Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >

Spatial local operator for discontinuous Galerkin method for Maxwells Equations

with the state vector u=(D,B) having 2*dim components

Template Parameters
Tparameter class
FEMFinite Element Map needed to select the cache

Member Typedef Documentation

typedef T::Traits::RangeFieldType Dune::PDELab::InstationaryLocalOperatorDefaultMethods< T::Traits::RangeFieldType >::RealType
inherited

Member Enumeration Documentation

anonymous enum
inherited

Whether to assemble the pattern on the elements, i.e. whether or not pattern_volume() should be called.

Enumerator
doPatternVolume 
anonymous enum
inherited

Whether to assemble the pattern on the elements after the skeleton has been handled, i.e. whether or not pattern_volume_post_skeleton() should be called.

Enumerator
doPatternVolumePostSkeleton 
anonymous enum
inherited

Whether to assemble the pattern on the interior intersections, i.e. whether or not pattern_skeleton() should be called.

Enumerator
doPatternSkeleton 
anonymous enum
inherited

Whether to assemble the pattern on the boundary intersections, i.e. whether or not pattern_boundary() should be called.

Enumerator
doPatternBoundary 
anonymous enum
inherited

Whether to call the local operator's alpha_volume(), jacobian_apply_volume() and jacobian_volume().

Enumerator
doAlphaVolume 
anonymous enum
inherited

Whether to call the local operator's alpha_volume_post_skeleton(), jacobian_apply_volume_post_skeleton() and jacobian_volume_post_skeleton().

Enumerator
doAlphaVolumePostSkeleton 
anonymous enum
inherited

Whether to call the local operator's alpha_skeleton(), jacobian_apply_skeleton() and jacobian_skeleton().

Enumerator
doAlphaSkeleton 
anonymous enum
inherited

Whether to call the local operator's alpha_boundary(), jacobian_apply_boundary() and jacobian_boundary().

Enumerator
doAlphaBoundary 
anonymous enum
inherited

Whether to call the local operator's lambda_volume().

Enumerator
doLambdaVolume 
anonymous enum
inherited

Whether to call the local operator's lambda_volume_post_skeleton().

Enumerator
doLambdaVolumePostSkeleton 
anonymous enum
inherited

Whether to call the local operator's lambda_skeleton().

Enumerator
doLambdaSkeleton 
anonymous enum
inherited

Whether to call the local operator's lambda_boundary().

Enumerator
doLambdaBoundary 
anonymous enum
inherited

Whether to visit the skeleton methods from both sides.

Enumerator
doSkeletonTwoSided 
template<typename T , typename FEM >
anonymous enum
Enumerator
doPatternVolume 
template<typename T , typename FEM >
anonymous enum
Enumerator
doPatternSkeleton 
template<typename T , typename FEM >
anonymous enum
Enumerator
doAlphaVolume 
template<typename T , typename FEM >
anonymous enum
Enumerator
doAlphaSkeleton 
template<typename T , typename FEM >
anonymous enum
Enumerator
doAlphaBoundary 
template<typename T , typename FEM >
anonymous enum
Enumerator
doLambdaVolume 

Constructor & Destructor Documentation

template<typename T , typename FEM >
Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::DGMaxwellSpatialOperator ( T &  param_,
int  overintegration_ = 0 
)
inline

Member Function Documentation

template<typename T , typename FEM >
template<typename IG , typename LFSU , typename X , typename LFSV , typename R >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::alpha_boundary ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
R &  r_s 
) const
inline

References f.

template<typename T , typename FEM >
template<typename IG , typename LFSU , typename X , typename LFSV , typename R >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::alpha_skeleton ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
const LFSU &  lfsu_n,
const X &  x_n,
const LFSV &  lfsv_n,
R &  r_s,
R &  r_n 
) const
inline

References f.

template<typename T , typename FEM >
template<typename EG , typename LFSU , typename X , typename LFSV , typename R >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::alpha_volume ( const EG &  eg,
const LFSU &  lfsu,
const X &  x,
const LFSV &  lfsv,
R &  r 
) const
inline
int Dune::PDELab::InstationaryLocalOperatorDefaultMethods< T::Traits::RangeFieldType >::getStage ( ) const
inlineinherited

get current stage

Returns
The current stage number previously set by preStage().
T::Traits::RangeFieldType Dune::PDELab::InstationaryLocalOperatorDefaultMethods< T::Traits::RangeFieldType >::getTime ( ) const
inlineinherited

get current time

Returns
The time previously set by setTime().
void Dune::PDELab::NumericalJacobianApplyBoundary< DGMaxwellSpatialOperator< T, FEM > >::jacobian_apply_boundary ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
Y &  y_s 
) const
inlineinherited

apply local jacobian of the boundaryterm

void Dune::PDELab::NumericalJacobianApplySkeleton< DGMaxwellSpatialOperator< T, FEM > >::jacobian_apply_skeleton ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
const LFSU &  lfsu_n,
const X &  x_n,
const LFSV &  lfsv_n,
Y &  y_s,
Y &  y_n 
) const
inlineinherited

apply local jacobian of the skeleton term

void Dune::PDELab::NumericalJacobianApplyVolume< DGMaxwellSpatialOperator< T, FEM > >::jacobian_apply_volume ( const EG &  eg,
const LFSU &  lfsu,
const X &  x,
const LFSV &  lfsv,
Y &  y 
) const
inlineinherited

apply local jacobian of the volume term

void Dune::PDELab::NumericalJacobianBoundary< DGMaxwellSpatialOperator< T, FEM > >::jacobian_boundary ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
Jacobian &  mat_ss 
) const
inlineinherited

compute local jacobian of the boundary term

void Dune::PDELab::NumericalJacobianSkeleton< DGMaxwellSpatialOperator< T, FEM > >::jacobian_skeleton ( const IG &  ig,
const LFSU &  lfsu_s,
const X &  x_s,
const LFSV &  lfsv_s,
const LFSU &  lfsu_n,
const X &  x_n,
const LFSV &  lfsv_n,
Jacobian &  mat_ss,
Jacobian &  mat_sn,
Jacobian &  mat_ns,
Jacobian &  mat_nn 
) const
inlineinherited

compute local jacobian of the skeleton term

References Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::size().

void Dune::PDELab::NumericalJacobianVolume< DGMaxwellSpatialOperator< T, FEM > >::jacobian_volume ( const EG &  eg,
const LFSU &  lfsu,
const X &  x,
const LFSV &  lfsv,
Jacobian &  mat 
) const
inlineinherited

compute local jacobian of the volume term

template<typename T , typename FEM >
template<typename EG , typename LFSV , typename R >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::lambda_volume ( const EG &  eg,
const LFSV &  lfsv,
R &  r 
) const
inline
template<typename LFSU , typename LFSV , typename LocalPattern >
void Dune::PDELab::FullSkeletonPattern::pattern_skeleton ( const LFSU &  lfsu_s,
const LFSV &  lfsv_s,
const LFSU &  lfsu_n,
const LFSV &  lfsv_n,
LocalPattern &  pattern_sn,
LocalPattern &  pattern_ns 
) const
inlineinherited
template<typename LFSU , typename LFSV , typename LocalPattern >
void Dune::PDELab::FullVolumePattern::pattern_volume ( const LFSU &  lfsu,
const LFSV &  lfsv,
LocalPattern &  pattern 
) const
inlineinherited
template<typename T , typename FEM >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::postStage ( )
inline

to be called once at the end of each stage

void Dune::PDELab::InstationaryLocalOperatorDefaultMethods< T::Traits::RangeFieldType >::postStep ( )
inlineinherited

to be called once at the end of each time step

Note
With the OneStepMethod and the ExplicitOneStepMetod, for reasons unknown this is only called for temporal but not for spatial local operators. With the MultiStepMethod this is called for all local operators.
template<typename T , typename FEM >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::preStage ( typename T::Traits::RangeFieldType  time,
int  r 
)
inline

to be called once before each stage

template<typename T , typename FEM >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::preStep ( typename T::Traits::RangeFieldType  time,
typename T::Traits::RangeFieldType  dt,
int  stages 
)
inline

to be called once before each time step

template<typename T , typename FEM >
void Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::setTime ( typename T::Traits::RangeFieldType  t)
inline

set time in parameter class

template<typename T , typename FEM >
T::Traits::RangeFieldType Dune::PDELab::DGMaxwellSpatialOperator< T, FEM >::suggestTimestep ( typename T::Traits::RangeFieldType  dt) const
inline

to be called once before each stage


The documentation for this class was generated from the following file: