Dune Core Modules (2.11.0)
foamgridintersections.hh
Go to the documentation of this file.
73 : center_(center), facetIndex_(facet), neighbor_(FoamGridNullIteratorFactory<dimgrid, dimworld, ctype>::null())
151 FieldVector<ctype, dimworld> otherEdge = center_->vertex_[v2]->pos_ - center_->vertex_[v1]->pos_;
191 FieldVector<ctype, dimworld> integrationOuterNormal (const FieldVector<ctype, dimgrid-1>& local) const
245 typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*>::const_iterator neighbor_;
272 FoamGridLevelIntersection(const FoamGridEntityImp<dimgrid, dimgrid ,dimworld, ctype>* center, std::size_t facet)
308 coordinates[idx] = refElement.position(refElement.subEntity(this->facetIndex_, 1, idx, dimgrid), dimgrid);
332 const auto refElementOther = ReferenceElements<ctype, dimgrid>::general((*this->neighbor_)->type());
354 coordinates[idx] = this->center_->vertex_[refElement.subEntity(this->facetIndex_, 1, idx, dimgrid)]->pos_;
364 typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid ,dimworld, ctype>*>::const_iterator neighborEnd_;
473 coordinates[idx] = refElement.position(refElement.subEntity(this->facetIndex_, 1, idx, dimgrid), dimgrid);
487 const auto refElement = Dune::ReferenceElements<ctype, dimgrid>::general(this->center_->type());
494 coordinates[vIdx] = (*this->neighbor_)->globalToLocal(this->center_->vertex_[vIdxInElement]->pos_);
512 coordinates[idx] = this->center_->vertex_[refElement.subEntity(this->facetIndex_, 1, idx, dimgrid)]->pos_;
constexpr FieldTraits< value_type >::real_type two_norm() const
two norm sqrt(sum over squared values of entries)
Definition: densevector.hh:656
Element specialization of FoamGridEntityImp. Element is a grid entity of topological codimension 0 an...
Definition: foamgridelements.hh:18
Base class of all intersections within FoamGrid.
Definition: foamgridintersections.hh:39
int facetIndex_
Count on which facet we are lookin' at.
Definition: foamgridintersections.hh:242
std::vector< constFoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > * >::const_iterator neighbor_
Iterator to the other neighbor of the intersection.
Definition: foamgridintersections.hh:245
FieldVector< ctype, dimworld > integrationOuterNormal(const FieldVector< ctype, dimgrid-1 > &local) const
return outer normal multiplied by the integration element
Definition: foamgridintersections.hh:191
FieldVector< ctype, dimworld > outerNormal(const FieldVector< ctype, dimgrid-1 > &local) const
return outer normal
Definition: foamgridintersections.hh:127
FieldVector< ctype, dimworld > centerUnitOuterNormal() const
return unit outer normal at the intersection center
Definition: foamgridintersections.hh:226
FieldVector< ctype, dimworld > unitOuterNormal(const FieldVector< ctype, dimgrid-1 > &local) const
return unit outer normal
Definition: foamgridintersections.hh:218
bool boundary() const
return true if intersection is with boundary.
Definition: foamgridintersections.hh:101
int boundarySegmentIndex() const
return information about the Boundary
Definition: foamgridintersections.hh:106
int indexInInside() const
local number of codim 1 entity in self where intersection is contained in
Definition: foamgridintersections.hh:118
GeometryType type() const
Geometry type of an intersection.
Definition: foamgridintersections.hh:112
bool equals(const FoamGridIntersection< GridImp > &i) const
equality
Definition: foamgridintersections.hh:95
Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all nei...
Definition: foamgridintersectioniterators.hh:28
Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all nei...
Definition: foamgridintersections.hh:386
int indexInOutside(std::size_t neighborIndex=0) const
local number of codim 1 entity in neighbor where intersection is contained
Definition: foamgridintersections.hh:420
LocalGeometry geometryInInside() const
Definition: foamgridintersections.hh:465
LocalGeometry geometryInOutside(std::size_t neighborIndex=0) const
Definition: foamgridintersections.hh:484
bool conforming() const
Return true if this is a conforming intersection.
Definition: foamgridintersections.hh:414
bool neighbor() const
return true if across the facet a neighbor on this level exists
Definition: foamgridintersections.hh:520
Geometry geometry() const
Definition: foamgridintersections.hh:504
Definition: foamgridintersectioniterators.hh:239
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Intersection of a mesh entity of codimension 0 ("element") with a "neighboring" element or with the d...
Definition: intersection.hh:164
Geometry geometry() const
geometrical information about the intersection in global coordinates.
Definition: intersection.hh:328
bool conforming() const
Return true if intersection is conforming.
Definition: intersection.hh:273
int indexInOutside() const
Local index of codim 1 entity in outside() entity where intersection is contained in.
Definition: intersection.hh:368
bool neighbor() const
return true if intersection is shared with another element.
Definition: intersection.hh:242
GridImp::template Codim< 1 >::LocalGeometry LocalGeometry
Codim 1 geometry returned by geometryInInside() and geometryInOutside()
Definition: intersection.hh:204
GeometryType type() const
obtain the type of reference element for this intersection
Definition: intersection.hh:334
LocalGeometry geometryInOutside() const
geometrical information about this intersection in local coordinates of the outside() entity.
Definition: intersection.hh:309
LocalGeometry geometryInInside() const
geometrical information about this intersection in local coordinates of the inside() entity.
Definition: intersection.hh:291
GridImp::template Codim< 1 >::Geometry Geometry
Codim 1 geometry returned by geometry()
Definition: intersection.hh:195
GridImp::template Codim< 0 >::Entity Entity
Type of entity that this Intersection belongs to.
Definition: intersection.hh:192
GridImp::ctype ctype
Type of individual coefficients of coordinate vectors.
Definition: intersection.hh:213
The FoamGridEntity class.
The FoamGridGeometry class.
The null iterator factory for intersections.
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:453
static const ReferenceElement & general(const GeometryType &type)
get general reference elements
Definition: referenceelements.hh:156
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Feb 14, 23:39, 2026)