JavaView® v2.00.008

jvx.numeric
Class PnElementRK

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jvx.numeric.PnGeodesicRK
              |
              +--jvx.numeric.PnElementRK
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public class PnElementRK
extends PnGeodesicRK

Discret Runge-Kutta method on ElementSets. Vector field is given at element centers. ElementSet must be triangulated.

See Also:
Serialized Form

Field Summary
protected  PdBaryDir[] m_vec
          Intrinsic vector field given at element centers [elementindex].
 
Fields inherited from class jvx.numeric.PnGeodesicRK
m_fast, m_geom, m_lastLength, m_outpoly
 
Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS
 
Constructor Summary
PnElementRK(PgElementSet geom)
           
 
Method Summary
 void eval(int elemInd, PdBary bary, PdBaryDir out)
          Evaluate vector field at given point.
 void setVectorField(PdBaryDir[] vec)
          Sets intrinsic vector field given at element centers.
 void setVectorField(PgVectorField vec)
          Set intrinsic vector field as projection of extrinsic vector field given at element centers.
 
Methods inherited from class jvx.numeric.PnGeodesicRK
getStepLength, getStepPolygon, nextStep, prepareSolve, rungeKutta, setFirstOrder, setFourthOrder, setGeometry, solve
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, update, updatePanels
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_vec

protected PdBaryDir[] m_vec
Intrinsic vector field given at element centers [elementindex].
Constructor Detail

PnElementRK

public PnElementRK(PgElementSet geom)
Parameters:
geom - underlying triangulation
Method Detail

setVectorField

public void setVectorField(PdBaryDir[] vec)
Sets intrinsic vector field given at element centers.
Parameters:
vec - array of intrinsic vectors that are interpreted to begin in the center of the element. The position of a vector in array vec equals the global element index of the element that contains the vector

setVectorField

public void setVectorField(PgVectorField vec)
Set intrinsic vector field as projection of extrinsic vector field given at element centers.
Parameters:
vec - vector field in adjacent space
See Also:
PgVectorField

eval

public void eval(int elemInd,
                 PdBary bary,
                 PdBaryDir out)
Evaluate vector field at given point. This implementation returns the constant vector in given element.
Overrides:
eval in class PnGeodesicRK
Parameters:
elemInd - element on which the vector field will be evaluated
bary - barycentric coordinates of the point at which the vector field will be evaluated
out - output: in this PdBaryDir the evaluated direction will be stored
See Also:
PnGeodesicRK.eval(int, jv.vecmath.PdBary, jv.vecmath.PdBaryDir)

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.