IDataSource
public class MeterLocalMoleFraction extends DataSourceScalar
data, dataInfo, tag
Constructor | Description |
---|---|
MeterLocalMoleFraction(Space space,
Box _box) |
Modifier and Type | Method | Description |
---|---|---|
Box |
getBox() |
|
double |
getDataAsScalar() |
Returns a single scalar value as the measurement for the given box.
|
AtomIteratorBoxDependent |
getIterator() |
|
Polytope |
getShape() |
Returns the subvolume shape for the mole fraction calculation.
|
Vector |
getShapeOrigin() |
Returns the origin of the subvolume.
|
ISpecies |
getSpecies() |
Accessor method to get the current value of the species index
|
void |
setIterator(AtomIteratorBoxDependent iterator) |
|
void |
setShape(Polytope shape) |
Sets the subvolume shape for the mole fraction calculation.
|
void |
setShapeOrigin(Vector newShapeOrigin) |
Sets the origin of the subvolume (Polytopes typically have their center
at 0).
|
void |
setSpecies(ISpecies s) |
Accessor method to set which species mole-fraction or molar-density is averaged
To set to total number density, invoke with static ALL_SPECIES field as argument
|
getData, getDataDouble, getDataInfo, getTag
public void setShape(Polytope shape)
public Polytope getShape()
public void setShapeOrigin(Vector newShapeOrigin)
public Vector getShapeOrigin()
public final void setSpecies(ISpecies s)
public final ISpecies getSpecies()
public double getDataAsScalar()
DataSourceScalar
getDataAsScalar
in class DataSourceScalar
public Box getBox()
public AtomIteratorBoxDependent getIterator()
public void setIterator(AtomIteratorBoxDependent iterator)
iterator
- The iterator to set.