#include <ScalarDegreeOfFreedomPositionsSet.hpp>

Public Member Functions | |
| const TinyVector< 3, real_t > & | vertex (const size_t &i) const |
| const size_t & | operator() (const size_t &cellNumber, const size_t &localDOFNumber) const |
| const size_t & | number () const |
| ScalarDegreeOfFreedomPositionsSet (const ScalarDiscretizationTypeBase &discretizationType, const Mesh &mesh) | |
| ~ScalarDegreeOfFreedomPositionsSet () | |
Private Member Functions | |
| void | __build (const ScalarDiscretizationTypeBase &discretizationType, const Mesh &mesh) |
Private Attributes | |
| Vector< TinyVector< 3, real_t > > | __positions |
| Vector< size_t > | __dofNumber |
| size_t | __numberOfDOFPerCell |
Friends | |
| class | Builder |
Classes | |
| class | Builder |
Definition at line 39 of file ScalarDegreeOfFreedomPositionsSet.hpp.
| ScalarDegreeOfFreedomPositionsSet::ScalarDegreeOfFreedomPositionsSet | ( | const ScalarDiscretizationTypeBase & | discretizationType, | |
| const Mesh & | mesh | |||
| ) | [inline] |
Constructor
| discretizationType | given discretization type | |
| mesh | given mesh |
Definition at line 106 of file ScalarDegreeOfFreedomPositionsSet.hpp.
References __build().
00108 { 00109 this->__build(discretizationType, mesh); 00110 }

| ScalarDegreeOfFreedomPositionsSet::~ScalarDegreeOfFreedomPositionsSet | ( | ) | [inline] |
| void ScalarDegreeOfFreedomPositionsSet::__build | ( | const ScalarDiscretizationTypeBase & | discretizationType, | |
| const Mesh & | mesh | |||
| ) | [private] |
Constructs the degrees of freedom position set for a given mesh and a given discretization type
| discretizationType | given discretization type | |
| mesh | given mesh |
Definition at line 470 of file ScalarDegreeOfFreedomPositionsSet.cpp.
References ScalarDegreeOfFreedomPositionsSet::Builder::build().
Referenced by ScalarDegreeOfFreedomPositionsSet().
00472 { 00473 Builder builder(*this); 00474 00475 builder.build(discretizationType, mesh); 00476 }

| const TinyVector<3,real_t>& ScalarDegreeOfFreedomPositionsSet::vertex | ( | const size_t & | i | ) | const [inline] |
Access to a degree of freedom position
| i | degree of freedom number |
Definition at line 73 of file ScalarDegreeOfFreedomPositionsSet.hpp.
References __positions.
Referenced by DegreeOfFreedomSetBuilder::__buildFEMFictitious(), BoundaryConditionCommonFEMDiscretization< MeshType, TypeOfDiscretization >::__setSecondMemberDirichlet(), FEMDiscretization< Structured3DMesh, TypeOfDiscretization >::assembleSecondMember(), and FEMDiscretization< GivenMeshType, TypeOfDiscretization >::assembleSecondMember().
00074 { 00075 return __positions[i]; 00076 }
| const size_t& ScalarDegreeOfFreedomPositionsSet::operator() | ( | const size_t & | cellNumber, | |
| const size_t & | localDOFNumber | |||
| ) | const [inline] |
Read-only access to the global number of a local degree of freedom in a cell
Definition at line 84 of file ScalarDegreeOfFreedomPositionsSet.hpp.
References __dofNumber, and __numberOfDOFPerCell.
00086 { 00087 return __dofNumber[cellNumber*__numberOfDOFPerCell + localDOFNumber]; 00088 }
| const size_t& ScalarDegreeOfFreedomPositionsSet::number | ( | ) | const [inline] |
Read-only access to the total number of degrees of freedom
Definition at line 95 of file ScalarDegreeOfFreedomPositionsSet.hpp.
References __positions, and Vector< T >::size().
Referenced by DegreeOfFreedomSetBuilder::__buildFEMFictitious(), FEMDiscretization< Structured3DMesh, TypeOfDiscretization >::assembleSecondMember(), FEMDiscretization< GivenMeshType, TypeOfDiscretization >::assembleSecondMember(), LegendreSolution::getUserFunction(), FEMSolution::getUserFunction(), LegendreSolution::setUserFunction(), and FEMSolution::setUserFunction().
00096 { 00097 return __positions.size(); 00098 }

friend class Builder [friend] |
Degrees of freedom set builder
Definition at line 51 of file ScalarDegreeOfFreedomPositionsSet.hpp.
Vector<TinyVector<3,real_t> > ScalarDegreeOfFreedomPositionsSet::__positions [private] |
position list
Definition at line 43 of file ScalarDegreeOfFreedomPositionsSet.hpp.
Referenced by ScalarDegreeOfFreedomPositionsSet::Builder::__buildFEM(), number(), and vertex().
Vector<size_t> ScalarDegreeOfFreedomPositionsSet::__dofNumber [private] |
degrees of freedom numbers (stored by cell)
Definition at line 45 of file ScalarDegreeOfFreedomPositionsSet.hpp.
Referenced by ScalarDegreeOfFreedomPositionsSet::Builder::__buildFEM(), and operator()().
size_t ScalarDegreeOfFreedomPositionsSet::__numberOfDOFPerCell [private] |
number of degrees of freedom carried by a cell
Definition at line 48 of file ScalarDegreeOfFreedomPositionsSet.hpp.
Referenced by ScalarDegreeOfFreedomPositionsSet::Builder::__buildFEM(), and operator()().
1.5.6