Package pulse.problem.schemes.rte
Class FluxesAndExplicitDerivatives
- java.lang.Object
-
- pulse.problem.schemes.rte.Fluxes
-
- pulse.problem.schemes.rte.FluxesAndExplicitDerivatives
-
- All Implemented Interfaces:
Serializable,DerivativeCalculator
public class FluxesAndExplicitDerivatives extends Fluxes
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FluxesAndExplicitDerivatives(NumericProperty gridDensity, NumericProperty opticalThickness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublefluxDerivative(int index)Calculates the flux derivative at theuIndexgrid point.doublefluxDerivativeFront()Calculates the flux derivative at the front surface.doublefluxDerivativeRear()Calculates the flux derivative at the rear surface.doublegetFluxDerivative(int i)doublegetStoredFluxDerivative(int index)voidinit()doublemeanFluxDerivative(int uIndex)Calculates the average value of the flux derivatives at theuIndexgrid point on the current and previous timesteps.doublemeanFluxDerivativeFront()Calculates the average value of the flux derivatives at the first grid point on the current and previous timesteps.doublemeanFluxDerivativeRear()Calculates the average value of the flux derivatives at the last grid point on the current and previous timesteps.voidsetFluxDerivative(int i, double f)voidstore()Stores all currently calculated fluxes in a separate array.-
Methods inherited from class pulse.problem.schemes.rte.Fluxes
checkArrays, getDensity, getFlux, getOpticalGridStep, getOpticalThickness, getStoredFlux, setDensity, setFlux, setOpticalThickness
-
-
-
-
Constructor Detail
-
FluxesAndExplicitDerivatives
public FluxesAndExplicitDerivatives(NumericProperty gridDensity, NumericProperty opticalThickness)
-
-
Method Detail
-
fluxDerivative
public double fluxDerivative(int index)
Description copied from interface:DerivativeCalculatorCalculates the flux derivative at theuIndexgrid point.- Parameters:
index- the grid point index- Returns:
- the value of the flux derivative at
uIndex
-
fluxDerivativeRear
public double fluxDerivativeRear()
Description copied from interface:DerivativeCalculatorCalculates the flux derivative at the rear surface.- Returns:
- the value of the flux derivative at the rear surface
-
fluxDerivativeFront
public double fluxDerivativeFront()
Description copied from interface:DerivativeCalculatorCalculates the flux derivative at the front surface.- Returns:
- the value of the flux derivative at the front surface
-
store
public void store()
Description copied from class:FluxesStores all currently calculated fluxes in a separate array.
-
meanFluxDerivative
public double meanFluxDerivative(int uIndex)
Description copied from interface:DerivativeCalculatorCalculates the average value of the flux derivatives at theuIndexgrid point on the current and previous timesteps.- Parameters:
uIndex- the grid point index- Returns:
- the time-averaged value of the flux derivative at
uIndex
-
meanFluxDerivativeFront
public double meanFluxDerivativeFront()
Description copied from interface:DerivativeCalculatorCalculates the average value of the flux derivatives at the first grid point on the current and previous timesteps.- Returns:
- the time-averaged value of the flux derivative at the front surface
-
meanFluxDerivativeRear
public double meanFluxDerivativeRear()
Description copied from interface:DerivativeCalculatorCalculates the average value of the flux derivatives at the last grid point on the current and previous timesteps.- Returns:
- the time-averaged value of the flux derivative at the rear surface
-
getStoredFluxDerivative
public double getStoredFluxDerivative(int index)
-
getFluxDerivative
public double getFluxDerivative(int i)
-
setFluxDerivative
public void setFluxDerivative(int i, double f)
-
-