concepts::Sphere3d Class Reference

Geometric sphere element. More...

#include <sphereCell.hh>

Inheritance diagram for concepts::Sphere3d:
concepts::Cell concepts::OutputOperator

Public Member Functions

const Cellchild (uint i) const override
 Returns a pointer to the ith child. More...
 
Quad2dchild (uint i) override
 Returns a pointer to the ith child. More...
 
Sphereconnector () const override
 Returns the connector. More...
 
Real3d elemMap (const Real &radius, const Real &theta, const Real &phi) const
 
Real3d elemMap (const Real coord_local) const override
 Element map from point local coordinates in 1D. More...
 
Real3d elemMap (const Real2d &coord_local) const override
 Element map from point local coordinates in 2D. More...
 
Real3d elemMap (const Real3d &coord_local) const override
 Element map from point local coordinates in 3D. More...
 
Real3d getCenter () const
 
Real getRadius () const
 
bool hasChildren () const
 
std::ostream & info (std::ostream &os) const override
 Returns information in an output stream. More...
 
Real3d inverseElemMap (const Real3d &coord_global) const
 
Real jacobianDeterminant (const Real3d &coord_local) const
 
 Sphere3d (Sphere &cntr, Real radius, Real3d center)
 
 ~Sphere3d () override
 

Private Attributes

Spherecntr_
 Topology. More...
 
SphereMapping mapping_
 Geometric embedding. More...
 

Detailed Description

Geometric sphere element.

Topology is aggregated via Sphere, geometry via SphereMapping.

Author
Lukas Drescher, 2014
Todo:
use SphereMapping type consistently throughout this type

Definition at line 130 of file sphereCell.hh.

Constructor & Destructor Documentation

◆ Sphere3d()

concepts::Sphere3d::Sphere3d ( Sphere cntr,
Real  radius,
Real3d  center 
)

◆ ~Sphere3d()

concepts::Sphere3d::~Sphere3d ( )
override

Member Function Documentation

◆ child() [1/2]

const Cell* concepts::Sphere3d::child ( uint  i) const
overridevirtual

Returns a pointer to the ith child.

Children are not created if they do not already exist, instead 0 is returned.

Implements concepts::Cell.

◆ child() [2/2]

Quad2d* concepts::Sphere3d::child ( uint  i)
overridevirtual

Returns a pointer to the ith child.

Children are created if they do not already exist.

Implements concepts::Cell.

◆ connector()

Sphere& concepts::Sphere3d::connector ( ) const
inlineoverridevirtual

Returns the connector.

Implements concepts::Cell.

Definition at line 143 of file sphereCell.hh.

◆ elemMap() [1/4]

Real3d concepts::Sphere3d::elemMap ( const Real radius,
const Real theta,
const Real phi 
) const
inline

Definition at line 157 of file sphereCell.hh.

◆ elemMap() [2/4]

Real3d concepts::Sphere3d::elemMap ( const Real  coord_local) const
inlineoverridevirtual

Element map from point local coordinates in 1D.

Reimplemented from concepts::Cell.

Definition at line 145 of file sphereCell.hh.

◆ elemMap() [3/4]

Real3d concepts::Sphere3d::elemMap ( const Real2d coord_local) const
inlineoverridevirtual

Element map from point local coordinates in 2D.

Reimplemented from concepts::Cell.

Definition at line 149 of file sphereCell.hh.

◆ elemMap() [4/4]

Real3d concepts::Sphere3d::elemMap ( const Real3d coord_local) const
inlineoverridevirtual

Element map from point local coordinates in 3D.

Reimplemented from concepts::Cell.

Definition at line 153 of file sphereCell.hh.

◆ getCenter()

Real3d concepts::Sphere3d::getCenter ( ) const
inline

Definition at line 217 of file sphereCell.hh.

◆ getRadius()

Real concepts::Sphere3d::getRadius ( ) const
inline

Definition at line 215 of file sphereCell.hh.

◆ hasChildren()

bool concepts::Sphere3d::hasChildren ( ) const
inline

Definition at line 141 of file sphereCell.hh.

◆ info()

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

Returns information in an output stream.

Implements concepts::Cell.

◆ inverseElemMap()

Real3d concepts::Sphere3d::inverseElemMap ( const Real3d coord_global) const
inline

prevent ill-conditioned coordinate transform

invert cosine

invert sine

Definition at line 164 of file sphereCell.hh.

◆ jacobianDeterminant()

Real concepts::Sphere3d::jacobianDeterminant ( const Real3d coord_local) const
inline

Definition at line 211 of file sphereCell.hh.

Member Data Documentation

◆ cntr_

Sphere& concepts::Sphere3d::cntr_
private

Topology.

Definition at line 223 of file sphereCell.hh.

◆ mapping_

SphereMapping concepts::Sphere3d::mapping_
private

Geometric embedding.

Definition at line 226 of file sphereCell.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