Struct wafer::config::Config[][src]

pub struct Config {
    pub project_name: String,
    pub grid: Grid,
    pub tolerance: R64,
    pub central_difference: CentralDifference,
    pub max_steps: Option<u64>,
    pub wavenum: u8,
    pub wavemax: u8,
    pub output: Output,
    pub potential: PotentialType,
    pub mass: R64,
    pub init_condition: InitialCondition,
    pub sig: f64,
    init_symmetry: SymmetryConstraint,
    pub script_location: Option<String>,
}

The main struct which all input data from wafer.cfg is pushed into.

Fields

A name for the current project for easy identification of output files.

Information about the required grid to calculate on.

A convergence value, how accurate the total energy needs to be.

Precision of the central difference formalism. The higher the value here the lower the resultant error will be, provided the step size has been optimally chosen.

Optional: The maximum amount of steps the solver should attempt before giving up.

A starting number pertaining to an excited state energy level. To start at the ground state, this number should be 0. If it is higher, the solver expects converged states in the input directory before calculating anything.

The maximum number of excited states to calculate. For example, if this value is 2, the solver will calculate the ground state (E_0), first excited (E_1) and second excited (E_2) states.

Information about the requested output data.

The type of potential required for the simulation. This can be from the internal list, directly from a pre-calculated file or from a python script.

Atomic mass if required by the selected potential.

A first guess at the wavefunction. Can range from Gaussian noise to a low resolution, pre-calculated solution which will be scaled up to enable a faster convergence at high resolution.

Standard deviation. This sets sigma for the Gaussian initial condition if used and is also required for the Cornell potential types.

Symmetry conditions forced upon the wavefuntion.

Location of the script if using one. This is not required in the input configuration and will be set as a default value or derived from command line arguments.

Methods

impl Config
[src]

Reads and parses data from the wafer.yaml file and command line arguments.

Additional checks to the configuration file that cannot be done implicitly by the type checker.

Pretty prints the Config contents to stdout.

Arguments

  • w - width of display. This is limited from 70 to 100 characters before being accessed here, but no such restriction is required inside this function.

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config