QUGaR 0.0.4
Loading...
Searching...
No Matches
qugar::UnfittedDomain< dim > Class Template Reference

#include <unfitted_domain.hpp>

Inheritance diagram for qugar::UnfittedDomain< dim >:
[legend]

Public Types

using FacetsStatus = std::array<ImmersedFacetStatus, static_cast<std::size_t>(dim) * 2>
 
using GridPtr = std::shared_ptr<const CartGridTP<dim>>
 

Public Member Functions

virtual ~UnfittedDomain ()=default
 
GridPtr get_grid () const
 
const std::vector< int > & get_full_cells () const
 
const std::vector< int > & get_empty_cells () const
 
const std::vector< int > & get_cut_cells () const
 
FacetsStatus get_cell_facets_status (int cell_id) const
 
void get_empty_facets (std::vector< int > &cell_ids, std::vector< int > &local_facets_ids) const
 
void get_full_facets (std::vector< int > &cell_ids, std::vector< int > &local_facets_ids) const
 
void get_full_unfitted_facets (std::vector< int > &cell_ids, std::vector< int > &local_facets_ids) const
 
void get_cut_facets (std::vector< int > &cell_ids, std::vector< int > &local_facets_ids) const
 
bool is_full_cell (int cell_id) const
 
bool is_empty_cell (int cell_id) const
 
bool is_cut_cell (int cell_id) const
 
bool is_full_facet (int cell_id, int local_facet_id) const
 
bool is_empty_facet (int cell_id, int local_facet_id) const
 
bool is_cut_facet (int cell_id, int local_facet_id) const
 
bool is_full_unfitted_facet (int cell_id, int local_facet_id) const
 
bool has_unfitted_boundary (int cell_id, int local_facet_id) const
 
bool has_unfitted_boundary_on_domain_boundary (int cell_id, int local_facet_id) const
 
bool has_external_boundary (int cell_id, int local_facet_id) const
 

Protected Member Functions

 UnfittedDomain (const GridPtr &grid)
 
void sort ()
 

Protected Attributes

GridPtr grid_
 
std::vector< int > full_cells_
 
std::vector< int > empty_cells_
 
std::vector< int > cut_cells_
 
std::unordered_map< int, FacetsStatusfacets_status_
 

Member Typedef Documentation

◆ FacetsStatus

template<int dim>
using qugar::UnfittedDomain< dim >::FacetsStatus = std::array<ImmersedFacetStatus, static_cast<std::size_t>(dim) * 2>

◆ GridPtr

template<int dim>
using qugar::UnfittedDomain< dim >::GridPtr = std::shared_ptr<const CartGridTP<dim>>

Constructor & Destructor Documentation

◆ UnfittedDomain()

template<int dim>
qugar::UnfittedDomain< dim >::UnfittedDomain ( const GridPtr & grid)
explicitprotected

◆ ~UnfittedDomain()

template<int dim>
virtual qugar::UnfittedDomain< dim >::~UnfittedDomain ( )
virtualdefault

Member Function Documentation

◆ get_cell_facets_status()

template<int dim>
FacetsStatus qugar::UnfittedDomain< dim >::get_cell_facets_status ( int cell_id) const
nodiscard

◆ get_cut_cells()

template<int dim>
const std::vector< int > & qugar::UnfittedDomain< dim >::get_cut_cells ( ) const
nodiscard
Here is the caller graph for this function:

◆ get_cut_facets()

template<int dim>
void qugar::UnfittedDomain< dim >::get_cut_facets ( std::vector< int > & cell_ids,
std::vector< int > & local_facets_ids ) const

◆ get_empty_cells()

template<int dim>
const std::vector< int > & qugar::UnfittedDomain< dim >::get_empty_cells ( ) const
nodiscard

◆ get_empty_facets()

template<int dim>
void qugar::UnfittedDomain< dim >::get_empty_facets ( std::vector< int > & cell_ids,
std::vector< int > & local_facets_ids ) const

◆ get_full_cells()

template<int dim>
const std::vector< int > & qugar::UnfittedDomain< dim >::get_full_cells ( ) const
nodiscard

◆ get_full_facets()

template<int dim>
void qugar::UnfittedDomain< dim >::get_full_facets ( std::vector< int > & cell_ids,
std::vector< int > & local_facets_ids ) const

◆ get_full_unfitted_facets()

template<int dim>
void qugar::UnfittedDomain< dim >::get_full_unfitted_facets ( std::vector< int > & cell_ids,
std::vector< int > & local_facets_ids ) const

◆ get_grid()

template<int dim>
GridPtr qugar::UnfittedDomain< dim >::get_grid ( ) const
nodiscard

◆ has_external_boundary()

template<int dim>
bool qugar::UnfittedDomain< dim >::has_external_boundary ( int cell_id,
int local_facet_id ) const
nodiscard

◆ has_unfitted_boundary()

template<int dim>
bool qugar::UnfittedDomain< dim >::has_unfitted_boundary ( int cell_id,
int local_facet_id ) const
nodiscard

◆ has_unfitted_boundary_on_domain_boundary()

template<int dim>
bool qugar::UnfittedDomain< dim >::has_unfitted_boundary_on_domain_boundary ( int cell_id,
int local_facet_id ) const
nodiscard

◆ is_cut_cell()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_cut_cell ( int cell_id) const
nodiscard

◆ is_cut_facet()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_cut_facet ( int cell_id,
int local_facet_id ) const
nodiscard

◆ is_empty_cell()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_empty_cell ( int cell_id) const
nodiscard

◆ is_empty_facet()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_empty_facet ( int cell_id,
int local_facet_id ) const
nodiscard

◆ is_full_cell()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_full_cell ( int cell_id) const
nodiscard

◆ is_full_facet()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_full_facet ( int cell_id,
int local_facet_id ) const
nodiscard

◆ is_full_unfitted_facet()

template<int dim>
bool qugar::UnfittedDomain< dim >::is_full_unfitted_facet ( int cell_id,
int local_facet_id ) const
nodiscard

◆ sort()

template<int dim>
void qugar::UnfittedDomain< dim >::sort ( )
protected

Member Data Documentation

◆ cut_cells_

template<int dim>
std::vector<int> qugar::UnfittedDomain< dim >::cut_cells_
protected

◆ empty_cells_

template<int dim>
std::vector<int> qugar::UnfittedDomain< dim >::empty_cells_
protected

◆ facets_status_

template<int dim>
std::unordered_map<int, FacetsStatus> qugar::UnfittedDomain< dim >::facets_status_
protected

◆ full_cells_

template<int dim>
std::vector<int> qugar::UnfittedDomain< dim >::full_cells_
protected

◆ grid_

template<int dim>
GridPtr qugar::UnfittedDomain< dim >::grid_
protected

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