peclet.voro 1.0.0
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
Namespaces | Functions
interface.hpp File Reference

Multiphase interface-tension energy over the published view (Phase 3). More...

#include <Kokkos_Core.hpp>
#include "peclet/core/common/view.hpp"
#include "peclet/voro/tessellation_view.hpp"
Include dependency graph for interface.hpp:

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::voro
 
namespace  peclet::voro::physics
 

Functions

template<class Real >
Real peclet::voro::physics::interfaceEnergy (const TessellationView< Real > &view, const Kokkos::View< int *, peclet::core::MemSpace > &types, const Kokkos::View< Real *, peclet::core::MemSpace > &tension, int nTypes)
 Total interfacial energy Σ γ(t_i,t_j)·area over phase-boundary facets.
 

Detailed Description

Multiphase interface-tension energy over the published view (Phase 3).

Faithful port of IntfDyn::getIntfEnergy, view-only: each cell of phase t_i sums, over its facets to a LOWER-phase neighbour (so each interface is counted once), the surface tension γ(t_i, t_j) times the facet area. types() is per cell; the tension table is row-major nT×nT.

The interface FORCE (gradFacetAreaSq) needs the per-cell half-edge mesh on the device and is ported together with the planned methodological improvement.