Computes the centroid (center of mass) for different cell types. More...
#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>
#include "viennagrid/forwards.h"
#include "viennagrid/topology/all.hpp"
#include "viennagrid/algorithm/volume.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 > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::triangle_tag) |
Implementation of the calculation of a centroid for a triangle. | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::tetrahedron_tag) |
Implementation of the calculation of a centroid for a tetrahedron. | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::quadrilateral_tag) |
Implementation of the calculation of a centroid for a quadrilateral. | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::hexahedron_tag) |
Implementation of the calculation of a centroid for a hexahedron. | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::simplex_tag< 1 >) |
Implementation of the calculation of a centroid for a line (1-simplex). | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::hypercube_tag< 1 >) |
Implementation of the calculation of a centroid for a line (1-hypercube). | |
template<typename ElementType > | |
viennagrid::result_of::point < typename ElementType::config_type > ::type | centroid (ElementType const &cell, viennagrid::point_tag) |
Implementation of the calculation of a centroid for a point. | |
template<typename DomainSegmentType > | |
viennagrid::result_of::point < typename DomainSegmentType::config_type > ::type | centroid_domseg (DomainSegmentType const &domseg) |
template<typename CellType > | |
viennagrid::result_of::point < typename CellType::config_type >::type | centroid (CellType const &cell) |
The public interface function for the computation of a centroid. | |
template<typename ConfigType > | |
viennagrid::result_of::point < ConfigType >::type | centroid (domain_t< ConfigType > const &domain) |
The public interface function for the computation of the centroid of a domain. | |
template<typename ConfigType > | |
viennagrid::result_of::point < ConfigType >::type | centroid (segment_t< ConfigType > const &segment) |
The public interface function for the computation of the centroid of a segment. |
Computes the centroid (center of mass) for different cell types.