QUGaR 0.0.4
Loading...
Searching...
No Matches
impl_utils.hpp File Reference

Declaration of utility functions for implicit geometries. More...

#include <qugar/domain_function.hpp>
#include <qugar/point.hpp>
#include <qugar/tolerance.hpp>
#include <qugar/types.hpp>
#include <qugar/vector.hpp>
#include <utility>
#include <vector>
Include dependency graph for impl_utils.hpp:

Go to the source code of this file.

Classes

struct  qugar::impl::RootsIntervals< dim >
 Struct for storing and managing computed roots and intervals of an implicit function. More...
 

Namespaces

namespace  qugar
 QUGaR's main namespace.
 
namespace  qugar::impl
 

Functions

template<int dim>
bool qugar::impl::on_levelset (const ImplicitFunc< dim > &phi, const Point< dim > &point, Tolerance tol=Tolerance())
 Checks if a point belongs to the levelset of an implicit function phi.
 
template<int dim>
int qugar::impl::get_facet_constant_dir (int local_facet_id)
 Gets the constant direction of the local facet.
 
template<int dim>
int qugar::impl::get_facet_side (int local_facet_id)
 Gets the side of the facet. Either 0 or 1.
 
template<int dim>
int qugar::impl::get_local_facet_id (int const_dir, int side)
 Get the local facet ID for a given const direction and side.
 
template<int dim>
Vector< int, dim - 1 > qugar::impl::get_edge_constant_dirs (int local_edge_id)
 Gets the constant directions of the local edge.
 
template<int dim>
Vector< int, dim - 1 > qugar::impl::get_edge_sides (int local_edge_id)
 Gets the sides of the edge. Either 0 or 1 along each constant direction.
 

Detailed Description

Declaration of utility functions for implicit geometries.

Author
Pablo Antolin (pablo.nosp@m..ant.nosp@m.olin@.nosp@m.epfl.nosp@m..ch)
Date
2025-01-21