Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::DomainDecomp< F > Class Template Reference

#include <domainDecomp.hh>

Inheritance diagram for concepts::DomainDecomp< F >:
concepts::DDSpace< F::t_type > concepts::Subspace concepts::Space< F > concepts::OutputOperator

Public Types

typedef concepts::Element< typename F::t_type > Element
 
typedef concepts::Scan< ElementScan
 
typedef Element< F > type
 
typedef Scan< Element< F > > Scanner
 

Public Member Functions

template<class G >
 DomainDecomp (G &prebuild, Sequence< Set< uint > > domains, BoundaryConditions *bc=0, CellConditions *cc=0, uint spcNo=0, uint *offset=0)
 
void rebuild ()
 Rebuilds the spaces.
 
bool available () const
 
virtual uint dim () const
 Returns the dimension of the space.
 
virtual uint nelm () const
 Returns the number of elements in the space.
 
virtual Scanscan () const
 Returns a scanner to iterate over the elements of the space.
 
virtual uintlastIdx ()
 Returns last global index of the space.
 
virtual uint offset () const
 Returns the offset, returns 0 if space is not a subspace or first one.
 
virtual const F & space (uint i) const
 Returns space belonging to i th domain.
 
F & space (uint i)
 
virtual const Set< IndexRangeindicesI (uint i) const
 Returns index set for dof inside the i th domain.
 
virtual const Set< IndexRangeindicesB (uint i) const
 Returns index set for dof at the boundary the i th domain.
 
const uint domains () const
 Returns number of domains/spaces.
 
virtual uint getOutputDimension () const
 Returns the default output dimension, when we consider plotting a real-valued operator on this space.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns all index sets for dof at boundary of each domain.
 

Protected Attributes

uint domains_
 Number of domains/spaces.
 
Sequence< Set< IndexRange > > indicesI_
 Index sets of dof inside and at the boundary for each domain/space.
 
Sequence< Set< IndexRange > > indicesB_
 

Detailed Description

template<class F>
class concepts::DomainDecomp< F >

Domain decomposition space

Parameters
Ftype of space pre builder class

Definition at line 72 of file domainDecomp.hh.

Member Typedef Documentation

◆ Element

template<class F >
typedef concepts::Element<typename F::t_type> concepts::DomainDecomp< F >::Element

Element type

Parameters
F::t_typetype of T matrix entries

Definition at line 78 of file domainDecomp.hh.

◆ Scan

Definition at line 79 of file domainDecomp.hh.

◆ Scanner

template<class F >
typedef Scan<Element<F> > concepts::Space< F >::Scanner
inherited

Definition at line 47 of file space.hh.

◆ type

template<class F >
typedef Element<F> concepts::Space< F >::type
inherited

Definition at line 46 of file space.hh.

Constructor & Destructor Documentation

◆ DomainDecomp()

template<class F >
template<class G >
concepts::DomainDecomp< F >::DomainDecomp ( G &  prebuild,
Sequence< Set< uint > >  domains,
BoundaryConditions bc = 0,
CellConditions cc = 0,
uint  spcNo = 0,
uint offset = 0 
)

Constructor

Parameters
prebuildSpace pre builder
domainsAttributes of cells for each domain
bcBoundary conditions
ccCell conditions
spcNoNumber for the global indices for distinguishing between global indices on same topological entity (same for all domains)
offsetOffset of global indices

Definition at line 163 of file domainDecomp.hh.

◆ ~DomainDecomp()

template<class F >
concepts::DomainDecomp< F >::~DomainDecomp ( )
virtual

Definition at line 249 of file domainDecomp.hh.

Member Function Documentation

◆ available()

template<class F >
bool concepts::DomainDecomp< F >::available ( ) const

Returns true, if space is available, false, if it has to be rebuilt.

The space is available if the spaces of all domains are available, and the build number of the spaces have not changed, i.e. the spaces are forced to rebuild from somewhere else.

Definition at line 363 of file domainDecomp.hh.

◆ dim()

template<class F >
uint concepts::DomainDecomp< F >::dim ( ) const
inlinevirtual

Returns the dimension of the space.

Implements concepts::Space< F >.

Definition at line 373 of file domainDecomp.hh.

◆ domains()

const uint concepts::DDSpace< F >::domains ( ) const
inlineinherited

Returns number of domains/spaces.

Definition at line 37 of file domainDecomp.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.

◆ indicesB()

template<class F >
const Set< IndexRange > concepts::DomainDecomp< F >::indicesB ( uint  i) const
virtual

Returns index set for dof at the boundary the i th domain.

Implements concepts::DDSpace< F::t_type >.

Definition at line 426 of file domainDecomp.hh.

◆ indicesI()

template<class F >
const Set< IndexRange > concepts::DomainDecomp< F >::indicesI ( uint  i) const
virtual

Returns index set for dof inside the i th domain.

Implements concepts::DDSpace< F::t_type >.

Definition at line 418 of file domainDecomp.hh.

◆ info()

template<class F >
std::ostream & concepts::DomainDecomp< F >::info ( std::ostream &  os) const
protectedvirtual

Returns all index sets for dof at boundary of each domain.

Reimplemented from concepts::DDSpace< F::t_type >.

Definition at line 263 of file domainDecomp.hh.

◆ lastIdx()

template<class F >
uint & concepts::DomainDecomp< F >::lastIdx ( )
virtual

Returns last global index of the space.

Implements concepts::Subspace.

Definition at line 396 of file domainDecomp.hh.

◆ nelm()

template<class F >
uint concepts::DomainDecomp< F >::nelm ( ) const
inlinevirtual

Returns the number of elements in the space.

Implements concepts::Space< F >.

Definition at line 382 of file domainDecomp.hh.

◆ offset()

template<class F >
uint concepts::DomainDecomp< F >::offset ( ) const
virtual

Returns the offset, returns 0 if space is not a subspace or first one.

Implements concepts::Subspace.

Definition at line 401 of file domainDecomp.hh.

◆ rebuild()

template<class F >
void concepts::DomainDecomp< F >::rebuild ( )

Rebuilds the spaces.

Definition at line 285 of file domainDecomp.hh.

◆ scan()

template<class F >
DomainDecomp< F >::Scan * concepts::DomainDecomp< F >::scan ( ) const
inlinevirtual

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

Implements concepts::Space< F >.

Definition at line 389 of file domainDecomp.hh.

◆ space() [1/2]

template<class F >
F & concepts::DomainDecomp< F >::space ( uint  i)

Definition at line 412 of file domainDecomp.hh.

◆ space() [2/2]

template<class F >
const F & concepts::DomainDecomp< F >::space ( uint  i) const
virtual

Returns space belonging to i th domain.

Implements concepts::DDSpace< F::t_type >.

Definition at line 406 of file domainDecomp.hh.

Member Data Documentation

◆ domains_

uint concepts::DDSpace< F >::domains_
protectedinherited

Number of domains/spaces.

Definition at line 54 of file domainDecomp.hh.

◆ indicesB_

Sequence<Set<IndexRange> > concepts::DDSpace< F >::indicesB_
protectedinherited

Definition at line 56 of file domainDecomp.hh.

◆ indicesI_

Sequence<Set<IndexRange> > concepts::DDSpace< F >::indicesI_
protectedinherited

Index sets of dof inside and at the boundary for each domain/space.

Definition at line 56 of file domainDecomp.hh.


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