Class DiscreteQuantities

  • All Implemented Interfaces:
    Serializable

    public class DiscreteQuantities
    extends Object
    implements Serializable
    Defines the main quantities calculated within the discrete ordinates method. This includes the various intensity and flux arrays used internally by the integrators.
    See Also:
    Serialized Form
    • Constructor Detail

      • DiscreteQuantities

        public DiscreteQuantities​(int gridDensity,
                                  int ordinates)
        Constructs a set of quantities based on the specified spatial and angular discretisation.
        Parameters:
        gridDensity - the DOM grid density
        ordinates - the number of angular nodes
    • Method Detail

      • init

        protected final void init​(int gridDensity,
                                  int ordinates)
      • store

        protected void store()
      • getIntensities

        public final double[][] getIntensities()
      • getDerivatives

        public final double[][] getDerivatives()
      • getQLast

        protected final double getQLast​(int i)
      • setQLast

        protected final void setQLast​(int i,
                                      double q)
      • getDerivative

        public final double getDerivative​(int i,
                                          int j)
      • setDerivative

        public final void setDerivative​(int i,
                                        int j,
                                        double f)
      • getStoredIntensity

        public final double getStoredIntensity​(int i,
                                               int j)
      • getStoredDerivative

        public final double getStoredDerivative​(int i,
                                                int j)
      • setStoredDerivative

        public final void setStoredDerivative​(int i,
                                              int j,
                                              double f)
      • getIntensity

        public final double getIntensity​(int i,
                                         int j)
      • setIntensity

        public final void setIntensity​(int i,
                                       int j,
                                       double value)