Documentation of 'jvx.numeric.PnGeodesicRK' Java class
PnGeodesicRK ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.numeric

Class PnGeodesicRK

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf
    Direct Known Subclasses:
    PnElementRK, PnTranslationRK, PnVertexRK, PnVertexRKIgnoreDirection


    public abstract class PnGeodesicRK
    extends PsObject
    Discrete Runge-Kutta solver on triangular element sets. Element set must be triangulated.
    See Also:
    PnElementRK, PnVertexRK, PnVertexRKIgnoreDirection, PgElementSet.triangulate(jv.geom.PgElementSet), Serialized Form
    Author:
    Eike Preuß
    Version:
    01.03.06, 1.40 revised (ah) Use PnStraightestGeodesic.
    20.02.03, 1.30 revised (ep) New method eval that returns the evaluation result in new allocated baryvector.
    22.01.03, 1.20 revised (ep) You can invert the direction of integration with get/setInvertDirection.
    15.01.03, 1.10 revised (ep) Changes with respect to new RK class that ignores the sign (direction) of vector fields.
    11.07.01, 1.05 revised (ep) Speed optimization in the whole thing.
    20.02.00, 1.04 revised (ep) removed "small velocity bug", added StepLength 28.12.99, 1.03 revised (ep) added fast-mode (euler-mode)
    27.12.99, 1.02 revised (ep) corrected handling of |vector| == 0
    21.11.99, 1.01 revised (ep) split into PnGeodesicRK, PnVertexRK, PnElementRK
    • Constructor Detail

    • Method Detail

      • setGeometry

        public void setGeometry(PgElementSet geom)
        Sets underlying geometry.
        Parameters:
        geom - new underlying geometry
      • setFirstOrder

        public void setFirstOrder(boolean flag)
        Sets integration method to euler if flag is true, else to 4th-order Runge-Kutta.
        Parameters:
        flag - true: euler; false: 4th-order RK
      • setFourthOrder

        public void setFourthOrder(boolean flag)
        Sets integration method to 4th-order Runge-Kutta if flag is true, else to euler.
        Parameters:
        flag - true: 4th-order RK; false: euler
      • solve

        public void solve(PdBary initPoint,
                          double h,
                          int numIterations,
                          PdBary outPoint)
        Solves for outPoint at initPoint.
        Parameters:
        initPoint - input
        h - stepsize
        numIterations - number of iterations
        outPoint - output
        Version:
        01.03.06, 1.00 created (ah)
      • solve

        public void solve(PdBary initPoint,
                          double h,
                          PdBary outPoint)
        Solves for outPoint at initPoint.
        Parameters:
        initPoint - input
        h - stepsize
        outPoint - output
        Version:
        01.03.06, 1.00 created (ah)
      • prepareSolve

        public boolean prepareSolve(PgPolygonOnElementSet outpoly,
                                    int iniElem,
                                    PdBary iniPoint,
                                    double h)
        Unless solve is used, this method has to be called before integration. It initializes all internal variables.
        Parameters:
        outpoly - output polygon
        iniElem - initial element index
        iniPoint - initial barycentric coordinates
        h - stepsize
        See Also:
        solve(PdBary, double, int, PdBary)
      • getStepLength

        public double getStepLength()
        Returns Euclidean length of last Runge-Kutta step.
      • setInvertDirection

        public void setInvertDirection(boolean flag)
        If set to 'true', the negative vector field is used. MUST BE SUPPORTED BY EVAL-METHOD OF SUBCLASSES.
        Since:
        JavaView 2.49.004
      • getInvertDirection

        public boolean getInvertDirection()
        Since:
        JavaView 2.49.004
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.