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

Class PnAreaVolEnergy

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


    public class PnAreaVolEnergy
    extends PnDiriEnergy
    Dirichlet energy with volume term is used to minimize area under a volume constraint.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    04.09.02, 1.00 revised (kp)
    04.09.02, 1.00 created (kp)
    • Constructor Detail

      • PnAreaVolEnergy

        public PnAreaVolEnergy()
    • 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 PnDiriEnergy
      • 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 PnDiriEnergy
        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 the stiffness matrix of a PnArea instance. Method uses the array m_store of PnArea 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:
        PnAreaEnergy
        Author:
        Konrad Polthier
        Version:
        04.09.02, 1.00 revised (kp)
        04.09.02, 1.00 created (kp)
      • evalGradient

        public PdVector evalGradient(PdVector coord,
                                     PdVector gradient)
        Evaluate Area gradient of a coord vector using the stiffness matrix of a PnArea instance. Along boundary gradient is modified to fulfill any boundary constraints. Special feature for outside calls: If outside wants to evaluate the gradient without allocating gradient, then instead of gradient a null may be passed. In this case the gradient information is store in an internal variable which is returned as gradient. Handle with care and do not modify size returned gradient.

        If no special boundary constraints are set, then you may use setZeroGradientAtBounds(boolean) to set the gradient zero at the boundary (or free again).

        Overrides:
        evalGradient in class PnEnergy
        Parameters:
        coord - Coordinate vector with list of doubles
        gradient - Gradient vector to be modified, maybe null.
        See Also:
        PnAreaEnergy
        Author:
        Konrad Polthier
        Version:
        04.09.02, 1.00 revised (kp)
        04.09.02, 1.00 created (kp)
      • evalHessian

        public PdMatrix evalHessian(PdMatrix hessian)
        Compute full hessian of Diri energy of a coord vector using the stiffness matrix. If argument is null, then a new matrix of full size is created and returned. Size of argument is enlarged if necessary. Boundary and deleted vertices are not considered.
        Overrides:
        evalHessian in class PnDiriEnergy
        Parameters:
        hessian - Empty hessian of energy
        Returns:
        Hessian of energy
        Author:
        Konrad Polthier
        Version:
        04.09.02, 1.00 revised (kp)
        04.09.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.