SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ConstantBasis< T > Class Template Reference

Class for handling of element with constant field variables. More...

#include <Constant.h>

Inheritance diagram for ConstantBasis< T >:
BasisSimple< T > ConstantBasisUnitElement ConstantApprox NoElementWeights PntSamplingSchemes

Public Types

typedef T value_type
 

Public Member Functions

 ConstantBasis ()
 
virtual ~ConstantBasis ()
 
template<class ElemData , class VECTOR >
interpolate (const VECTOR &, const ElemData &cd) const
 get value at parametric coordinate More...
 
template<class ElemData , class VECTOR1 , class VECTOR2 >
void derivate (const VECTOR1 &coords, const ElemData &, VECTOR2 &derivs) const
 get first derivative at parametric coordinate More...
 
template<class VECTOR >
void get_weights (const VECTOR &coords, double *w) const
 Get the weights for doing an interpolation. More...
 
template<class VECTOR >
void get_derivate_weights (const VECTOR &coords, double *w) const
 Get the weights for doing a gradient. More...
 
virtual void io (Piostream &str)
 
- Public Member Functions inherited from BasisSimple< T >
 BasisSimple ()
 
virtual ~BasisSimple ()
 
template<class ElemData , class VECTOR >
interpolate (const VECTOR &, const ElemData &) const
 get value at parametric coordinate More...
 
template<class ElemData , class VECTOR1 , class VECTOR2 >
void derivate (const VECTOR1 &, const ElemData &, VECTOR2 &) const
 get first derivative at parametric coordinate More...
 
template<class ElemData , class VECTOR >
bool get_coords (VECTOR &, const T &, const ElemData &) const
 get parametric coordinate for value within the element More...
 
template<class ElemData >
double get_arc_length (const unsigned, const ElemData &) const
 get arc length for edge of element More...
 
template<class ElemData >
double get_area (const unsigned, const ElemData &) const
 get area for face of element More...
 
template<class ElemData >
double get_volume (const ElemData &) const
 get volume for element More...
 
void add_node_value (const T &)
 add a node value More...
 
void set_node_value (const T &, unsigned int)
 
void get_node_value (T &, unsigned int) const
 
void resize_node_values (size_t)
 
size_t size_node_values ()
 return number of additional nodes More...
 
void add_derivatives (const std::vector< T > &)
 add a derivative value More...
 
void add_scalefactors (const std::vector< T > &)
 add scale factors More...
 
int size_derivatives ()
 return number of additional derivatives More...
 
std::vector< T > & get_nodes ()
 
std::vector< std::vector< T > > & get_derivs ()
 
- Public Member Functions inherited from ConstantBasisUnitElement
 ConstantBasisUnitElement ()
 
virtual ~ConstantBasisUnitElement ()
 
- Public Member Functions inherited from ConstantApprox
 ConstantApprox ()
 
virtual ~ConstantApprox ()
 
template<class VECTOR >
void approx_edge (const unsigned edge, const unsigned div_per_unit, VECTOR &coords) const
 
template<class VECTOR >
void approx_face (const unsigned face, const unsigned div_per_unit, VECTOR &coords) const
 
- Public Member Functions inherited from NoElementWeights
template<class VECTOR >
void get_linear_weights (const VECTOR &, double *) const
 
template<class VECTOR >
void get_linear_derivate_weights (const VECTOR &, double *) const
 get derivative weight factors at parametric coordinate More...
 
template<class VECTOR >
void get_quadratic_weights (const VECTOR &, double *) const
 get weight factors at parametric coordinate More...
 
template<class VECTOR >
void get_quadratic_derivate_weights (const VECTOR &, double *) const
 get weight factors of derivative at parametric coordinate More...
 
template<class VECTOR >
void get_cubic_weights (const VECTOR &, double *) const
 
template<class VECTOR >
void get_cubic_derivate_weights (const VECTOR &, double *) const
 get derivative weight factors at parametric coordinate More...
 
int num_linear_weights ()
 
int num_quadratic_weights ()
 
int num_cubic_weights ()
 
int num_linear_derivate_weights ()
 
int num_quadratic_derivate_weights ()
 
int num_cubic_derivate_weights ()
 
int num_derivs ()
 
int num_hderivs ()
 
- Public Member Functions inherited from PntSamplingSchemes
template<class ARRAY1 , class ARRAY2 >
void get_gaussian_scheme (ARRAY1 &coords, ARRAY2 &weights, int)
 
template<class ARRAY1 , class ARRAY2 >
void get_regular_scheme (ARRAY1 &coords, ARRAY2 &weights, int)
 

Static Public Member Functions

static int polynomial_order ()
 
static const std::string type_name (int n=-1)
 Functions for dynamic compilation and storing this object on disk. More...
 
- Static Public Member Functions inherited from ConstantBasisUnitElement
static int domain_dimension ()
 return dimension of domain More...
 
static double domain_size ()
 return size of domain More...
 
static int number_of_vertices ()
 return number of vertices More...
 
static int number_of_mesh_vertices ()
 return number of vertices More...
 
static int number_of_edges ()
 return number of edges More...
 
static int dofs ()
 return degrees of freedom More...
 
static int vertices_of_face ()
 return number of vertices per face More...
 
static int faces_of_cell ()
 return number of faces per cell More...
 
static double volume ()
 return volume More...
 

Additional Inherited Members

- Static Public Attributes inherited from ConstantBasisUnitElement
static double unit_vertices [1][1] = { {0} }
 Parametric coordinates of vertices. More...
 
static int unit_edges [1][1] = { {0} }
 References to vertices of unit edge. More...
 
static double unit_center [3] = { 0,0,0 }
 
- Protected Attributes inherited from BasisSimple< T >
std::vector< T > nodes_
 
std::vector< std::vector< T > > derivs_
 
std::vector< std::vector
< double > > 
scalefactors_
 
std::vector< double > scalefactorse_
 

Detailed Description

template<class T>
class SCIRun::Core::Basis::ConstantBasis< T >

Class for handling of element with constant field variables.

Member Typedef Documentation

typedef T value_type

Constructor & Destructor Documentation

ConstantBasis ( )
inline
virtual ~ConstantBasis ( )
inlinevirtual

Member Function Documentation

void derivate ( const VECTOR1 &  coords,
const ElemData &  ,
VECTOR2 &  derivs 
) const
inline

get first derivative at parametric coordinate

void get_derivate_weights ( const VECTOR &  coords,
double *  w 
) const
inline

Get the weights for doing a gradient.

void get_weights ( const VECTOR &  coords,
double *  w 
) const
inline

Get the weights for doing an interpolation.

T interpolate ( const VECTOR &  ,
const ElemData &  cd 
) const
inline

get value at parametric coordinate

void io ( Piostream str)
virtual
static int polynomial_order ( )
inlinestatic
const std::string type_name ( int  n = -1)
static

Functions for dynamic compilation and storing this object on disk.


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