ElementBoundaryTraces.h DG++. More...
#include <ElementBoundaryTrace.h>
Public Member Functions | |
ElementBoundaryTraces () | |
virtual | ~ElementBoundaryTraces () |
ElementBoundaryTraces (const ElementBoundaryTraces &) | |
virtual ElementBoundaryTraces * | clone () const =0 |
virtual size_t | getNumTraceFaces () const =0 |
Number of faces for which traces are provided. | |
virtual const std::vector < size_t > & | getTraceFaceIds () const =0 |
Returns the face number in the polytope whose traces are provided. | |
virtual size_t | getTraceNumberOfFace (size_t FaceIndex) const =0 |
Returns the Trace number where the trace for face FaceIndex is stored. | |
virtual const Element & | getTrace (size_t FaceIndex) const =0 |
Returns a constant reference to the Element that contains the traces of the face getTraceFacesNumbers()[FaceIndex]. | |
const Element & | operator[] (size_t FaceIndex) |
Returns getTrace(FaceIndex). | |
virtual const std::vector < double > & | getNormal (size_t FaceIndex) const =0 |
Returns the outward normal to face getTraceFaceIds(FaceIndex) FaceIndex ranges from 0 to the getNumTraceFaces()-1. | |
virtual size_t | dofMap (size_t FaceIndex, size_t field, size_t dof) const =0 |
map between the degrees of freedom of field in a trace and those in the original element |
ElementBoundaryTraces.h DG++.
Created by Adrian Lew on 10/12/06.
Copyright (c) 2006 Adrian Lew
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ElementBoundaryTraces: values of the trace of some or all the fields in an Element over some or all faces of the polytope.
An ElementBoundaryTraces object contains
1) The outward normal to the faces for which values are desired.
2) The trace at these faces of some or all of the fields in the element. These traces are provided as Element objects, one for each face.
The number of faces or fields in each face depends on the particular ElementBoundaryTraces object build. The exact number of fields whose trace is computed for each face will be determined by the Element object in each face.
ElementBoundaryTraces objects are designed to work jointly with Element objects, so for example, it has no access to the ElementGeometry. The outward normal to the faces are included here because these are often used in integrands over faces.
Each polytope has a convention to label ALL of its faces. By convention, these labels are consecutive integers starting at 0 to the total number of faces in the polytope minus one.
ElementBoundaryTraces::ElementBoundaryTraces | ( | ) | [inline] |
virtual ElementBoundaryTraces::~ElementBoundaryTraces | ( | ) | [inline, virtual] |
ElementBoundaryTraces::ElementBoundaryTraces | ( | const ElementBoundaryTraces & | ) | [inline] |
virtual ElementBoundaryTraces* ElementBoundaryTraces::clone | ( | ) | const [pure virtual] |
Implemented in ElementBoundaryTraces_, P12DElementBoundaryTraces< NF >, and P13DElementBoundaryTraces< NF >.
virtual size_t ElementBoundaryTraces::dofMap | ( | size_t | FaceIndex, | |
size_t | field, | |||
size_t | dof | |||
) | const [pure virtual] |
map between the degrees of freedom of field in a trace and those in the original element
FaceIndex | starting from 0 | |
field | field number to map, starting from 0 | |
dof | degree of freedom number on the trace of field "field" |
The function returns the degree of freedom number in the original element
Implemented in P12DElementBoundaryTraces< NF >, and P13DElementBoundaryTraces< NF >.
virtual const std::vector<double>& ElementBoundaryTraces::getNormal | ( | size_t | FaceIndex | ) | const [pure virtual] |
Returns the outward normal to face getTraceFaceIds(FaceIndex) FaceIndex ranges from 0 to the getNumTraceFaces()-1.
Implemented in P1nDBoundaryTraces< NF >.
virtual size_t ElementBoundaryTraces::getNumTraceFaces | ( | ) | const [pure virtual] |
Number of faces for which traces are provided.
Implemented in ElementBoundaryTraces_.
virtual const Element& ElementBoundaryTraces::getTrace | ( | size_t | FaceIndex | ) | const [pure virtual] |
Returns a constant reference to the Element that contains the traces of the face getTraceFacesNumbers()[FaceIndex].
FaceIndex ranges from 0 to the getNumTraceFaces()-1.
Implemented in ElementBoundaryTraces_.
virtual const std::vector<size_t>& ElementBoundaryTraces::getTraceFaceIds | ( | ) | const [pure virtual] |
Returns the face number in the polytope whose traces are provided.
Each polytope has a convention to label ALL of its faces. Traces are provided for a subset of these faces. A total number of getNumTraceFaces() faces have their traces in this object. getTraceFaceIds()[FaceIndex], with FaceIndex between 0 and getNumTraceFaces()-1, provides the face number in the polytope face element accesses with getTrace(FaceIndex).
The value returned starts at 0 for the first face and so on.
Implemented in ElementBoundaryTraces_.
virtual size_t ElementBoundaryTraces::getTraceNumberOfFace | ( | size_t | FaceIndex | ) | const [pure virtual] |
Returns the Trace number where the trace for face FaceIndex is stored.
If no trace is provided for that face returns a -1.
It is always true that FaceNumberToTrace[ getTraceFaceIds()[i] ] = i; for 0<= i <= getNumTraceFaces()-1
Implemented in ElementBoundaryTraces_.
const Element& ElementBoundaryTraces::operator[] | ( | size_t | FaceIndex | ) | [inline] |
Returns getTrace(FaceIndex).
Done for simplicity of the interface. FaceIndex ranges from 0 to the getNumTraceFaces()-1.