|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.numeric.PnGeodesicRK
Discrete Runge-Kutta method on element sets. Element set must be triangulated.
PnElementRK,
PnVertexRK,
PnVertexRKIgnoreDirection,
PgElementSet.triangulate(jv.geom.PgElementSet),
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 | |
PnGeodesicRK(PgElementSet geom)
|
|
| Method Summary | |
PdBaryDir |
eval(int elemInd,
PdBary bary)
Wrapper that calls eval(int, PdBary, PdBaryDir)
with a new barycentric vector. |
void |
eval(int elemInd,
PdBary bary,
PdBaryDir out)
Evaluate vector field on given element at given barycentric coordinate. |
boolean |
getInvertDirection()
|
double |
getStepLength()
|
PgPolygonOnElementSet |
getStepPolygon()
|
boolean |
nextStep()
Calculates the next step of actual integration. |
boolean |
prepareSolve(PgPolygonOnElementSet outpoly,
int iniElem,
PdBary iniPoint,
double h)
If not method solve is used, this method has to be
called before integration. |
void |
setFirstOrder(boolean flag)
Sets integration method to euler if flag is true, else to 4th-order Runge-Kutta. |
void |
setFourthOrder(boolean flag)
Sets integration method to 4th-order Runge-Kutta if flag is true, else to euler. |
void |
setGeometry(PgElementSet geom)
Sets underlying geometry. |
void |
setInvertDirection(boolean flag)
If set to 'true', the negative vector field is used. |
void |
solve(PgPolygonOnElementSet outpoly,
int iniElem,
PdBary iniPoint,
double h,
int numIterations)
Returns a whole integral line. |
| 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 |
public PnGeodesicRK(PgElementSet geom)
| Method Detail |
public void setGeometry(PgElementSet geom)
geom - new underlying geometrypublic void setFirstOrder(boolean flag)
flag - true: euler; false: 4th-order RKpublic void setFourthOrder(boolean flag)
flag - true: 4th-order RK; false: euler
public void solve(PgPolygonOnElementSet outpoly,
int iniElem,
PdBary iniPoint,
double h,
int numIterations)
prepareSolve, nextStep
and getStepPolygon.
outpoly - output: here the polygon is savediniElem - initial element indexiniPoint - initial barycentric coordinatesh - stepsizenumIterations - length of polygon is h*numIterationsprepareSolve(jvx.geom.PgPolygonOnElementSet, int, jv.vecmath.PdBary, double),
nextStep(),
getStepPolygon()
public boolean prepareSolve(PgPolygonOnElementSet outpoly,
int iniElem,
PdBary iniPoint,
double h)
solve is used, this method has to be
called before integration. It initializes all internal variables.
outpoly - output: here the polygon is savediniElem - initial element indexiniPoint - initial barycentric coordinatesh - stepsizesolve(jvx.geom.PgPolygonOnElementSet, int, jv.vecmath.PdBary, double, int)public boolean nextStep()
solve(jvx.geom.PgPolygonOnElementSet, int, jv.vecmath.PdBary, double, int),
prepareSolve(jvx.geom.PgPolygonOnElementSet, int, jv.vecmath.PdBary, double),
getStepPolygon()public PgPolygonOnElementSet getStepPolygon()
public double getStepLength()
public void setInvertDirection(boolean flag)
public boolean getInvertDirection()
public void eval(int elemInd,
PdBary bary,
PdBaryDir out)
elemInd - the element in which the vector field will be evaluatedbary - barycentric coordinates of the point in which the vector field will be evaluatedout - output: in this PdBaryDir the evaluated direction will be storedPnElementRK.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)
public PdBaryDir eval(int elemInd,
PdBary bary)
eval(int, PdBary, PdBaryDir)
with a new barycentric vector.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||