JavaView© v3.95.000

jvx.numeric
Class PnVertexRKIgnoreDirection

java.lang.Object
  extended byjv.object.PsObject
      extended byjvx.numeric.PnGeodesicRK
          extended byjvx.numeric.PnVertexRKIgnoreDirection
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public class PnVertexRKIgnoreDirection
extends PnGeodesicRK

Discrete Runge-Kutta method on element sets. Vector field is given at vertices. Element set must be triangulated. Field is considered to be non-directed, so in each point we have two vectors (v2=-v1) to choose from.

Since:
JavaView 2.48.007
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jv.object.PsObject
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
PnVertexRKIgnoreDirection(PgElementSet geom)
           
 
Method Summary
 void eval(int elemInd, PdBary bary, PdBaryDir out)
          Returns +/- barycentric interpolation between vectors at vertices.
 void setVectorField(PdBaryDir[][] vec)
          Set intrinsic vector field given at vertices.
 void setVectorField(PgVectorField vec)
          Set intrinsic vector field as projection of extrinsic vector field given at vertices.
 
Methods inherited from class jvx.numeric.PnGeodesicRK
eval, getInvertDirection, getStepLength, getStepPolygon, nextStep, prepareSolve, setFirstOrder, setFourthOrder, setGeometry, setInvertDirection, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PnVertexRKIgnoreDirection

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

setVectorField

public void setVectorField(PdBaryDir[][] vec)
Set intrinsic vector field given at vertices.

Parameters:
vec - [elementindex][localvertexindex]

setVectorField

public void setVectorField(PgVectorField vec)
Set intrinsic vector field as projection of extrinsic vector field given at vertices. In each element choose +/- the original vectors: Look at one vertex and switch the others in same triangle such that they have least scalar product.

Parameters:
vec - vector field in adjacent space
See Also:
PgVectorField

eval

public void eval(int elemInd,
                 PdBary bary,
                 PdBaryDir out)
Returns +/- barycentric interpolation between vectors at vertices. The one with greater scalar product with parameter out is chosen. If out is zero, then the internal original is chosen.

Overrides:
eval in class PnGeodesicRK
Parameters:
elemInd - element in which the vector field will be evaluated
bary - barycentric coordinates of the point in which the vector field will be evaluated
out - output: in this PdBaryDir the evaluated direction will be stored
See Also:
PnElementRK.eval(int, jv.vecmath.PdBary, jv.vecmath.PdBaryDir), PnVertexRK.eval(int, jv.vecmath.PdBary, jv.vecmath.PdBaryDir), PnTranslationRK.eval(int, jv.vecmath.PdBary, jv.vecmath.PdBaryDir)

JavaView© v3.95.000

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