Class documentation of Concepts

Loading...
Searching...
No Matches

#include <space.hh>

Inheritance diagram for hp1D::Space:
concepts::SpaceOnCells< Real > concepts::AdaptiveSpace< Real, concepts::AdaptiveAdjustP< 1 > > concepts::Space< F > concepts::OutputOperator

Public Types

typedef concepts::Scan< BaseElement< Real > > Scan
 
typedef ElementWithCell< Real > type
 
typedef Scan< ElementWithCell< Real > > Scanner
 

Public Member Functions

 Space (concepts::Mesh1 &msh, uint l, uint p, concepts::BoundaryConditions *bc=0)
 
uint dim () const
 Returns the dimension of the space.
 
uint nelm () const
 Returns the number of elements in the space.
 
Scanscan () const
 Returns a scanner to iterate over the elements of the space.
 
uint dim ()
 
uint nelm ()
 
Scanscan ()
 
virtual void adjust (const concepts::Element< Real > &elm, const concepts::AdaptiveAdjustP< 1 > &a)
 
void rebuild ()
 Rebuilds the space after an adjustment with adjust.
 
void recomputeShapefunctions ()
 
virtual uint getOutputDimension () const
 Returns the default output dimension, when we consider plotting a real-valued operator on this space.
 
virtual void adjust (const Element< Real > &elm, const concepts::AdaptiveAdjustP< 1 > &a)=0
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

A 1D hp FEM space with continuous, picewise polynomial basis functions.

Author
Philipp Frauenfelder, 2002

Definition at line 27 of file space.hh.

Member Typedef Documentation

◆ Scan

Definition at line 31 of file space.hh.

◆ Scanner

typedef Scan<ElementWithCell<Real > > concepts::SpaceOnCells< Real >::Scanner
inherited

Definition at line 84 of file space.hh.

◆ type

typedef ElementWithCell<Real > concepts::SpaceOnCells< Real >::type
inherited

Definition at line 83 of file space.hh.

Constructor & Destructor Documentation

◆ Space()

hp1D::Space::Space ( concepts::Mesh1 msh,
uint  l,
uint  p,
concepts::BoundaryConditions bc = 0 
)

Constructor. Scans the mesh and sets the cells in the mesh active and the level of refinement and the polynomial degree in all cells to the given values. rebuild_ is set to true, ie. if the mesh is used it will firstly be rebuilt.

Parameters
mshThe domain of interest partitioned into a mesh.
lLevel of refinement
pDegree of the polynomials to be used.
bcBoundary conditions

Member Function Documentation

◆ adjust()

virtual void concepts::AdaptiveSpace< Real , concepts::AdaptiveAdjustP< 1 > >::adjust ( const Element< Real > &  elm,
const concepts::AdaptiveAdjustP< 1 > &  a 
)
pure virtualinherited

Adjusts the space in the next rebuild step for this element.

◆ dim() [1/2]

uint hp1D::Space::dim ( )
inline

Definition at line 117 of file space.hh.

◆ dim() [2/2]

uint hp1D::Space::dim ( ) const
inlinevirtual

Returns the dimension of the space.

Implements concepts::SpaceOnCells< Real >.

Definition at line 102 of file space.hh.

◆ getOutputDimension()

template<class F >
virtual uint concepts::Space< F >::getOutputDimension ( ) const
inlinevirtualinherited

Returns the default output dimension, when we consider plotting a real-valued operator on this space.

Reimplemented in hp2D::hpAdaptiveSpaceHCurl, and hp2Dedge::Space.

Definition at line 50 of file space.hh.

◆ info()

virtual std::ostream & hp1D::Space::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::SpaceOnCells< Real >.

◆ nelm() [1/2]

uint hp1D::Space::nelm ( )
inline

Definition at line 122 of file space.hh.

◆ nelm() [2/2]

uint hp1D::Space::nelm ( ) const
inlinevirtual

Returns the number of elements in the space.

Implements concepts::SpaceOnCells< Real >.

Definition at line 107 of file space.hh.

◆ recomputeShapefunctions()

void hp1D::Space::recomputeShapefunctions ( )

Recompute shape functions, e.g. for other abscissas redefined through IntegrableElm::rule().set(...)

◆ scan() [1/2]

Space::Scan * hp1D::Space::scan ( )
inline

Definition at line 127 of file space.hh.

◆ scan() [2/2]

Space::Scan * hp1D::Space::scan ( ) const
inlinevirtual

Returns a scanner to iterate over the elements of the space.

Implements concepts::SpaceOnCells< Real >.

Definition at line 112 of file space.hh.


The documentation for this class was generated from the following file: