Package pulse.problem.schemes.rte.dom
Class HermiteInterpolator
- java.lang.Object
-
- pulse.problem.schemes.rte.dom.HermiteInterpolator
-
- All Implemented Interfaces:
Serializable
public class HermiteInterpolator extends Object implements Serializable
A globally C1 Hermite interpolator used to interpolate intensities and derivatives in discrete ordinates method when solving the radiative transfer equation with a Runge-Kutta solver (either implicit or explicit).- Author:
- Vadim Zborovskii, Artem Lunev
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HermiteInterpolator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()doublederivative(double x)Calculates the derivative of the interpolant atxdoubleinterpolate(double x)Interpolates the function atxdouble[][][]interpolateOnExternalGrid(int externalGridSize, AdaptiveIntegrator integrator)Interpolates intensities and their derivatives w.r.t.StringtoString()
-
-
-
Method Detail
-
clear
public void clear()
-
interpolate
public double interpolate(double x)
Interpolates the function atx- Parameters:
x- the value within the specified bounds- Returns:
- the interpolated value
-
derivative
public double derivative(double x)
Calculates the derivative of the interpolant atx- Parameters:
x- the value within the specified bounds- Returns:
- the derivative of the interpolant
-
interpolateOnExternalGrid
public double[][][] interpolateOnExternalGrid(int externalGridSize, AdaptiveIntegrator integrator)Interpolates intensities and their derivatives w.r.t. tau on EXTERNAL grid points of the heat problem solver based on the derivatives on INTERNAL grid points of DOM solver.- Parameters:
externalGridSize- the number of points in the external gridintegrator- the adaptive integrator- Returns:
- a three-dimensional array containing the interpolated intensities and derivatives
-
-