TimeLinearForm for constant right hand side. More...

#include <linearForm.hh>

Inheritance diagram for linDG3D::ConstRhs:
timestepping::TimeLinearForm concepts::LinearForm< Real >

Public Member Functions

 ConstRhs (Real c=1.0)
 
virtual void operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em)
 Application operator. More...
 
virtual void operator() (const Element< typename Realtype< Real >::type > &elm, ElementMatrix< Real > &em) const=0
 Computes the element contribution to the function. More...
 
void operator() (const FvdgElement &elm, concepts::ElementMatrix< Real > &em)
 Application operator. More...
 
Real time ()
 Returns time_. More...
 
virtual void time (Real time)
 Sets time_. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Protected Attributes

Real time_
 The current time. More...
 

Private Attributes

Real c_
 

Detailed Description

TimeLinearForm for constant right hand side.

Works for all FvdgElements, provided the following assumption holds: The first shape function is constant = 1, all others have vanishing mean.

Author
Christoph Winkelmann, 2002

Definition at line 30 of file linearForm.hh.

Constructor & Destructor Documentation

◆ ConstRhs()

linDG3D::ConstRhs::ConstRhs ( Real  c = 1.0)
inline

Definition at line 32 of file linearForm.hh.

Member Function Documentation

◆ info()

◆ operator()() [1/3]

virtual void linDG3D::ConstRhs::operator() ( const concepts::Element< Real > &  elm,
concepts::ElementMatrix< Real > &  em 
)
virtual

Application operator.

Tries to convert elements to FvdgElements and throws exception when conversion fails.

Parameters
elmElement
emElement matrix

◆ operator()() [2/3]

virtual void concepts::LinearForm< Real , typename Realtype<Real >::type >::operator() ( const Element< G > &  elm,
ElementMatrix< F > &  em 
) const
pure virtualinherited

Computes the element contribution to the function.

Parameters
elmElement on which the computations should be performed
emThe local matrix

◆ operator()() [3/3]

void linDG3D::ConstRhs::operator() ( const FvdgElement elm,
concepts::ElementMatrix< Real > &  em 
)

Application operator.

Builds element matrix.

Parameters
elmElement
emElement matrix

◆ time() [1/2]

Real timestepping::TimeLinearForm::time ( )
inlineinherited

Returns time_.

Definition at line 41 of file vectors.hh.

◆ time() [2/2]

virtual void timestepping::TimeLinearForm::time ( Real  time)
inlinevirtualinherited

Sets time_.

Reimplemented in vectorial::TimeLinearForm.

Definition at line 39 of file vectors.hh.

Member Data Documentation

◆ c_

Real linDG3D::ConstRhs::c_
private

Definition at line 47 of file linearForm.hh.

◆ time_

Real timestepping::TimeLinearForm::time_
protectedinherited

The current time.

Definition at line 44 of file vectors.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich