John W. Campbell
This class stores a real unit cell and has methods to determine
the corresponding reciprocal cell if required.
Class, constructors and methods:
Class Details
Accessible Fields
Constructors
Set Cell Parameters
Get Cell Parameters
Get Reciprocal Cell
List Contents
- Package:
- Jdl.JdlPX;
- Class name:
- JdlCell
- Class definition:
- public class JdlCell
- Extends:
- Object
- Implements:
- Cloneable
- Actions:
- none
No fields with public, package or protected access defined.
Constructors are available to construct a JdlCell object from an array
of values or from a set of individual cell parameters or another JdlCell
object.
Constructors:
Constructor 1
Constructor 2
Constructor 3
Create a JdlCell object from an array containing the cell parameters.
- Constructor Definition:
- public JdlCell (double[] cell)
- Parameters List:
- cell
- The cell parameters in a 6 element double array (a, b, c,
alpha, beta, gamma in Angstroms and degrees.
Create a JdlCell object from another JdlCell object.
- Constructor Definition:
- public JdlCell (JdlCell cl)
- Parameters List:
- cell
- A JdlCell object.
Create a JdlCell object from the individual cell parameters.
- Constructor Definition:
- public JdlCell (double a, double b, double c, double alpha, double beta, double gamma)
- Parameters List:
- a
- The cell parameter 'a' in Angstroms.
- b
- The cell parameter 'b' in Angstroms.
- c
- The cell parameter 'c' in Angstroms.
- alpha
- The cell parameter 'alpha' in degrees
- beta
- The cell parameter 'beta' in degrees
- gamma
- The cell parameter 'gamma' in degrees
This section has a methods to set individual cell parameters.
Methods:
Set A - setA
Set B - setB
Set C - setC
Set Alpha - setAlpha
Set Beta - setBeta
Set Gamma - setGamma
Set the cell parameter A.
- Method Definition:
- public void setA(double a)
- Parameters List:
- a
- The cell parameter A in Angstroms.
Set the cell parameter B.
- Method Definition:
- public void setB(double b)
- Parameters List:
- b
- The cell parameter B in Angstroms.
Set the cell parameter C.
- Method Definition:
- public void setC(double c)
- Parameters List:
- c
- The cell parameter C in Angstroms.
Set the cell parameter Alpha.
- Method Definition:
- public void setAlpha(double alpha)
- Parameters List:
- alpha
- The cell parameter Alpha in degrees.
Set the cell parameter Beta.
- Method Definition:
- public void setBeta(double beta)
- Parameters List:
- beta
- The cell parameter Beta in degrees.
Set the cell parameter Gamma.
- Method Definition:
- public void setGamma(double gamma)
- Parameters List:
- gamma
- The cell parameter Gamma in degrees.
This section has a single method to retrieve the cell parameters into
an array from a JdlCell object.
Method:
Cell into array - getCellArray
Returns the array elements in a 6 element double array.
- Method Definition:
- public void getCellArray(double[] cell)
- Parameters List:
- cell
- 6 element double array in which the data are to be returned.
This section has methods to calculate the reciprocal cell and return
it either as a JdlReciprocalCell object or in an an array.
Methods:
Get reciprocal cell - reciprocalCell
Get reciprocal cell - reciprocalCell
Return the reciprocal cell.
- Method Definition:
- public JdlReciprocalCell reciprocalCell (double wavelength)
- Parameters List:
- wavelength
- The wavelength in Angstroms.
- Method Return:
-
The reciprocal of the stored cell as a JdlReciprocalCell object.
Return the reciprocal cell in an array.
- Method Definition:
- public void reciprocalCell (double[] rc, double wavelength)
- Parameters List:
- rc
- A six element double array in which the reciprocal cell parameters
will be returned.
- wavelength
- The wavelength in Angstroms.
This section has a single method to list the object contents primarily
for diagnostic purposes.
Method:
List contents - listContents
List the JdlCell object contents.
- Method Definition:
- public void listContents()
- Parameters List:
- none
⇑ Up 2
⇑ Up 1
⇑ Top of this