public final class BuoyancyProfileCell extends ComputeCell
Computes a buoyancy profile from profiles of parcel and environmental densities. The buoyancy is defined as the massic volume (alias "specific volume" or "volume per mass") of the parcel minus the massic volume of the environment. Positive buoyancy corresponds to an upward force on the parcel.
This class is thread-compatible but not thread-safe: clients should synchronize concurrent access to instances of this class.
Constructor and Description |
---|
BuoyancyProfileCell(visad.DataReference envDenProRef,
visad.DataReference parDenProRef)
Constructs from input and output data references.
|
Modifier and Type | Method and Description |
---|---|
protected visad.Data |
compute(visad.Data[] datums)
Computes the output buoyancy-profile.
|
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
public BuoyancyProfileCell(visad.DataReference envDenProRef, visad.DataReference parDenProRef) throws visad.VisADException, java.rmi.RemoteException
envDenProRef
- The input environmental density profile
reference.parDenProRef
- The input parcel density profile reference.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected visad.Data compute(visad.Data[] datums) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
compute
in class ComputeCell
datums
- The input data. datums[0]
is
the environment's air density profile;
datums[1]
is the parcel's air
density profile.java.lang.ClassCastException
- if an input data reference has the wrong
type of data object.visad.TypeException
- if a VisAD data object has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.