Gyselalib++
 
Loading...
Searching...
No Matches
PoissonLikeRHSFunction< RadialExtrapolationRule > Class Template Reference

Type of right-hand side (rhs) function of the Poisson equation. More...

Public Types

using evaluator_type = ddc::SplineEvaluator2D< Kokkos::DefaultHostExecutionSpace, Kokkos::HostSpace, BSplinesR, BSplinesTheta, GridR, GridTheta, RadialExtrapolationRule, RadialExtrapolationRule, ddc::PeriodicExtrapolationRule< Theta >, ddc::PeriodicExtrapolationRule< Theta >, GridR, GridTheta >
 The type of the 2D Spline Evaluator used by this class.
 

Public Member Functions

 PoissonLikeRHSFunction (host_t< ConstSpline2D > coefs, evaluator_type const &evaluator)
 Instantiate a PoissonLikeRHSFunction.
 
double operator() (CoordRTheta const &coord_rp) const
 Get the value of the function at a given coordinate.
 

Detailed Description

template<class RadialExtrapolationRule>
class PoissonLikeRHSFunction< RadialExtrapolationRule >

Type of right-hand side (rhs) function of the Poisson equation.

Template Parameters
RadialExtrapolationRuleThe extrapolation rule applied at the outer radial bound.

Constructor & Destructor Documentation

◆ PoissonLikeRHSFunction()

template<class RadialExtrapolationRule >
PoissonLikeRHSFunction< RadialExtrapolationRule >::PoissonLikeRHSFunction ( host_t< ConstSpline2D >  coefs,
evaluator_type const &  evaluator 
)
inline

Instantiate a PoissonLikeRHSFunction.

Parameters
[in]coefsThe bsplines coefficients of the right-hand side function.
[in]evaluatorEvaluator on bsplines.

Member Function Documentation

◆ operator()()

template<class RadialExtrapolationRule >
double PoissonLikeRHSFunction< RadialExtrapolationRule >::operator() ( CoordRTheta const &  coord_rp) const
inline

Get the value of the function at a given coordinate.

Parameters
[in]coord_rpPolar coordinate where we want to evaluate the rhs function.
Returns
A double with the value of the rhs at the given coordinate.

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