hp-adaptive FEM space in 2D composed of separate spaces hpAdapativeSpace and may be discontinuous.
More...
#include <hpAdaptiveSpaceDG.hh>
|
virtual const std::set< typename concepts::CellType< 2u >::cell * > | allCells () const |
|
virtual const std::set< typename CellType< dimC >::cell * > | allCells () const=0 |
|
virtual uint | dim () const |
|
virtual uint | dim () const=0 |
| Returns the dimension of the space. More...
|
|
virtual uint | getOutputDimension () const |
| Returns the default output dimension, when we consider plotting a real-valued operator on this space. More...
|
|
| hpAdaptiveSpaceDG (concepts::Mesh2 &msh, uint l, uint p, concepts::Sequence< concepts::Set< uint > > domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor. More...
|
|
| hpAdaptiveSpaceDG (concepts::Mesh2 &msh, uint l, uint p, const char *domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor. More...
|
|
| hpAdaptiveSpaceDG (concepts::Mesh2 &msh, uint l, uint p, std::string domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor. More...
|
|
| hpAdaptiveSpaceDG (hpFull &prebuild, uint spcNo, concepts::Sequence< concepts::Set< uint > > domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor for using same mesh and distribution of degrees of freedom object as another space. More...
|
|
| hpAdaptiveSpaceDG (hpFull &prebuild, uint spcNo, const char *domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor for using same mesh and distribution of degrees of freedom object as another space. More...
|
|
| hpAdaptiveSpaceDG (hpFull &prebuild, uint spcNo, std::string domains, concepts::BoundaryConditions *bc=0, bool linearTrunk=false) |
| Constructor for using same mesh and distribution of degrees of freedom object as another space. More...
|
|
virtual uint | nelm () const |
|
virtual uint | nelm () const=0 |
| Returns the number of elements in the space. More...
|
|
void | rebuild () |
| Rebuilds the mesh and the elements due to adjustment orders. More...
|
|
void | recomputeShapefunctions () |
| Recompute shape functions, e.g. More...
|
|
virtual Scan * | scan () const |
|
virtual Scanner * | scan () const=0 |
| Returns a scanner to iterate over the elements of the space. More...
|
|
const concepts::Sequence< F * > | spaces () const |
|
| ~hpAdaptiveSpaceDG () |
|
|
virtual std::ostream & | info (std::ostream &os) const |
|
template<class F>
class hp2D::hpAdaptiveSpaceDG< F >
hp-adaptive FEM space in 2D composed of separate spaces hpAdapativeSpace and may be discontinuous.
- Author
- Kersten Schmidt, 2009 Vsevolod Shashkov, 2018
Definition at line 27 of file hpAdaptiveSpaceDG.hh.
◆ Scan
◆ Scanner
◆ type
◆ hpAdaptiveSpaceDG() [1/6]
Constructor.
- Parameters
-
msh | The overall domain of interest partitioned into a mesh. |
l | Level of refinement. |
p | Degree of the polynomials to be used. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains. The constructor takes the sequence of sets where each set correspond to the attributes of the corresponding sub-domain. E.g., taking domains(0) = {1,2,3} and domains(1) = {4} there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. The attribute '0' is forbidden. Remark: All the attributes have to be given explicitly, and the constructor throws an exception when domains is empty, or domains(i) is empty for any index i. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
◆ hpAdaptiveSpaceDG() [2/6]
Constructor.
- Parameters
-
msh | The overall domain of interest partitioned into a mesh. |
l | Level of refinement. |
p | Degree of the polynomials to be used. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains, e.g. taking "1 2 3;4" there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. Remark: All the attributes have to be given explicitly, e.g. "1 2; " is not allowed, however "1 2;" is considered as one sub-domain. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
◆ hpAdaptiveSpaceDG() [3/6]
Constructor.
- Parameters
-
msh | The overall domain of interest partitioned into a mesh. |
l | Level of refinement. |
p | Degree of the polynomials to be used. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains, e.g. taking "1 2 3;4" there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. Remark: All the attributes have to be given explicitly, e.g. "1 2; " is not allowed, however "1 2;" is considered as one sub-domain. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
◆ hpAdaptiveSpaceDG() [4/6]
Constructor for using same mesh and distribution of degrees of freedom object as another space.
The global indices are sorted by the topological entities, on which the degrees of freedoms lie. Spaces could have no common entities, e.g. first space has Dirichlet boundary and this has only dof on the boundary. If they have common entities, like in mixed problems, the global indices per topological entity can be uniquely given by spcNo
.
- Parameters
-
prebuild | space pre builder |
spcNo | Number for distinguish between global indices on same topological entity. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains. The constructor takes the sequence of sets where each set correspond to the attributes of the corresponding sub-domain. E.g., taking domains(0) = {1,2,3} and domains(1) = {4} there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. The attribute '0' is forbidden. Remark: All the attributes have to be given explicitly, and the constructor throws an exception when domains is empty, or domains(i) is empty for any index i. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
REMARK: If and only if the flag emptyElements of the cell conditions cc
is set to false, empty elements will not be built for inactive cells.
◆ hpAdaptiveSpaceDG() [5/6]
Constructor for using same mesh and distribution of degrees of freedom object as another space.
The global indices are sorted by the topological entities, on which the degrees of freedoms lie. Spaces could have no common entities, e.g. first space has Dirichlet boundary and this has only dof on the boundary. If they have common entities, like in mixed problems, the global indices per topological entity can be uniquely given by spcNo
.
- Parameters
-
prebuild | space pre builder |
spcNo | Number for distinguish between global indices on same topological entity. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains, e.g. taking "1 2 3;4" there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. Remark: All the attributes have to be given explicitly, e.g. "1 2; " is not allowed, however "1 2;" is considered as one sub-domain. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
REMARK: If and only if the flag emptyElements of the cell conditions cc
is set to false, empty elements will not be built for inactive cells.
◆ hpAdaptiveSpaceDG() [6/6]
Constructor for using same mesh and distribution of degrees of freedom object as another space.
The global indices are sorted by the topological entities, on which the degrees of freedoms lie. Spaces could have no common entities, e.g. first space has Dirichlet boundary and this has only dof on the boundary. If they have common entities, like in mixed problems, the global indices per topological entity can be uniquely given by spcNo
.
- Parameters
-
prebuild | space pre builder |
spcNo | Number for distinguish between global indices on same topological entity. |
domains | Cell attributes of the sub-domains being continuous (for each sub-domain a space of type F will be built), and discontinuous over the common edges between the sub-domains, e.g. taking "1 2 3;4" there are two sub-domains, where the first sub-domain consists of cells with attributes 1, 2 or 3, and the second of cells with attributes 4. Remark: All the attributes have to be given explicitly, e.g. "1 2; " is not allowed, however "1 2;" is considered as one sub-domain. |
bc | Boundary conditions |
linearTrunk | Boolean indicating the use of linear trunk space or not, by default, trunk space is built. |
REMARK: If and only if the flag emptyElements of the cell conditions cc
is set to false, empty elements will not be built for inactive cells.
◆ ~hpAdaptiveSpaceDG()
◆ allCells() [1/2]
◆ allCells() [2/2]
◆ dim() [1/2]
◆ dim() [2/2]
◆ getOutputDimension()
Returns the default output dimension, when we consider plotting a real-valued operator on this space.
Definition at line 50 of file space.hh.
◆ info()
◆ nelm() [1/2]
◆ nelm() [2/2]
◆ rebuild()
Rebuilds the mesh and the elements due to adjustment orders.
◆ recomputeShapefunctions()
Recompute shape functions, e.g.
for other abscissas redefined through setIntegrationRule
◆ scan() [1/2]
◆ scan() [2/2]
◆ spaces()
◆ activeCells_
◆ build_
◆ cc_
Cell conditions for switching on sub-domains (just to hold for rebuilding)
Definition at line 251 of file hpAdaptiveSpaceDG.hh.
◆ dim_
◆ elm_
◆ nelm_
◆ spc_
The documentation for this class was generated from the following file: