Class ExplicitNonlinearSolver

    • Method Detail

      • prepare

        public void prepare​(Problem problem)
                     throws SolverException
        Description copied from class: DifferenceScheme

        Contains preparatory steps to ensure smooth running of the solver.This includes creating a DiscretePulseobject and adjusting the grid of this scheme to match the DiscretePulsecreated for this problem Finally, a heating curve is cleared from the previously calculated values.

        All subclasses of DifferenceScheme should override and explicitly call this superclass method where appropriate.

        Overrides:
        prepare in class DifferenceScheme
        Parameters:
        problem - the heat problem to be solved
        Throws:
        SolverException
      • domain

        public Class<? extends Problem>[] domain()
        Description copied from class: DifferenceScheme
        Retrieves all problem statements that can be solved with this implementation of the difference scheme.
        Specified by:
        domain in class DifferenceScheme
        Returns:
        an array containing subclasses of the Problem class which can be used as input for this difference scheme.
      • setNonlinearPrecision

        public void setNonlinearPrecision​(NumericProperty nonlinearPrecision)
      • listedTypes

        public List<Property> listedTypes()
        Description copied from class: PropertyHolder

        By default, collects a list of default properties corresponding to types defined by listedKeywords(). However, this method is overridable to include non-numeric properties.

        Overrides:
        listedTypes in class PropertyHolder
        Returns:
        a list of Property instances, which have been explicitly marked as a listed parameter for this PropertyHolder.
      • set

        public void set​(NumericPropertyKeyword type,
                        NumericProperty property)
        Description copied from class: Accessible

        An abstract method, which must be overriden to gain access over setting the values of all relevant (selected by the programmer) NumericProperties in subclasses of Accessible. Typically this involves a switch statement that goes through the different options for the type and invokes different set(...) methods to update the matching NumericProperty with property.

        Overrides:
        set in class DifferenceScheme
        Parameters:
        type - the type, which must be equal by definition to property.getType().
        property - the property, which contains new information.