#include <neumannTraceSpace.hh>
Public Types | |
typedef concepts::Scan< hp1D::BaseElement< Real > > | Scan |
typedef concepts::ElementAndFacette< hp2D::Element< Real > > | UnderlyingElement |
typedef concepts::ElementAndFacette< concepts::Edge > | UnderlyingEdge |
typedef ElementWithCell< Real > | type |
typedef Scan< ElementWithCell< Real > > | Scanner |
Public Member Functions | |
NeumannTraceSpace (const concepts::SpaceOnCells< Real > &spc, const concepts::Set< uint > edgeAttr, enum concepts::EdgeTraceType::traceTypes type=concepts::EdgeTraceType::FIRST, const concepts::EdgeNormalVectorRule &normalVectorRule=concepts::EdgeNormalVectorRule(), bool emptyElm=true) | |
NeumannTraceSpace (const GridInfo< Real > &gInfo, uint sDim, enum concepts::EdgeTraceType::traceTypes type=concepts::EdgeTraceType::FIRST, const concepts::EdgeNormalVectorRule &normalVectorRule=concepts::EdgeNormalVectorRule(), bool emptyElm=true) | |
NeumannTraceSpace (concepts::SpaceOnCells< Real > &spc, const concepts::EdgeTraceTypes &ettypes, bool emptyElm=true) | |
virtual | ~NeumannTraceSpace () |
virtual uint | dim () const |
virtual uint | nelm () const |
virtual Scan * | scan () const |
const concepts::Sequence< UnderlyingElement > | uelm (const concepts::Edge edge) const |
virtual void | recomputeShapefunctions () |
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 information in an output stream. | |
A the NeumannTrace space of a given 2D - Finite Element space. The elements are from type hp2D::Edge. One can restrict the trace operation by EdgeTraceTypes or via Attributes and a EdgeNormalVectorRule. If the FE space is rebuild, one has to construct the NeumannTraceSpace again. Additonally a map from the topological edge to the set of the underlying elements is stored.
Space can be builded on irregular spaces, i.e. with k-irregular mesh with hanging nodes.
Caution: Coarse irregular elements are currently not space members, that must be taken into account when using the space in ElementFormulaVector, Linearforms, Bilinearforms or integration
Definition at line 51 of file neumannTraceSpace.hh.
typedef concepts::Scan<hp1D::BaseElement<Real> > hp2D::NeumannTraceSpace::Scan |
Definition at line 53 of file neumannTraceSpace.hh.
|
inherited |
|
inherited |
Definition at line 55 of file neumannTraceSpace.hh.
typedef concepts::ElementAndFacette<hp2D::Element<Real> > hp2D::NeumannTraceSpace::UnderlyingElement |
Definition at line 54 of file neumannTraceSpace.hh.
hp2D::NeumannTraceSpace::NeumannTraceSpace | ( | const concepts::SpaceOnCells< Real > & | spc, |
const concepts::Set< uint > | edgeAttr, | ||
enum concepts::EdgeTraceType::traceTypes | type = concepts::EdgeTraceType::FIRST , |
||
const concepts::EdgeNormalVectorRule & | normalVectorRule = concepts::EdgeNormalVectorRule() , |
||
bool | emptyElm = true |
||
) |
Constructor
This builds a NeumannTraceSpace only for edges with attributes that are requested.
The EdgeTraceType can be FIRST, MEAN, JUMP or PLUS and MINUS. Since the EdgeNormalVectorRule in a sense is constant for all requested edges, you have to think about the Meaning of these Traces then, since they are also defined with the help of the first underlying Element. Alternativly one uses the second Constructor.
This Constructor may easy applicate for Boundary Elements with a FIRST neumanntrace, since these elements only have up to one underlying Element.
Additional a Flag for empty Elements is given, that controls the build up of Elements with no degrees of freedoms on it. This might be used for graphical Output.
spc | underlying Finite Element Space |
edgeAttr | set of requested edge attributes |
traceTypes | the type of NeumannTrace, i.e. FIRST,MEAN,JUMP,PLUS,MINUS |
normalVectorRule | Given rule for the Normalvector behaviour |
emptyElm | Flag to control build of empty Elements |
hp2D::NeumannTraceSpace::NeumannTraceSpace | ( | const GridInfo< Real > & | gInfo, |
uint | sDim, | ||
enum concepts::EdgeTraceType::traceTypes | type = concepts::EdgeTraceType::FIRST , |
||
const concepts::EdgeNormalVectorRule & | normalVectorRule = concepts::EdgeNormalVectorRule() , |
||
bool | emptyElm = true |
||
) |
Constructor
gInfo | External build grid Info, contains attribute data |
sDim | space dimension of space on which gInfo is built |
traceTypes | the type of NeumannTrace, i.e. FIRST,MEAN,JUMP,PLUS,MINUS |
normalVectorRule | Given rule for the Normalvector behaviour |
hp2D::NeumannTraceSpace::NeumannTraceSpace | ( | concepts::SpaceOnCells< Real > & | spc, |
const concepts::EdgeTraceTypes & | ettypes, | ||
bool | emptyElm = true |
||
) |
Constructor
This builds a NeumannTraceSpace for edges that are requested in the EdgeTraceTypes semantic.
The EdgeTraceType can be FIRST, MEAN, JUMP or PLUS and MINUS for different edges with different attributes. In opposite to the first constructor the EdgeNormalVectorRule is not constant, since they can vary for each Attribute. This is controlled with the EdgeTraceTypes variable.
This constructor may is the choice when building a NeumannTraceSpace on a Finite Element Space with different material attributes.
Additional a Flag for empty Elements is given, that controls the build up of Elements with no degrees of freedoms on it. This might be used for graphical Output.
spc | underlying Finite Element Space |
edgeAttr | set of requested edge attributes |
traceTypes | the type of NeumannTrace, i.e. FIRST,MEAN,JUMP,PLUS,MINUS |
normalVectorRule | Given rule for the Normalvector behaviour |
emptyElm | Flag to control build of empty Elements |
|
virtual |
Deconstructor
|
inlinevirtual |
Returns the dimension of the underlying Finite Element Space
Implements concepts::SpaceOnCells< Real >.
Definition at line 129 of file neumannTraceSpace.hh.
|
inlinevirtualinherited |
Returns the default output dimension, when we consider plotting a real-valued operator on this space.
Reimplemented in hp2D::hpAdaptiveSpaceHCurl, and hp2Dedge::Space.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::SpaceOnCells< Real >.
|
inlinevirtual |
Returns the number of NeumannTraceElements in the Space
Implements concepts::SpaceOnCells< Real >.
Definition at line 136 of file neumannTraceSpace.hh.
|
virtual |
Recompute shape functions, e.g. for other abscissas redefined through setIntegrationRule
|
inlinevirtual |
Returns a scanner to iterate over the elements of the space
Implements concepts::SpaceOnCells< Real >.
Definition at line 143 of file neumannTraceSpace.hh.
|
inline |
Returns the underlying 2D elements of the given edge if existing.
Definition at line 150 of file neumannTraceSpace.hh.