public class PnHodgeW extends PnDiriEnergy
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
Constructor and Description |
---|
PnHodgeW() |
Modifier and Type | Method and Description |
---|---|
double |
eval(PdVector coord)
Compute energy of a coord vector using newly initialized stiffness matrix.
|
PdVector |
evalGradient(PdVector coord,
PdVector gradient)
Evaluate Area gradient of a coord vector using the stiffness matrix of a PnArea instance.
|
PdVector[][] |
getJGradFi() |
void |
init()
If instance has missing name then assign default name 'Object_NUMBER' where
number is the total number of already created instances.
|
void |
initSurface(PgElementSet domain,
PgElementSet surface)
Method called from energyMinimizer.minimizeStep() to update the stiffness matrix
after conjugate gradient method has returned.
|
boolean |
setSurface(PgElementSet domain,
PgElementSet surface)
Set domain and surface, and initialize energy structure.
|
void |
setVectorField(PgVectorField vf)
Set vector field.
|
evalHessian
computeNormalizedHessian, getConstrain, getNumOfVariables, getSpectrum, getZeroGradientAtBounds, isEnabledConstrainMatrix, isUseConstrainMatrix, setConstrain, setEnabledConstrainMatrix, setUseConstrainMatrix, setZeroGradientAtBounds, testEigenvalues
enableEvaluation, isEvaluable
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, update, updatePanels
public void init()
PsObject
init
in class PnDiriEnergy
public void initSurface(PgElementSet domain, PgElementSet surface)
initSurface
in class PnDiriEnergy
public boolean setSurface(PgElementSet domain, PgElementSet surface)
setSurface
in class PnDiriEnergy
domain
- additional geometry used to specify mapssurface
- geometry which is usually optimizedpublic void setVectorField(PgVectorField vf)
public double eval(PdVector coord)
public PdVector evalGradient(PdVector coord, PdVector gradient)
evalGradient
in class PnEnergy
coord
- Coordinate vector with list of doublesgradient
- Gradient vector to be modifiedPnEnergy
public PdVector[][] getJGradFi()
"