Topological spherical surface connector. More...

#include <sphereTopology.hh>

Inheritance diagram for concepts::SphericalSurface:
concepts::Connector2 concepts::Connector concepts::OutputOperator

Public Member Functions

const Attributeattrib () const
 Returns the attribute of the connector. More...
 
const Quadchild (uint i) const override
 Get i-th quadrilateral child. More...
 
Quadchild (uint i, bool mode) override
 Get i-th quadrilateral child. More...
 
Connector1edge (uint i) const override
 Required method by Connector2. More...
 
bool hasChild (const Quad &quad) const
 Check if quad is a child of this connector. More...
 
std::ostream & info (std::ostream &os) const override
 Returns information in an output stream. More...
 
const Keykey () const
 Returns the key of the connector. More...
 
int operator== (const Connector &cntr) const
 Comparison operator. More...
 
int related (const Connector &conn) const
 Checks if this connector is related to conn. More...
 
void setAttrib (uint attrb)
 
 SphericalSurface (const std::vector< Quad * > &quads=std::vector< Quad * >(0), const Attribute attrib=Attribute())
 Constructor accepting the children of the spherical surface. More...
 
Connector0vertex (uint i) const override
 Required method by Connector2. More...
 
 ~SphericalSurface () override
 

Protected Attributes

Attribute attrib_
 Attribute. More...
 
Key key_
 Unique key of the connector. More...
 

Static Protected Attributes

static uint cnt_
 Counter for the connectors. More...
 

Private Attributes

std::vector< Quad * > chld_
 Quadrilateral children. More...
 

Detailed Description

Topological spherical surface connector.

In contrast to usual finite element connectors orientation flags are absent here. Quadrilateral connectors geometrically refining the surface are specified in a sequence.

Author
Lukas Drescher, 2014
Todo:

Change to iterator based constructor

Introduce key counting on the base level of Connector, not ConnectorN since SphericalSurface currently incorrectly needs to derive from Connector2 (unique keys are required by mortar library)

Definition at line 23 of file sphereTopology.hh.

Constructor & Destructor Documentation

◆ SphericalSurface()

concepts::SphericalSurface::SphericalSurface ( const std::vector< Quad * > &  quads = std::vector< Quad * >(0),
const Attribute  attrib = Attribute() 
)

Constructor accepting the children of the spherical surface.

◆ ~SphericalSurface()

concepts::SphericalSurface::~SphericalSurface ( )
override

Member Function Documentation

◆ attrib()

const Attribute& concepts::Connector::attrib ( ) const
inlineinherited

Returns the attribute of the connector.

Definition at line 108 of file connector.hh.

◆ child() [1/2]

const Quad* concepts::SphericalSurface::child ( uint  i) const
inlineoverridevirtual

Get i-th quadrilateral child.

Implements concepts::Connector2.

Definition at line 32 of file sphereTopology.hh.

◆ child() [2/2]

Quad* concepts::SphericalSurface::child ( uint  i,
bool  mode 
)
inlineoverridevirtual

Get i-th quadrilateral child.

Implements concepts::Connector2.

Definition at line 34 of file sphereTopology.hh.

◆ edge()

Connector1* concepts::SphericalSurface::edge ( uint  i) const
overridevirtual

Required method by Connector2.

Implements concepts::Connector2.

◆ hasChild()

bool concepts::SphericalSurface::hasChild ( const Quad quad) const

Check if quad is a child of this connector.

◆ info()

std::ostream& concepts::SphericalSurface::info ( std::ostream &  os) const
overridevirtual

Returns information in an output stream.

Reimplemented from concepts::Connector.

◆ key()

const Key& concepts::Connector::key ( ) const
inlineinherited

Returns the key of the connector.

Definition at line 105 of file connector.hh.

◆ operator==()

int concepts::Connector::operator== ( const Connector cntr) const
inlineinherited

Comparison operator.

Definition at line 102 of file connector.hh.

◆ related()

int concepts::Connector::related ( const Connector conn) const
inherited

Checks if this connector is related to conn.

It is being checked if one of the two is an ancestor of the other.

Parameters
connOther connector
Returns
An integer i.
i=0 if there is no relationship or the connectors are identical
i>0 if conn is an ancestor of this connector
i<0 if conn is a descendant of this connector
|i| gives the number of generations between the connectors

◆ setAttrib()

void concepts::Connector::setAttrib ( uint  attrb)
inlineinherited

Definition at line 111 of file connector.hh.

◆ vertex()

Connector0* concepts::SphericalSurface::vertex ( uint  i) const
overridevirtual

Required method by Connector2.

Implements concepts::Connector2.

Member Data Documentation

◆ attrib_

Attribute concepts::Connector::attrib_
protectedinherited

Attribute.

Definition at line 132 of file connector.hh.

◆ chld_

std::vector<Quad*> concepts::SphericalSurface::chld_
private

Quadrilateral children.

Definition at line 48 of file sphereTopology.hh.

◆ cnt_

uint concepts::Connector2::cnt_
staticprotectedinherited

Counter for the connectors.

This counter is used to create the unique key of the connector.

Definition at line 263 of file connector.hh.

◆ key_

Key concepts::Connector::key_
protectedinherited

Unique key of the connector.

Definition at line 129 of file connector.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich