EqVarT Class Reference
#include <eqvart.h>
List of all members.
Public Member Functions |
| EqVarT (UpdateFlags up) |
virtual | ~EqVarT () |
void | setFeValue (FEValues< DIM > *fe) |
bool | validFeValues () |
void | setFaceValues (FEFaceValues< DIM > *face_values) |
bool | validFeFaceValues () |
std::vector< unsigned int > & | getDofIndices () |
void | addNeumannBoundary (unsigned boundary_value) |
UpdateFlags | getUpdateFlags () |
DoFHandler< DIM >
::active_cell_iterator & | getCell () |
double | getSolValue (Vector< double > &sol) |
double | getCoefSolValue (unsigned index, VecDouble &sol) |
double | getSolGradComponent (Vector< double > &sol, int component) |
double | getValueByCellIndex (const VecDouble &sol) |
Tensor< 1, DIM > | getSolGrad (VecDouble &sol) |
const FEValues< DIM > & | getFEValues () |
unsigned | getQPoint () |
unsigned | getQPointAtFace () |
double | measure () |
double | localNeumannBoundary (unsigned i) |
double | localEqVar (unsigned i, unsigned j) |
double | localRhs (unsigned i) |
unsigned | component (unsigned i) |
unsigned | component_face (unsigned i) |
unsigned | base_function (unsigned i) |
unsigned | base_element_mult (unsigned i) |
bool | changedCell (unsigned i, unsigned j) |
const Point< DIM > & | getPoint () |
double | shape_value (unsigned i) |
const Tensor< 1, DIM > & | shape_grad (unsigned i) |
double | shape_value (unsigned i, unsigned component) |
Tensor< 1, DIM > | shape_grad (unsigned i, unsigned component) |
double | shape_div (unsigned i) |
double | JxW () |
double | JFace () |
double | JxWFace () |
FEFaceValues< DIM > & | getFEFaceValues () |
const Point< DIM > & | getPointAtFace () |
const Tensor< 1, DIM > & | normal_vector () |
const Tensor< 1, DIM > & | shape_grad_face (unsigned i) |
double | shape_value_face (unsigned i) |
void | changedCellEvent () |
void | changedQPointEvent () |
void | changedCellRHSEvent () |
void | changedQPointRHSEvent () |
void | changedQPointFaceEvent () |
Private Member Functions |
void | setCell (DoFHandler< DIM >::active_cell_iterator &cell) |
void | setQPoint (unsigned qpoint) |
Private Attributes |
bool | m_validFeValues |
bool | m_validFeFaceValues |
UpdateFlags | m_upFlags |
DoFHandler< DIM >
::active_cell_iterator * | m_pCell |
FEValues< DIM > * | m_fev |
FEFaceValues< DIM > * | m_face_values |
std::vector< unsigned int > | m_dofIndices |
unsigned | m_qPoint |
unsigned | m_qPointFace |
Friends |
class | EqVarTAccessor |
Detailed Description
Definition at line 18 of file eqvart.h.
Constructor & Destructor Documentation
EqVarT::EqVarT |
( |
UpdateFlags |
up |
) |
[inline] |
virtual EqVarT::~EqVarT |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void EqVarT::addNeumannBoundary |
( |
unsigned |
boundary_value |
) |
|
unsigned EqVarT::base_element_mult |
( |
unsigned |
i |
) |
[inline] |
unsigned EqVarT::base_function |
( |
unsigned |
i |
) |
[inline] |
bool EqVarT::changedCell |
( |
unsigned |
i, |
|
|
unsigned |
j | |
|
) |
| | [inline] |
void EqVarT::changedCellEvent |
( |
|
) |
[inline] |
void EqVarT::changedCellRHSEvent |
( |
|
) |
[inline] |
void EqVarT::changedQPointEvent |
( |
|
) |
[inline] |
void EqVarT::changedQPointFaceEvent |
( |
|
) |
[inline] |
void EqVarT::changedQPointRHSEvent |
( |
|
) |
[inline] |
unsigned EqVarT::component |
( |
unsigned |
i |
) |
|
Definition at line 125 of file eqvart.cpp.
00126 {
00127
00128 assert(validFeValues());
00129 return m_fev->get_fe().system_to_component_index(i).first;
00130 }
unsigned EqVarT::component_face |
( |
unsigned |
i |
) |
[inline] |
DoFHandler<DIM>::active_cell_iterator& EqVarT::getCell |
( |
|
) |
[inline] |
double EqVarT::getCoefSolValue |
( |
unsigned |
index, |
|
|
VecDouble & |
sol | |
|
) |
| | |
std::vector<unsigned int>& EqVarT::getDofIndices |
( |
|
) |
[inline] |
FEFaceValues<DIM>& EqVarT::getFEFaceValues |
( |
|
) |
[inline] |
const FEValues<DIM>& EqVarT::getFEValues |
( |
|
) |
[inline] |
const Point<DIM>& EqVarT::getPoint |
( |
|
) |
[inline] |
const Point<DIM>& EqVarT::getPointAtFace |
( |
|
) |
[inline] |
unsigned EqVarT::getQPoint |
( |
|
) |
[inline] |
unsigned EqVarT::getQPointAtFace |
( |
|
) |
[inline] |
Tensor< 1, DIM > EqVarT::getSolGrad |
( |
VecDouble & |
sol |
) |
|
Definition at line 33 of file eqvart.cpp.
00034 {
00035 unsigned i;
00036 unsigned n_dofs_per_cell = m_fev->get_fe().dofs_per_cell;
00037 Tensor<1,DIM> result;
00038 result.clear();
00039 for (i=0;i<n_dofs_per_cell;i++)
00040 {
00041 result+=sol(m_dofIndices[i])*m_fev->shape_grad(i,m_qPoint);
00042 }
00043 return result;
00044 }
double EqVarT::getSolGradComponent |
( |
Vector< double > & |
sol, |
|
|
int |
component | |
|
) |
| | |
Definition at line 20 of file eqvart.cpp.
00021 {
00022 unsigned i;
00023 unsigned n_dofs_per_cell = m_fev->get_fe().dofs_per_cell;
00024 double result=0.0;
00025 for (i=0;i<n_dofs_per_cell;i++)
00026 {
00027 result+=sol(m_dofIndices[i])*m_fev->shape_grad(i,m_qPoint)[component];
00028 }
00029 return result;
00030 }
double EqVarT::getSolValue |
( |
Vector< double > & |
sol |
) |
|
Definition at line 3 of file eqvart.cpp.
00004 {
00005 unsigned i;
00006 unsigned n_dofs_per_cell = m_fev->get_fe().dofs_per_cell;
00007 double result=0.0;
00008 for (i=0;i<n_dofs_per_cell;i++)
00009 {
00010 result+=sol(m_dofIndices[i])*m_fev->shape_value(i,m_qPoint);
00011 }
00012 return result;
00013 }
UpdateFlags EqVarT::getUpdateFlags |
( |
|
) |
[inline] |
double EqVarT::getValueByCellIndex |
( |
const VecDouble & |
sol |
) |
|
Definition at line 52 of file eqvart.cpp.
00053 {
00054 return sol(getCell()->index());
00055 }
double EqVarT::JFace |
( |
|
) |
[inline] |
double EqVarT::JxW |
( |
|
) |
[inline] |
double EqVarT::JxWFace |
( |
|
) |
[inline] |
double EqVarT::localEqVar |
( |
unsigned |
i, |
|
|
unsigned |
j | |
|
) |
| | |
Definition at line 102 of file eqvart.cpp.
00103 {
00104 printf("EqvarT::localEqVar = This function shoud never be called. The childrens must override this functions\nAbortting...\n");
00105 abort();
00106 return NAN;
00107 }
double EqVarT::localNeumannBoundary |
( |
unsigned |
i |
) |
|
Definition at line 86 of file eqvart.cpp.
00087 {
00088 i=0;
00089 assert(0);
00090 return NAN;
00091 }
double EqVarT::localRhs |
( |
unsigned |
i |
) |
|
Definition at line 109 of file eqvart.cpp.
00110 {
00111 printf("EqvarT::localRhs = This function shoud never be called. The childrens must override this functions\nAbortting...\n");
00112 abort();
00113 return NAN;
00114
00115 }
double EqVarT::measure |
( |
|
) |
[inline] |
const Tensor<1,DIM>& EqVarT::normal_vector |
( |
|
) |
[inline] |
void EqVarT::setCell |
( |
DoFHandler< DIM >::active_cell_iterator & |
cell |
) |
[inline, private] |
void EqVarT::setFaceValues |
( |
FEFaceValues< DIM > * |
face_values |
) |
|
void EqVarT::setFeValue |
( |
FEValues< DIM > * |
fe |
) |
|
void EqVarT::setQPoint |
( |
unsigned |
qpoint |
) |
[inline, private] |
double EqVarT::shape_div |
( |
unsigned |
i |
) |
|
Tensor<1,DIM> EqVarT::shape_grad |
( |
unsigned |
i, |
|
|
unsigned |
component | |
|
) |
| | [inline] |
const Tensor<1,DIM>& EqVarT::shape_grad |
( |
unsigned |
i |
) |
[inline] |
const Tensor<1,DIM>& EqVarT::shape_grad_face |
( |
unsigned |
i |
) |
[inline] |
double EqVarT::shape_value |
( |
unsigned |
i, |
|
|
unsigned |
component | |
|
) |
| | [inline] |
double EqVarT::shape_value |
( |
unsigned |
i |
) |
[inline] |
double EqVarT::shape_value_face |
( |
unsigned |
i |
) |
[inline] |
bool EqVarT::validFeFaceValues |
( |
|
) |
[inline] |
bool EqVarT::validFeValues |
( |
|
) |
[inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: