Namespaces | Functions

/export/development/ViennaGrid/release/ViennaGrid-1.0.0/viennagrid/algorithm/circumcenter.hpp File Reference

Computes the circumcenter of n-cells. More...

#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>
#include "viennagrid/forwards.h"
#include "viennagrid/algorithm/spanned_volume.hpp"
#include "viennagrid/algorithm/cross_prod.hpp"
#include "viennadata/api.hpp"

Go to the source code of this file.

Namespaces

namespace  viennagrid
 

The main ViennaGrid namespace. Most functionality resides in this namespace.


namespace  viennagrid::detail
 

The namespace holding the implementations of domains, segments and ncells as well as some algorithm implementations. Not of interest for library users.


Functions

template<typename ElementType , typename ElementTag , typename DimensionTag >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, ElementTag const &, DimensionTag const &)
 Throws a compile time error if the n-cell type is not supported.
template<typename ElementType >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::point_tag)
 Implementation of the calculation of a circumcenter for a point (degenerate case).
template<typename ElementType , typename DimensionTag >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::simplex_tag< 1 >, DimensionTag)
 Implementation of the calculation of a circumcenter for a line (1-simplex).
template<typename ElementType , typename DimensionTag >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::hypercube_tag< 1 >, DimensionTag)
 Implementation of the calculation of a circumcenter for a line (1-hypercube).
template<typename ElementType >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::triangle_tag, viennagrid::dimension_tag< 2 >)
 Implementation of the calculation of a circumcenter for a triangle in two dimensions.
template<typename CellType >
viennagrid::result_of::point
< typename
CellType::config_type >::type 
circumcenter (CellType const &cell, viennagrid::quadrilateral_tag, viennagrid::dimension_tag< 2 >)
 Implementation of the calculation of a circumcenter for a quadrilateral in two dimensions. Mind that the user has to ensure that the quadrilateral actually has a circumcenter!
template<typename ElementType >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::triangle_tag, viennagrid::dimension_tag< 3 >)
 Implementation of the calculation of a circumcenter for a triangle in three dimensions.
template<typename CellType >
viennagrid::result_of::point
< typename
CellType::config_type >::type 
circumcenter (CellType const &cell, viennagrid::quadrilateral_tag, viennagrid::dimension_tag< 3 >)
 Implementation of the calculation of a circumcenter for a quadrilateral in three dimensions. Mind that the user has to ensure that the quadrilateral actually has a circumcenter!
template<typename ElementType >
viennagrid::result_of::point
< typename
ElementType::config_type >
::type 
circumcenter (ElementType const &cell, viennagrid::tetrahedron_tag, viennagrid::dimension_tag< 3 >)
 Implementation of the calculation of a circumcenter for a tetrahedron in three dimensions.
template<typename CellType >
viennagrid::result_of::point
< typename
CellType::config_type >::type 
circumcenter (CellType const &cell, viennagrid::hexahedron_tag, viennagrid::dimension_tag< 3 >)
 Implementation of the calculation of a circumcenter for a hexahedron in three dimensions. Mind that the user has to ensure that the quadrilateral actually has a circumcenter!
template<typename CellType >
viennagrid::result_of::point
< typename
CellType::config_type >::type 
circumcenter (CellType const &cell)
 The public interface function for the calculation of the circumcenter.

Detailed Description

Computes the circumcenter of n-cells.