core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
plic_regions.hpp
Go to the documentation of this file.
1
30#ifndef PECLET_CORE_VOF_PLIC_REGIONS_HPP
31#define PECLET_CORE_VOF_PLIC_REGIONS_HPP
32
33#include <Kokkos_Core.hpp>
34
36
37namespace peclet::core::vof {
38
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);
46}
47
51KOKKOS_INLINE_FUNCTION double plicHatBoxFraction(const double m[3], double alpha, int planeAxis,
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);
56}
57
60KOKKOS_INLINE_FUNCTION double plicMidsectionFraction(const double m[3], double alpha, int c) {
61 return plicFaceFraction(m, alpha, c, 0.5, 0.0, 0.0);
62}
63
64} // namespace peclet::core::vof
65
66#endif // PECLET_CORE_VOF_PLIC_REGIONS_HPP
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 .
Definition plic.hpp:221
core — PLIC (piecewise-linear interface construction) geometric toolbox: the analytic plane<->volume ...