https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
SBMUtils.h File Reference

Go to the source code of this file.

Classes

struct  SBMUtils::ElementActivity
 Measured activity state of a (possibly partial) element, used to classify it. More...
 
struct  SBMUtils::ClassificationSubdomains
 The subdomain IDs a (possibly partial) element can be labeled with. More...
 

Namespaces

namespace  libMesh
 The following methods are specializations for using the Parallel::packed_range_* routines for a vector of Rays.
 
namespace  SBMUtils
 

Functions

bool SBMUtils::checkWatertightnessFromRawElems (const std::vector< const Elem * > &bd_elements)
 
Real SBMUtils::activeElementFraction (const Elem &elem, Order qrule_order, const std::function< bool(const libMesh::Point &)> &is_active)
 Compute the fraction of an element's quadrature-weighted measure satisfying a predicate.
 
bool SBMUtils::isInactive (Real active_fraction, Real lambda)
 Return whether a partial element is inactive, i.e.
 
SubdomainID SBMUtils::classifyPartialElement (const ElementActivity &activity, const ClassificationSubdomains &subdomains, bool mark_intercepted, Real lambda)
 Classify a (possibly partial) element into an inside/outside/intercepted subdomain.
 
std::vector< const Function * > SBMUtils::buildDistanceFunctions (const std::vector< FunctionName > &function_names, const FunctionInterface &function_provider)
 Build a list of distance functions based on names specified in input.
 
RealVectorValue SBMUtils::distanceVectorFromFunction (const Function *func, const libMesh::Point &pt, Real t)
 Compute the distance vector induced by a distance function.
 
RealVectorValue SBMUtils::trueNormalFromFunction (const Function *func, const libMesh::Point &pt, Real t)
 Compute the true boundary surface normal at the point on the boundary closest to pt.
 
RealVectorValue SBMUtils::closestDistanceVector (const std::vector< const Function * > &funcs, const libMesh::Point &pt, Real t)
 Scan all distance functions and return the closest distance vector.
 
RealVectorValue SBMUtils::closestTrueNormalVector (const std::vector< const Function * > &funcs, const libMesh::Point &pt, Real t)
 Scan all distance functions and return the corresponding normal vector.
 
Real SBMUtils::unionSignedDistance (const std::vector< const Function * > &funcs, Real t, const Point &p)
 Computes the union signed distance by taking the minimum of all signed distance functions.