Function wafer::potential::potential [−][src]
fn potential(config: &Config, idx: &Index3) -> Result<R64, Error>
Generates a potential for the current simulation at a particular index point.
Arguments
config
- configuration data structidx
- an index to calculate the potential value at
Returns
A double with the potential value at the requested index, or an error if the function is called for an invalid potential type.