Package pulse.problem.schemes.rte
Class Fluxes
- java.lang.Object
-
- pulse.problem.schemes.rte.Fluxes
-
- All Implemented Interfaces:
Serializable,DerivativeCalculator
- Direct Known Subclasses:
FluxesAndExplicitDerivatives,FluxesAndImplicitDerivatives
public abstract class Fluxes extends Object implements DerivativeCalculator
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Fluxes(NumericProperty gridDensity, NumericProperty opticalThickness)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RTECalculationStatuscheckArrays()Checks whether all stored values are finite.intgetDensity()doublegetFlux(int i)Retrieves the currently calculated flux at theigrid pointdoublegetOpticalGridStep()doublegetOpticalThickness()doublegetStoredFlux(int i)Retrieves the previously calculated flux at theigrid point.voidinit()voidsetDensity(NumericProperty gridDensity)voidsetFlux(int i, double value)Sets the flux at theigrid pointvoidsetOpticalThickness(NumericProperty opticalThickness)voidstore()Stores all currently calculated fluxes in a separate array.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pulse.problem.schemes.rte.DerivativeCalculator
fluxDerivative, fluxDerivativeFront, fluxDerivativeRear, meanFluxDerivative, meanFluxDerivativeFront, meanFluxDerivativeRear
-
-
-
-
Constructor Detail
-
Fluxes
public Fluxes(NumericProperty gridDensity, NumericProperty opticalThickness)
-
-
Method Detail
-
store
public void store()
Stores all currently calculated fluxes in a separate array.
-
checkArrays
public RTECalculationStatus checkArrays()
Checks whether all stored values are finite. This is equivalent to summing all elements and checking whether the sum if finite.- Returns:
trueif the elements are finite.
-
getFlux
public double getFlux(int i)
Retrieves the currently calculated flux at theigrid point- Parameters:
i- the index of the grid point- Returns:
- the flux value at the specified grid point
-
setFlux
public void setFlux(int i, double value)Sets the flux at theigrid point- Parameters:
i- the index of the grid point
-
getStoredFlux
public double getStoredFlux(int i)
Retrieves the previously calculated flux at theigrid point.- Parameters:
i- the index of the grid point- Returns:
- the previous flux value at the specified grid point
- See Also:
store()
-
getOpticalGridStep
public double getOpticalGridStep()
-
getDensity
public int getDensity()
-
getOpticalThickness
public double getOpticalThickness()
-
setDensity
public final void setDensity(NumericProperty gridDensity)
-
init
public void init()
-
setOpticalThickness
public final void setOpticalThickness(NumericProperty opticalThickness)
-
-