core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
quadrature.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::geom
 
namespace  peclet::core::geom::quad_detail
 Gauss-Legendre nodes/weights on [0,1] for n = 1..8.
 

Functions

template<class Real >
PECLET_HD void peclet::core::geom::quad_detail::gaussLegendre01 (int n, int i, Real &x, Real &w)
 
PECLET_HD int peclet::core::geom::quad_detail::gaussCount (int n)
 
template<class Real , class Phi >
PECLET_HD Real peclet::core::geom::quad_detail::positiveLength (const Phi &phi, Vec3< Real > p0, Vec3< Real > d, int nseg)
 Length of {phi > 0} along the segment p0 + s*d, s in [0,1], by bracketed bisection.
 
template<class Real , class Phi >
PECLET_HD Real peclet::core::geom::faceAperture (const Phi &phi, Vec3< Real > origin, int axis, Real hu, Real hv, int order=4, int nseg=8, bool breakpoints=true)
 Fluid fraction ({phi > 0}) of the axis-aligned FACE with corner origin, normal axis, and side lengths hu, hv along the two axes following axis cyclically.
 
template<class Real , class Phi >
PECLET_HD Real peclet::core::geom::cellVolumeFraction (const Phi &phi, Vec3< Real > origin, Vec3< Real > h, int order=4, int nseg=8)
 Fluid fraction ({phi > 0}) of the axis-aligned BOX [origin, origin+h].