DUNE PDELab (2.8)
Dune::Functions::TaylorHoodPreBasis< GV, MI, HI > Class Template Reference
Pre-basis for lowest order Taylor-Hood basis. More...
#include <dune/functions/functionspacebases/taylorhoodbasis.hh>
Public Types | |
using | GridView = GV |
The grid view that the FE basis is defined on. | |
using | size_type = std::size_t |
Type used for indices and size information. | |
using | Node = TaylorHoodBasisTree< GV > |
Template mapping root tree path to type of created tree node. | |
using | IndexSet = Impl::DefaultNodeIndexSet< TaylorHoodPreBasis > |
Type of created tree node index set. More... | |
using | MultiIndex = MI |
Type used for global numbering of the basis vectors. | |
using | SizePrefix = Dune::ReservedVector< size_type, 2 > |
Type used for prefixes handed to the size() method. | |
Public Member Functions | |
TaylorHoodPreBasis (const GridView &gv) | |
Constructor for a given grid view object. | |
void | initializeIndices () |
Initialize the global indices. | |
const GridView & | gridView () const |
Obtain the grid view that the basis is defined on. | |
void | update (const GridView &gv) |
Update the stored grid view, to be called if the grid has changed. | |
Node | makeNode () const |
Create tree node. | |
IndexSet | makeIndexSet () const |
Create tree node index set. More... | |
size_type | size () const |
Same as size(prefix) with empty prefix. | |
size_type | size (const SizePrefix prefix) const |
Return number of possible values for next position in multi index. | |
size_type | dimension () const |
Get the total dimension of the space spanned by this basis. | |
size_type | maxNodeSize () const |
Get the maximal number of DOFs associated to node for any element. | |
Detailed Description
template<typename GV, class MI, bool HI = false>
class Dune::Functions::TaylorHoodPreBasis< GV, MI, HI >
class Dune::Functions::TaylorHoodPreBasis< GV, MI, HI >
Pre-basis for lowest order Taylor-Hood basis.
- Template Parameters
-
GV The grid view that the FE basis is defined on MI Type to be used for multi-indices HI Flag to select hybrid indices
- Note
- This mainly serves as an example, since you can construct a pre-basis with the same functionality manually using Where IMS is BlockedInterleaved if HI is set and FlatInterleaved otherwise.static const int k = 1;using VelocityPreBasis = PowerPreBasis<MI,IMS,LagrangePreBasis<GV,k+1,MI>,dim>;using PressurePreBasis = LagrangePreBasis<GV,k,MI>;using TaylorHoodKPreBasis = CompositePreBasis<MI, BlockedLexicographic, VelocityPreBasis, PressurePreBasis>;A pre-basis for a PQ-lagrange bases with given order.Definition: lagrangebasis.hh:57
Member Typedef Documentation
◆ IndexSet
template<typename GV , class MI , bool HI = false>
using Dune::Functions::TaylorHoodPreBasis< GV, MI, HI >::IndexSet = Impl::DefaultNodeIndexSet<TaylorHoodPreBasis> |
Type of created tree node index set.
Member Function Documentation
◆ makeIndexSet()
template<typename GV , class MI , bool HI = false>
|
inline |
Create tree node index set.
Create an index set suitable for the tree node obtained by makeNode().
The documentation for this class was generated from the following file:
- dune/functions/functionspacebases/taylorhoodbasis.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)