jvx.numeric
Class PnElementRK
- java.lang.Object
-
- jv.object.PsObject
-
- jvx.numeric.PnGeodesicRK
-
- jvx.numeric.PnElementRK
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, PsUpdateIf
public class PnElementRK extends PnGeodesicRK
Discrete Runge-Kutta solver on triangular element sets for integration of an element based vector field. Vector field is given at element centers. ElementSet must be triangulated.- See Also:
- Serialized Form
- Author:
- Eike Preuß
- Version:
- 22.01.03, 1.10 revised (ep) Inversion of the direction of integration added.
-
-
Field Summary
-
Fields inherited from class jv.object.PsObject
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 Summary
Constructors Constructor and Description PnElementRK(PgElementSet geom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voideval(int elemInd, PdBary bary, PdBaryDir out)Evaluates vector field at given point.voidsetVectorField(PdBaryDir[] vec)Sets intrinsic vector field given at element centers.voidsetVectorField(PgVectorField vec)Sets intrinsic vector field as projection of extrinsic vector field given at element centers.-
Methods inherited from class jvx.numeric.PnGeodesicRK
eval, getInvertDirection, getStepLength, nextStep, prepareSolve, setFirstOrder, setFourthOrder, setGeometry, setInvertDirection, solve, solve, solve
-
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, init, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, update, updatePanels
-
-
-
-
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 arrayvecequals the global element index of the element that contains the vector
-
setVectorField
public void setVectorField(PgVectorField vec)
Sets 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)Evaluates vector field at given point. This implementation returns the constant vector in given element.- Specified by:
evalin classPnGeodesicRK- Parameters:
elemInd- element on which the vector field will be evaluatedbary- barycentric coordinates of the point at which the vector field will be evaluatedout- output: in thisPdBaryDirthe evaluated direction will be stored- See Also:
PnGeodesicRK
-
-
"