45 Point
refract(
const Point & direction,
const Point & normal,
const Real r1,
const Real r2)
const;
unsigned int RayDataIndex
Type for the index into the data and aux data on a Ray.
Simplified RayKernel that refracts Rays when the phase changes (phase change denoted by a field varia...
virtual void onSegment() override
Called on each segment of a Ray.
const VariableGradient & _grad_field
The gradient of the field variable that notes the phase.
const Real _r1
The first index of refraction.
static InputParameters validParams()
Point refract(const Point &direction, const Point &normal, const Real r1, const Real r2) const
Computes the refracted direction using Snell's law.
const VariableValue & _field
The field variable that notes the phase.
const Real _r2
The second index of refraction.
const RayDataIndex _has_refracted_data_index
Index of the Ray data that notes if the Ray has refracted or not.
VariableValueTempl< false > VariableValue
VariableGradientTempl< false > VariableGradient