#include <buildInnerDofs.hh>
Public Member Functions | |
BuildInnerDofsLinTrunk () | |
Default constructor. | |
BuildInnerDofsLinTrunk (Space &spc) | |
virtual BuildInnerDofsLinTrunk * | clone (Space *spc=0) const |
virtual bool | trunk (uint p, uint q, const ushort P[2]) |
virtual void | operator() (concepts::Quad &cntr, concepts::TColumn< Real > *&T1, const uint nn[2]) |
Space * | space () |
Returns the space. | |
Protected Member Functions | |
concepts::AdaptiveControl & | ctrl0_ (uint idx) |
Returns vertex tag of vertex with key idx . | |
concepts::AdaptiveControlP< 1 > & | ctrl1_ (uint idx) |
Returns edge tag of edge with key idx . | |
concepts::AdaptiveControlP< 2 > & | ctrl2_ (uint idx) |
Returns face tag of face with key idx . | |
std::map< uint, concepts::VertexData >::const_iterator | vertexListFind (uint idx) const |
Returns the iterator to the vertex data of the vertex with key idx . | |
std::map< uint, concepts::VertexData >::const_iterator | vertexListEnd () const |
Returns the end of the list with vertex data. | |
std::map< uint, concepts::EdgeData >::const_iterator | edgeListFind (uint idx) const |
Returns the iterator to the edge data of the edge with key idx . | |
std::map< uint, concepts::EdgeData >::const_iterator | edgeListEnd () const |
Returns the end of the list with edge data. | |
uint & | dim_ () |
Returns a reference to the dimension of the space. | |
void | deactivate_ (const concepts::Vertex &vtx) |
Deactivates the children of the vertex vtx . | |
void | deactivate_ (const concepts::Edge &edg) |
void | computePmax_ (const concepts::Quad &cntr, ushort Pmax[2]) const |
Computes maximal polynomial Pmax degree in cntr in tensor form. | |
Protected Attributes | |
Space * | spc_ |
Space to build the vertex degrees of freedom from. | |
Responsible to build the inner degrees of freedom in a (trunk) space.
Using this class, only a trunk of the degrees of freedom in the interior are built: if (p + q) <= ((P[0] > P[1]) ? P[0] : P[1])
the degree of freedom with polynomial degrees p
, q
in each direction is built (P[i]
are the maximal polynomial degrees in each direction.)
This class is registered as the default strategy in a Space to build the inner degrees of freedom. Giving Space a different class through the use of Space::buildInnerDofs, you can change that behaviour.
Definition at line 104 of file buildInnerDofs.hh.
|
inline |
Default constructor.
Definition at line 107 of file buildInnerDofs.hh.
|
inline |
Constructor.
spc | Space to build the inner degrees of freedom from |
Definition at line 111 of file buildInnerDofs.hh.
|
virtual |
Virtual copy constructor with a twist. If a copy of a space is created, the strategies to build the degrees of freedom of the copy should also reference the copy and not the initial space. This is done by giving the argument spc
to clone.
spc | Space to work on for the return value. If set to 0, spc_ is used. |
Reimplemented from hp2D::BuildInnerDofs.
|
inlineprotectedinherited |
Computes maximal polynomial Pmax
degree in cntr
in tensor form.
Definition at line 142 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns vertex tag of vertex with key idx
.
Definition at line 93 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns edge tag of edge with key idx
.
Definition at line 98 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns face tag of face with key idx
.
Definition at line 103 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Deactivates the children of the edge edg
(including the middle vertex).
Definition at line 137 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Deactivates the children of the vertex vtx
.
Definition at line 132 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns a reference to the dimension of the space.
Definition at line 81 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns the end of the list with edge data.
Definition at line 127 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns the iterator to the edge data of the edge with key idx
.
Definition at line 121 of file buildDofsBase.hh.
|
virtualinherited |
Builds the degrees of freedom.
cntr | Hex which vertices should be considered |
T1 | New T columns created for the degrees of freedom in the vertices |
Implements hp2D::BuildDofsBase.
|
inlineinherited |
Returns the space.
Definition at line 60 of file buildDofsBase.hh.
|
virtual |
Trunk space indicator function. For each degree of freedom, this function is called to find out if it should be built or not. If the return value is true
, the degree of freedom is built, otherwise it is not.
The default behaviour of this function is to return true
. Overwrite it if you want to have a trunk space (e.g. as in BuildInnerDofsLinTrunk).
p | Polynomial degree in first direction of current degree of freedom |
q | Polynomial degree in second direction of current degree of freedom |
P | Maximal polynomial degree in the interior |
Reimplemented from hp2D::BuildInnerDofs.
|
inlineprotectedinherited |
Returns the end of the list with vertex data.
Definition at line 115 of file buildDofsBase.hh.
|
inlineprotectedinherited |
Returns the iterator to the vertex data of the vertex with key idx
.
Definition at line 109 of file buildDofsBase.hh.
|
protectedinherited |
Space to build the vertex degrees of freedom from.
Definition at line 90 of file buildDofsBase.hh.