FourthOrderTensor< DIM > Class Template Reference

#include <FourthOrderTensor.hpp>

Collaboration diagram for FourthOrderTensor< DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FourthOrderTensor ()
void SetAsProduct (FourthOrderTensor< DIM > &rTensor, const c_matrix< double, DIM, DIM > &rMatrix, unsigned component)
double & operator() (unsigned M, unsigned N, unsigned P, unsigned Q)
void Zero ()

Private Attributes

std::vector< double > mData
unsigned mDimSqd
unsigned mDimCubed
unsigned mDimToFour


Detailed Description

template<unsigned DIM>
class FourthOrderTensor< DIM >

FourthOrderTensor

A class of fourth order tensors (i.e. tensors with four indices), over arbitrary dimension.

Definition at line 49 of file FourthOrderTensor.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
FourthOrderTensor< DIM >::FourthOrderTensor (  )  [inline]


Member Function Documentation

template<unsigned DIM>
void FourthOrderTensor< DIM >::SetAsProduct ( FourthOrderTensor< DIM > &  rTensor,
const c_matrix< double, DIM, DIM > &  rMatrix,
unsigned  component 
) [inline]

Set to be the inner product of another fourth order tensor and a matrix

Parameters:
rTensor A fourth order tensor
rMatrix A matrix
component The component in the fourth order tensor with which to sum (indexed from ZERO)
ie. if component=0, X_{RM} T_{MNPQ} is returned ie. if component=2, X_{RQ} T_{MNPQ} is returned

Definition at line 52 of file FourthOrderTensor.cpp.

References FourthOrderTensor< DIM >::mData, FourthOrderTensor< DIM >::mDimCubed, FourthOrderTensor< DIM >::mDimSqd, and FourthOrderTensor< DIM >::Zero().

Referenced by NonlinearElasticityAssembler< DIM >::AssembleOnElement(), and ImplicitCardiacMechanicsAssembler< DIM >::AssembleOnElement().

template<unsigned DIM>
double & FourthOrderTensor< DIM >::operator() ( unsigned  M,
unsigned  N,
unsigned  P,
unsigned  Q 
) [inline]

Access the MNPQ-component of the tensor.

Parameters:
M first index
N second index
P third index
Q fourth index

Definition at line 151 of file FourthOrderTensor.cpp.

References FourthOrderTensor< DIM >::mData, FourthOrderTensor< DIM >::mDimCubed, and FourthOrderTensor< DIM >::mDimSqd.

template<unsigned DIM>
void FourthOrderTensor< DIM >::Zero (  )  [inline]


Member Data Documentation

template<unsigned DIM>
std::vector<double> FourthOrderTensor< DIM >::mData [private]

template<unsigned DIM>
unsigned FourthOrderTensor< DIM >::mDimSqd [private]

template<unsigned DIM>
unsigned FourthOrderTensor< DIM >::mDimCubed [private]

template<unsigned DIM>
unsigned FourthOrderTensor< DIM >::mDimToFour [private]

The fourth power of the dimension, DIM^4.

Definition at line 56 of file FourthOrderTensor.hpp.

Referenced by FourthOrderTensor< DIM >::FourthOrderTensor(), and FourthOrderTensor< DIM >::Zero().


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

Generated on Tue Aug 4 16:11:15 2009 for Chaste by  doxygen 1.5.5