Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shammodels::gsph::GSPHUtilities< Tvec, SPHKernel > Class Template Reference

GSPH-specific utilities for ghost particle handling. More...

#include <shammodels/gsph/include/shammodels/gsph/modules/GSPHUtilities.hpp>

+ Collaboration diagram for shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >:

Public Types

using Tscal = shambase::VecComponent< Tvec >
 
using GhostHndl = gsph::GSPHGhostHandler< Tvec >
 
using InterfBuildCache = shambase::DistributedDataShared< typename GhostHndl::InterfaceIdTable >
 

Public Member Functions

 GSPHUtilities (PatchScheduler &sched)
 
InterfBuildCache build_interf_cache (GhostHndl &interf_handle, SerialPatchTree< Tvec > &sptree, Tscal h_evol_max)
 Build interface cache for ghost particle communication.
 

Public Attributes

PatchSchedulersched
 

Static Public Attributes

static constexpr Tscal Rkern = SPHKernel::Rkern
 

Detailed Description

template<class Tvec, class SPHKernel>
class shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >

GSPH-specific utilities for ghost particle handling.

This class provides utility functions for GSPH that use the centralized field name constants from FieldNames.hpp.

Template Parameters
TvecVector type (e.g., f64_3)
SPHKernelKernel type (e.g., M4)

Definition at line 38 of file GSPHUtilities.hpp.

Member Typedef Documentation

◆ GhostHndl

template<class Tvec , class SPHKernel >
using shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::GhostHndl = gsph::GSPHGhostHandler<Tvec>

Definition at line 44 of file GSPHUtilities.hpp.

◆ InterfBuildCache

template<class Tvec , class SPHKernel >
using shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::InterfBuildCache = shambase::DistributedDataShared<typename GhostHndl::InterfaceIdTable>

Definition at line 45 of file GSPHUtilities.hpp.

◆ Tscal

template<class Tvec , class SPHKernel >
using shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::Tscal = shambase::VecComponent<Tvec>

Definition at line 40 of file GSPHUtilities.hpp.

Constructor & Destructor Documentation

◆ GSPHUtilities()

template<class Tvec , class SPHKernel >
shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::GSPHUtilities ( PatchScheduler sched)
inline

Definition at line 50 of file GSPHUtilities.hpp.

Member Function Documentation

◆ build_interf_cache()

template<class Tvec , class SPHKernel >
InterfBuildCache shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::build_interf_cache ( GhostHndl interf_handle,
SerialPatchTree< Tvec > &  sptree,
Tscal  h_evol_max 
)
inline

Build interface cache for ghost particle communication.

Uses the field names from FieldNames.hpp.

Parameters
interf_handleGhost handler
sptreeSerial patch tree
h_evol_maxMaximum smoothing length evolution factor
Returns
InterfBuildCache Interface build cache

Definition at line 62 of file GSPHUtilities.hpp.

Member Data Documentation

◆ Rkern

template<class Tvec , class SPHKernel >
constexpr Tscal shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::Rkern = SPHKernel::Rkern
staticconstexpr

Definition at line 42 of file GSPHUtilities.hpp.

◆ sched

template<class Tvec , class SPHKernel >
PatchScheduler& shammodels::gsph::GSPHUtilities< Tvec, SPHKernel >::sched

Definition at line 48 of file GSPHUtilities.hpp.


The documentation for this class was generated from the following file: