Fluid structure interaction suite
components.cc File Reference
#include "parsed_tools/components.h"
#include <deal.II/base/patterns.h>
#include <numeric>
Include dependency graph for components.cc:

Go to the source code of this file.

Namespaces

 ParsedTools
 We collect in this namespace some wrappers around commonly used deal.II classes, derived from the ParameterAcceptor class.
 
 ParsedTools::Components
 Utilities for extracting components and boundary condition types from strings.
 

Functions

unsigned int ParsedTools::Components::n_components (const std::string &component_names)
 Count the number of components in the given list of comma separated components. More...
 
std::string ParsedTools::Components::blocks_to_names (const std::vector< std::string > &components, const std::vector< unsigned int > &multiplicities)
 Build component names from block names and multiplicities. More...
 
std::pair< std::vector< std::string >, std::vector< unsigned int > > ParsedTools::Components::names_to_blocks (const std::string &component_names)
 Build block names and multiplicities from component names. More...
 
std::string ParsedTools::Components::component_name (const std::string &component_names, const std::string &selected_component)
 Return the canonical component name for the given selected component. More...
 
std::vector< unsigned int > ParsedTools::Components::block_indices (const std::string &component_names, const std::string &selected_components)
 Return the indices within the block corresponding to the given selected components, or numbers::invalid_unsigned_int if the selected components could not be found. More...
 
std::vector< unsigned int > ParsedTools::Components::component_indices (const std::string &component_names, const std::string &selected_components)
 Return the indices within the components corresponding to first component of the given selected components, or numbers::invalid_unsigned_int if the selected components could not be found. More...
 
std::pair< unsigned int, unsigned int > ParsedTools::Components::component_to_indices (const std::string &component_names, const std::string &selected_component)
 Return the indices within the components and within the blocks corresponding to first component of the given selected component, or numbers::invalid_unsigned_int if the selected components could not be found. More...
 
Type ParsedTools::Components::type (const std::string &component_name, const std::string &selected_component)
 Return the component type for the given selected component. More...
 
unsigned int ParsedTools::Components::n_blocks (const std::string &component_names)
 Count the number of components in the given list of comma separated components. More...
 
ComponentMask ParsedTools::Components::mask (const std::string &component_names, const std::string &selected_component)
 Return a component mask corresponding to a given selected component, from a list of comma separated components. More...