Gyselalib++
 
Loading...
Searching...
No Matches
ConstantExtrapolationRuleOnion< PatchLocator > Struct Template Reference

Define constant extrapolation rule for onion shape geometries. More...

Public Member Functions

 ConstantExtrapolationRuleOnion (Coord< R_min > const &r_min, Coord< R_max > const &r_max)
 Instantiate a ConstantExtrapolationRuleOnion.
 
template<class... Dim, template< typename P > typename SplinesOnPatch, class... Patches>
KOKKOS_FUNCTION double operator() (Coord< Dim... > const &coord_extrap, MultipatchField< SplinesOnPatch, Patches... > const &patches_splines, int const out_of_bounds_idx) const
 Evaluate at a given outside coordinate.
 

Detailed Description

template<class PatchLocator>
struct ConstantExtrapolationRuleOnion< PatchLocator >

Define constant extrapolation rule for onion shape geometries.

Struct usefull for the MultipatchSplineEvaluator types.

Template Parameters
PatchLocatorA patch locator specialised for onion shape geometries.

Constructor & Destructor Documentation

◆ ConstantExtrapolationRuleOnion()

template<class PatchLocator >
ConstantExtrapolationRuleOnion< PatchLocator >::ConstantExtrapolationRuleOnion ( Coord< R_min > const &  r_min,
Coord< R_max > const &  r_max 
)
inlineexplicit

Instantiate a ConstantExtrapolationRuleOnion.

The R1 and R2 templates are needed for GPU.

Template Parameters
R1Continuous dimension of the minimum radial coordinate of the domain.
R2Continuous dimension of the maximun radial coordinate of the domain.
Parameters
[in]r_minMinimum radial coordinate of the domain.
[in]r_maxMaximum radial coordinate of the domain.

Member Function Documentation

◆ operator()()

template<class PatchLocator >
template<class... Dim, template< typename P > typename SplinesOnPatch, class... Patches>
KOKKOS_FUNCTION double ConstantExtrapolationRuleOnion< PatchLocator >::operator() ( Coord< Dim... > const &  coord_extrap,
MultipatchField< SplinesOnPatch, Patches... > const &  patches_splines,
int const  out_of_bounds_idx 
) const
inline

Evaluate at a given outside coordinate.

Template Parameters
DimContinuous dimensions where the given coordinate is defined.
SplinesOnPatchField of spline coefficients template on the Patch.
PatchesPatch types.
Parameters
[in]coord_extrapCoordinate where we want to evaluate.
[in]patches_splinesSplines stored in a MultipatchType.
[in]out_of_bounds_idxIndex of the localisation of the coordinate. It is supposed to be negative to be considered as outside of the domain.
Returns
A double with the evaluation outside of the domain.

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