Shape Class Reference

Shape.h DG++. More...

#include <Shape.h>

Inheritance diagram for Shape:
Linear< SPD >

List of all members.

Public Member Functions

 Shape ()
virtual ~Shape ()
 Shape (const Shape &)
virtual Shapeclone () const =0
virtual size_t getNumFunctions () const =0
virtual size_t getNumVariables () const =0
 Number of arguments of the functions.
virtual double getVal (size_t a, const double *x) const =0
 Value of shape $N_a(x)$.
virtual double getDVal (size_t a, const double *x, size_t i) const =0
 Value of $\frac{\partial N_a}{\partial x_i}(x)$.
bool consistencyTest (const double *x, const double Pert) const
 Consistency test for getVal and getDVal.

Detailed Description

Shape.h DG++.

Created by Adrian Lew on 9/4/06.

Copyright (c) 2006 Adrian Lew

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. base class for any set of basis (or shape) functions and its first derivatives A set of basis functions permits the evaluation of any of the functions in the basis at any point

Notice that two Shape classes differ if they span the same space but have different bases.


Constructor & Destructor Documentation

Shape::Shape (  )  [inline]
virtual Shape::~Shape (  )  [inline, virtual]
Shape::Shape ( const Shape  )  [inline]

Member Function Documentation

virtual Shape* Shape::clone (  )  const [pure virtual]

Implemented in Linear< SPD >.

bool Shape::consistencyTest ( const double *  x,
const double  Pert 
) const

Consistency test for getVal and getDVal.

Parameters:
x coordinates of the point at which to test
Pert size of the perturbation with which to compute numerical derivatives (x->x+Pert)
virtual double Shape::getDVal ( size_t  a,
const double *  x,
size_t  i 
) const [pure virtual]

Value of $\frac{\partial N_a}{\partial x_i}(x)$.

Parameters:
a node id
x coordinates of the point a
i coordinate number

We have purposedly left the type of coordinates the point should have unspecified, for flexibility. Barycentric and Cartesian coordinates are adopted thoughout the code.

Implemented in Linear< SPD >.

virtual size_t Shape::getNumFunctions (  )  const [pure virtual]

Implemented in Linear< SPD >.

virtual size_t Shape::getNumVariables (  )  const [pure virtual]

Number of arguments of the functions.

Implemented in Linear< SPD >.

virtual double Shape::getVal ( size_t  a,
const double *  x 
) const [pure virtual]

Value of shape $N_a(x)$.

Parameters:
a node id
x coordinates of the point x

We have purposedly left the type of coordinates the point should have unspecified, for flexibility. Barycentric and Cartesian coordinates are adopted thoughout the code.

Todo:
It'd be nice to have some form of Coordinate object, which may derive Barycentric and Cartesian coordinates, and that would guarantee that the argument to each function is always the correct one.

Implemented in Linear< SPD >.


The documentation for this class was generated from the following files:
Generated on Tue Aug 2 11:51:28 2011 for Galois by  doxygen 1.6.3