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

Class PnVolumeEnergy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf


    public class PnVolumeEnergy
    extends PnEnergy
    Volume energy is the difference of the oriented volume of a surface with a given constant. The volume of a surface is defined as the volume of the cone of the surface over its origin. This class includes gradient and hessian computations. Domain geometry may be missing.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    04.05.02, 1.10 revised (kp)
    04.05.02, 1.00 created (kp).
    • Constructor Detail

      • PnVolumeEnergy

        public PnVolumeEnergy()
    • Method Detail

      • init

        public void init()
        Description copied from class: PsObject
        If instance has missing name then assign default name 'Object_NUMBER' where number is the total number of already created instances.
        Overrides:
        init in class PnEnergy
      • initSurface

        public void initSurface(PgElementSet domain,
                                PgElementSet surface)
        Method called from energyMinimizer.minimizeStep() to update the stiffness matrix after conjugate gradient method has returned. E.g. PnDiriEnergy should copy surface into domain if in iteration mode i.e. if dimension of domain and surface are equal.
        Overrides:
        initSurface in class PnEnergy
        Version:
        04.05.02, 1.10 revised (kp)
        04.05.02, 1.00 created (kp).
      • setSurface

        public boolean setSurface(PgElementSet domain,
                                  PgElementSet surface)
        Set domain and surface, and initialize energy structure. Method is called from outside whenever domain or surface has been updated.
        Overrides:
        setSurface in class PnEnergy
        Parameters:
        domain - additional geometry used to specify maps
        surface - geometry which is usually optimized
      • eval

        public double eval(PdVector coord)
        Compute area energy of a coord vector using newly initialized stiffness matrix. Method uses the array m_store for intermediate storage and modifies its entries.
        Overrides:
        eval in class PnEnergy
        Parameters:
        coord - Coordinate vector with list of doubles
        Returns:
        double Energy of coordinate vector
        See Also:
        PnEnergy
        Author:
        Konrad Polthier
        Version:
        04.05.02, 1.10 revised (kp)
        04.05.02, 1.00 created (kp).
      • evalGradient

        public PdVector evalGradient(PdVector coord,
                                     PdVector gradient)
        Evaluate volume gradient of a coord vector.
        Overrides:
        evalGradient in class PnEnergy
        Parameters:
        coord - Coordinate vector with list of doubles
        gradient - Gradient vector to be modified
        See Also:
        PnEnergy
        Author:
        Konrad Polthier
        Version:
        04.05.02, 1.10 revised (kp)
        04.05.02, 1.00 created (kp).
"JavaView? v5.03.003"

"

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

You see the box below because you did not login.