edu.swri.swiftvis.sources
Class DiscardData
java.lang.Object
edu.swri.swiftvis.sources.AbstractSource
edu.swri.swiftvis.sources.DiscardData
- All Implemented Interfaces:
- DataSource, GraphElement, java.io.Serializable
public class DiscardData
- extends AbstractSource
This source represents the contents of a SWIFT discard file. The discard file stores all
of the particles that were discarded during the last timestep and the information on them.
We load that into multiple elements. Each particle gets an element with a time, id, status,
x, y, z, vx, vy, vz. If the user selects to output the planets in addition to the test particles,
they also have a mass and radius as additional values. If you want to use those values in
formulas, you must pass the discard information through a filter that will take out all of
the test particles or you will get errors trying to read the mass or radius of the test particles.
Doing a selection filter with id<0 will work nicely. The id is p[0].
- Author:
- Mark Lewis
- See Also:
- Serialized Form
Methods inherited from class edu.swri.swiftvis.sources.AbstractSource |
abstractRedoAllElements, addOutput, clearData, getBounds, getElement, getNumElements, getNumOutputs, getOutput, getOutputInfoPanel, getPaint, getPropertiesPanel, notifySinks, relink, removeOutput, setBounds |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dataFile
private java.io.File dataFile
program
private int program
SWIFT
private static final int SWIFT
- See Also:
- Constant Field Values
SWIFTER
private static final int SWIFTER
- See Also:
- Constant Field Values
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
DiscardData
public DiscardData()
DiscardData
private DiscardData(DiscardData c,
java.util.List<GraphElement> l)
main
public static void main(java.lang.String[] args)
getDescription
public java.lang.String getDescription()
getTypeDescription
public static java.lang.String getTypeDescription()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setupSpecificPanelProperties
protected void setupSpecificPanelProperties()
- Specified by:
setupSpecificPanelProperties
in class AbstractSource
getParameterDescription
public java.lang.String getParameterDescription(int which)
- Tells you what a particular parameter is used for.
useParameterNameString
public boolean useParameterNameString(int which)
- If this returns true then the value of a parameter for this type
should be listed as the strong value returned by getParameterName.
Otherwise just the number should be displayed.
getParameterName
public java.lang.String getParameterName(int which,
int paramVal)
- Tells you the text that should be used to describe a particular value of
a given parameter.
getValueDescription
public java.lang.String getValueDescription(int which)
- Tells you what a particular value is used for.
getNumParameters
public int getNumParameters()
getNumValues
public int getNumValues()
copy
public DiscardData copy(java.util.List<GraphElement> l)
redoAllElements
protected void redoAllElements()
- Specified by:
redoAllElements
in class AbstractSource
selectFile
private void selectFile()
readSWIFT
private void readSWIFT()
readSWIFTER
private void readSWIFTER()