Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Method Class Reference

#include <Method.h>

Inheritance diagram for dolfin::Method:

Inheritance graph
[legend]
Collaboration diagram for dolfin::Method:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Method (unsigned int q)
 Constructor.

virtual ~Method ()
 Destructor.

unsigned int size () const
 Return number of points (inline optimized).

unsigned int degree () const
 Return degree (inline optimized).

real point (unsigned int i) const
 Return nodal point (inline optimized).

real weight (unsigned int i, unsigned int j) const
 Return nodal weight j for degree of freedom i, including quadrature (inline optimized).

real weight (unsigned int i) const
 Return quadrature weight, including only quadrature (inline optimized).

real basis (unsigned int i, real t) const
 Evaluation of basis function i at given point t within [0,1] (inline optimized).

real derivative (unsigned int i, real t) const
 Evaluation of derivative of basis function i at given point t within [0,1] (inline optimized).

real derivative (unsigned int i) const
 Evaluation of derivative of basis function i at t = 1 (inline optimized).

virtual void show () const=0
 Display method data.


Protected Member Functions

void init ()
virtual void computeQuadrature ()=0
virtual void computeBasis ()=0
virtual void computeWeights ()=0
void computeDerivatives ()

Protected Attributes

unsigned int q
unsigned int n
realpoints
real ** weights
realqweights
realderivatives
Lagrangetrial
Lagrangetest

Detailed Description

Base class for cGqMethod and dGqMethod, which contain all numeric constants, such as nodal points and nodal weights, needed for the method.


Constructor & Destructor Documentation

Method::Method unsigned int  q  ) 
 

Constructor.

Method::~Method  )  [virtual]
 

Destructor.


Member Function Documentation

real dolfin::Method::basis unsigned int  i,
real  t
const [inline]
 

Evaluation of basis function i at given point t within [0,1] (inline optimized).

virtual void dolfin::Method::computeBasis  )  [protected, pure virtual]
 

Implemented in dolfin::cGqMethod, and dolfin::dGqMethod.

void Method::computeDerivatives  )  [protected]
 

virtual void dolfin::Method::computeQuadrature  )  [protected, pure virtual]
 

Implemented in dolfin::cGqMethod, and dolfin::dGqMethod.

virtual void dolfin::Method::computeWeights  )  [protected, pure virtual]
 

Implemented in dolfin::cGqMethod, and dolfin::dGqMethod.

unsigned int dolfin::Method::degree  )  const [inline]
 

Return degree (inline optimized).

real dolfin::Method::derivative unsigned int  i  )  const [inline]
 

Evaluation of derivative of basis function i at t = 1 (inline optimized).

real dolfin::Method::derivative unsigned int  i,
real  t
const [inline]
 

Evaluation of derivative of basis function i at given point t within [0,1] (inline optimized).

void Method::init  )  [protected]
 

real dolfin::Method::point unsigned int  i  )  const [inline]
 

Return nodal point (inline optimized).

virtual void dolfin::Method::show  )  const [pure virtual]
 

Display method data.

Implemented in dolfin::cGqMethod, and dolfin::dGqMethod.

unsigned int dolfin::Method::size  )  const [inline]
 

Return number of points (inline optimized).

real dolfin::Method::weight unsigned int  i  )  const [inline]
 

Return quadrature weight, including only quadrature (inline optimized).

real dolfin::Method::weight unsigned int  i,
unsigned int  j
const [inline]
 

Return nodal weight j for degree of freedom i, including quadrature (inline optimized).


Member Data Documentation

real* dolfin::Method::derivatives [protected]
 

unsigned int dolfin::Method::n [protected]
 

real* dolfin::Method::points [protected]
 

unsigned int dolfin::Method::q [protected]
 

real* dolfin::Method::qweights [protected]
 

Lagrange* dolfin::Method::test [protected]
 

Lagrange* dolfin::Method::trial [protected]
 

real** dolfin::Method::weights [protected]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.