public class VolumeToLatticeParamModifier extends BaseDatasetModifier
(volume/pa * atoms/cell) ^ (1/3)
.
The dataset must have "volume_pa" as a property for this to work. The target property
will be changed to "lat_param" after this operation completes.
Usage: <atoms/cell>
Constructor and Description |
---|
VolumeToLatticeParamModifier() |
Modifier and Type | Method and Description |
---|---|
protected double |
convertVolumeToLatticeParam(double volume)
Calculate the equivalent cubic lattice parameter corresponding to a volume per
atom, given the number of atoms in the unit cell
|
protected void |
modifyDataset(Dataset Data)
Apply changes to the Dataset.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setOptions(java.util.List Options)
Set any options for this object.
|
void |
setPerCell(int perCell)
Set number of atoms in unit cell.
|
transform
public void setOptions(java.util.List Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setPerCell(int perCell)
perCell
- Number of atoms per unit cellprotected void modifyDataset(Dataset Data)
BaseDatasetModifier
modifyDataset
in class BaseDatasetModifier
Data
- Dataset to be modifiedprotected double convertVolumeToLatticeParam(double volume)
volume
- Volume per atom