30#ifndef PECLET_CORE_VOF_PLIC_REGIONS_HPP
31#define PECLET_CORE_VOF_PLIC_REGIONS_HPP
33#include <Kokkos_Core.hpp>
41KOKKOS_INLINE_FUNCTION
double plicFaceFraction(
const double m[3],
double alpha,
int axis,
42 double xiP,
double q0,
double b0) {
43 const int q = (axis == 0) ? 1 : 0;
44 const int b = (axis == 2) ? 1 : 2;
45 return plicVolume(m[q], m[b], 0.0, alpha - m[axis] * xiP - m[q] * q0 - m[b] * b0);
52 double xiP,
int hatAxis,
double qc,
double b0) {
53 const int b = 3 - planeAxis - hatAxis;
54 const double mq = m[hatAxis];
55 return plicVolume(mq, mq, m[b], alpha - m[planeAxis] * xiP - mq * (qc - 1.0) - m[b] * b0);
double plicHatBoxFraction(const double m[3], double alpha, int planeAxis, double xiP, int hatAxis, double qc, double b0)
Colour-1 fraction of the hat × box shear-link kernel in the plane x_planeAxis = xiP: a hat of half-wi...
double plicFaceFraction(const double m[3], double alpha, int axis, double xiP, double q0, double b0)
Colour-1 fraction of the unit square in the plane x_axis = xiP spanning x_q ∈ [q0,...
double plicMidsectionFraction(const double m[3], double alpha, int c)
Colour-1 fraction of the cell's own c-midsection: the unit square x_c = 1/2, x_a, x_b ∈ [0,...
double plicVolume(double mx, double my, double mz, double alpha)
Volume fraction of the unit cell [0,1]^3 lying on the fluid side m .
core — PLIC (piecewise-linear interface construction) geometric toolbox: the analytic plane<->volume ...