|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.TTrack
org.opensourcephysics.cabrillo.tracker.PointMass
org.opensourcephysics.cabrillo.tracker.ParticleModel
org.opensourcephysics.cabrillo.tracker.DynamicParticle
org.opensourcephysics.cabrillo.tracker.DynamicParticlePolar
public class DynamicParticlePolar
DynamicParticlePolar models a particle using Newton'w 2nd law in polar coordinates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opensourcephysics.cabrillo.tracker.TTrack |
|---|
TTrack.StepArray |
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.DynamicParticle |
|---|
frameStates, initialState, iterationsPerStep, points, solver, state, system |
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.ParticleModel |
|---|
dt, endFrame, functionEditor, functionPanel, inspector, inspectorH, inspectorX, inspectorY, invalidWarningShown, lastValidFrame, loading, nan, prevX, prevY, refreshDerivsLater, refreshing, refreshStepsLater, showInspector, startFrame, startFrameUndefined, t0, time, timeFormat, tracePt, tracePtsPerStep, traceX, traceY, xLimit, yLimit |
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.PointMass |
|---|
aAtOrigin, accelerationMenu, accelFootprintMenu, aDeriv, aDerivSpill, aFootprint, aFootprints, aMap, aTailsToOriginItem, aTailsToPositionItem, autotrackItem, aVisibleItem, aVisibleOnAll, aVisMap, dataDescriptions, derivData, mass, massField, massLabel, mSeparator, params, positionFootprintMenu, trace, traceStroke, traceVisible, validData, vAtOrigin, vDeriv, vDerivSpill, velocFootprintMenu, velocityMenu, vFootprint, vFootprints, vMap, vTailsToOriginItem, vTailsToPositionItem, vVisibleItem, vVisibleOnAll, vVisMap, xData, xVisibleOnAll, xVisMap, yData |
| Constructor Summary | |
|---|---|
DynamicParticlePolar()
|
|
| Method Summary | |
|---|---|
double[] |
getInitialState()
Gets the initial state {x, vx, y, vy, t}. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
protected double[] |
getPolarState(double[] state)
Converts a cartesian state {x, vx, y, vy, t} to polar {r, vr, theta, omega, t}, both relative to the origin. |
protected double[] |
getXYForces(double[] cartesianState)
Gets the x- and y-forces based on a specified cartesian state {x, vx, y, vy, t}. |
protected void |
initializeFunctionPanel()
Creates and initializes the ModelFunctionPanel. |
protected void |
initializeInitEditor()
Creates the initial position and velocity parameters. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.DynamicParticle |
|---|
delete, draw, getDisplayName, getEndFrame, getNextTracePositions, getRate, getStartFrame, getState, refreshSteps, reset, resetState, restoreState, saveState, setEndFrame, setSolver, setStartFrame, setTracePositions |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.ParticleModel |
|---|
cleanup, createMassAndTimeParameters, drawMe, findInteractive, getFunctionEditor, getInitEditor, getInitialValues, getInspector, getMass, getMenu, getModels, getParamEditor, getToolbarPointComponents, isAutoTrackable, isDependent, isModelsVisible, isStepComplete, propertyChange, refreshDerivsIfNeeded, refreshInitialTime, setAnglesInRadians, setLocked, setMass, setName, setTrackerPanel, trimSteps |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicParticlePolar()
| Method Detail |
|---|
public double[] getInitialState()
getInitialState in class DynamicParticleprotected double[] getXYForces(double[] cartesianState)
getXYForces in class DynamicParticlecartesianState - the state
protected void initializeFunctionPanel()
initializeFunctionPanel in class DynamicParticleprotected void initializeInitEditor()
initializeInitEditor in class DynamicParticleprotected double[] getPolarState(double[] state)
state - the cartesian state
public static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||