Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
concepts::InfiniteRect2d Class Reference

A 2D cell: infinite rectangle. More...

#include <cell2D.hh>

Inheritance diagram for concepts::InfiniteRect2d:
Inheritance graph
[legend]
Collaboration diagram for concepts::InfiniteRect2d:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Real3d center () const
 Makes no sense. Calling throws an exception.
virtual Real2d chi (Real xi, Real eta) const
 Evaluates the element map.
virtual const InfiniteRect2dchild (uint i) const
 Returns a child.
virtual InfiniteRect2dchild (uint i)
 Returns a child.
InfiniteRect2dclone (InfiniteQuad &cntr, const Real2d &vtx0, const Real2d &vtx1) const
 Returns a copy of itself.
InfiniteQuadconnector () const
 Returns the quadrilateral connector (topology)
virtual Real3d elemMap (const Real coord_local) const
 Element map from point local coordinates in 1D.
virtual Real3d elemMap (const Real3d &coord_local) const
 Element map from point local coordinates in 3D.
Real3d elemMap (const Real2d &coord_local) const
 Element map from point local coordinates in 2D.
bool hasChildren () const
 Returns true if there is a least one child.
 InfiniteRect2d (InfiniteQuad &cntr, const Real2d &vtx0, const Real2d &vtx1)
 Constructor.
virtual MapReal2d jacobian (const Real xi, const Real eta) const
Real3d vertex (uint i) const
 Returns the coordinates of the ith vertex.
virtual ~InfiniteRect2d ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Attributes

InfiniteRect2dchld_
 Pointer to the first child.
InfiniteRect2dlnk_
 Pointer to a sibling.
UnitNd< 2 > n_
 Direction of the infinite edges (normalised)

Detailed Description

A 2D cell: infinite rectangle.

If a infinite rectangle is subdivided, two new infinite infinite rectangles are created. This happens automatically, if a child is requested

See also:
Cell for more information on cells in a mesh.

Definition at line 571 of file cell2D.hh.


Constructor & Destructor Documentation

concepts::InfiniteRect2d::InfiniteRect2d ( InfiniteQuad cntr,
const Real2d vtx0,
const Real2d vtx1 
)

Constructor.

Takes the connector cntr and the element map map and creates a cell.

Parameters:
cntrTopological information of the infinite quadrilateral
mapElement map of the quadrilateral
virtual concepts::InfiniteRect2d::~InfiniteRect2d ( ) [virtual]

Member Function Documentation

Real3d concepts::InfiniteRect2d::center ( ) const [virtual]

Makes no sense. Calling throws an exception.

Implements concepts::Cell2.

virtual Real2d concepts::InfiniteRect2d::chi ( Real  xi,
Real  eta 
) const [virtual]

Evaluates the element map.

Maps a point from the the reference coordinates in [0,1][0,) onto the physical coordinates.

Returns:
Point in 2D in physical coordinates.
Parameters:
xi$\in [0,1]$
eta$\in [0,\infty)$

Implements concepts::InfiniteQuad2d.

virtual InfiniteRect2d* concepts::InfiniteRect2d::child ( uint  i) [virtual]

Returns a child.

If no children exist, four new children are created. The quadrilateral is cut into four new quadrilaterals by joining the midpoints of its edges.

Parameters:
iIndex of the child to be returned.

Implements concepts::Cell2.

virtual const InfiniteRect2d* concepts::InfiniteRect2d::child ( uint  i) const [virtual]

Returns a child.

If no children exist, none are created and 0 is returned.

Parameters:
iIndex of the child to be returned.

Implements concepts::Cell2.

InfiniteRect2d* concepts::InfiniteRect2d::clone ( InfiniteQuad cntr,
const Real2d vtx0,
const Real2d vtx1 
) const [inline]

Returns a copy of itself.

Definition at line 614 of file cell2D.hh.

Here is the call graph for this function:

InfiniteQuad& concepts::InfiniteQuad2d::connector ( ) const [inline, virtual, inherited]

Returns the quadrilateral connector (topology)

Implements concepts::Cell2.

Definition at line 552 of file cell2D.hh.

Real3d concepts::InfiniteRect2d::elemMap ( const Real2d coord_local) const [inline, virtual]

Element map from point local coordinates in 2D.

Implements concepts::Cell2.

Definition at line 603 of file cell2D.hh.

Here is the call graph for this function:

virtual Real3d concepts::Cell::elemMap ( const Real  coord_local) const [virtual, inherited]

Element map from point local coordinates in 1D.

Reimplemented in concepts::Edge1d, and concepts::Edge2d.

virtual Real3d concepts::Cell2::elemMap ( const Real3d coord_local) const [inline, virtual, inherited]

Element map from point local coordinates in 3D.

Reference element is 2D, third component is omitted.

Reimplemented from concepts::Cell.

Definition at line 100 of file cell.hh.

Here is the call graph for this function:

bool concepts::InfiniteRect2d::hasChildren ( ) const [inline]

Returns true if there is a least one child.

Reimplemented from concepts::Cell.

Definition at line 592 of file cell2D.hh.

virtual std::ostream& concepts::InfiniteRect2d::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::InfiniteQuad2d.

virtual MapReal2d concepts::InfiniteRect2d::jacobian ( const Real  xi,
const Real  eta 
) const [virtual]
Real3d concepts::InfiniteQuad2d::vertex ( uint  i) const [virtual, inherited]

Returns the coordinates of the ith vertex.

Implements concepts::Cell2.


Member Data Documentation

Pointer to the first child.

The children are stored in a linked list.

Definition at line 632 of file cell2D.hh.

Pointer to a sibling.

Definition at line 627 of file cell2D.hh.

Direction of the infinite edges (normalised)

Definition at line 624 of file cell2D.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)